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:

1  void foo() {
2    size_t free_mem, total_mem;
3    cudaMemGetInfo(&free_mem, &total_mem);
4  }

results in the following migrated SYCL* code:

1  void foo() {
2    size_t free_mem, total_mem;
3    /*
4    DPCT1106:0: 'cudaMemGetInfo' was migrated with the Intel extensions for device
5    information which may not be supported by all compilers or runtimes. You may
6    need to adjust the code.
7    */
8    dpct::get_current_device().get_memory_info(free_mem, total_mem);
9  }

which is rewritten to:

1  void foo() {
2    size_t free_mem, total_mem;
3    dpct::get_current_device().get_memory_info(free_mem, total_mem);
4    // free_mem should be adjusted
5    free_mem = /*implementation defined*/;
6  }

Suggestions to Fix#

You may need to adjust the code.