MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / af_print_mem_info

Function af_print_mem_info

src/api/c/memory.cpp:329–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329af_err af_print_mem_info(const char *msg, const int device_id) {
330 try {
331 int device = device_id;
332 if (device == -1) { device = static_cast<int>(getActiveDeviceId()); }
333
334 if (msg != nullptr) {
335 ARG_ASSERT(0, strlen(msg) < 256); // 256 character limit on msg
336 }
337 ARG_ASSERT(1, device >= 0 && device < getDeviceCount());
338
339 printMemInfo(msg ? msg : "", device);
340 }
341 CATCHALL;
342 return AF_SUCCESS;
343}
344
345af_err af_device_gc() {
346 try {

Callers 1

printMemInfoFunction · 0.50

Calls 3

getActiveDeviceIdFunction · 0.50
getDeviceCountFunction · 0.50
printMemInfoFunction · 0.50

Tested by

no test coverage detected