Visible to Intel only — GUID: GUID-BBA8F92C-3A7D-4589-89B3-5A9CF5B260F6
Visible to Intel only — GUID: GUID-BBA8F92C-3A7D-4589-89B3-5A9CF5B260F6
DPCT1106
Message
<function name> was migrated with the Intel extensions for device information which may not be supported by all compilers or runtimes. You may need to adjust the code.
Detailed Help
The CUDA* function <function name> (for example cudaMemGetInfo or cuMemGetInfo) was migrated with the Intel extensions for device information, which may not be supported by all compilers or runtimes. You may need to adjust the code.
For example, this original CUDA code:
void foo() {
size_t free_mem, total_mem;
cudaMemGetInfo(&free_mem, &total_mem);
}
results in the following migrated SYCL* code:
void foo() {
size_t free_mem, total_mem;
/*
DPCT1106:0: 'cudaMemGetInfo' was migrated with the Intel extensions for device
information which may not be supported by all compilers or runtimes. You may
need to adjust the code.
*/
dpct::get_current_device().get_memory_info(free_mem, total_mem);
}
which is rewritten to:
void foo() {
size_t free_mem, total_mem;
dpct::get_current_device().get_memory_info(free_mem, total_mem);
// free_mem should be adjusted
free_mem = /*implementation defined*/;
}
Suggestions to Fix
You may need to adjust the code.