Visible to Intel only — GUID: GUID-390BC725-AB2F-4332-83F2-662C4794364E
Visible to Intel only — GUID: GUID-390BC725-AB2F-4332-83F2-662C4794364E
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.