We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf4f9e commit c4cd8acCopy full SHA for c4cd8ac
help_function/src/dpct_device_info.cpp
@@ -48,6 +48,12 @@ int main() {
48
if(device.is_accelerator())
49
dev_info_output(device, "accelerator device");
50
51
+ size_t free_memory, global_memory;
52
+ // Here just to test get_memory_info() to be called, as not all sycl backends
53
+ // can support to query free memory, and return 0 for free memory if the
54
+ // backend does not support it.
55
+ dpct::get_current_device().get_memory_info(free_memory, global_memory);
56
+
57
printf("Test passed!\n");
58
return 0;
59
}
0 commit comments