DPCT1072#

Message#

SYCL currently does not support getting the available memory on the current device. You may need to adjust the code.

Detailed Help#

SYCL* currently does not support getting the available memory on the current device.

Suggestions to Fix#

Try to: (1) re-migrate the code without option --no-dpcpp-extensions=device_info; or (2) rewrite the code manually.

For example, this original CUDA* code:

1void foo() {
2  size_t result1, result2;
3  cudaMemGetInfo(&result1, &result2);
4}

results in the following migrated SYCL code:

1void foo() {
2  size_t result1, result2;
3  /*
4  DPCT1072:0: SYCL currently does not support getting the available memory on
5  the current device. You may need to adjust the code.
6  */
7  result2 = dpct::get_current_device().get_device_info().get_global_mem_size();
8}

which is rewritten to:

1void foo() {
2  size_t result1, result2;
3  dpct::get_current_device().get_memory_info(result1, result2);
4}