DPCT1048#
Message#
The original value <macro name> is not meaningful in the migrated code and was removed or replaced with 0. You may need to check the migrated code.
Detailed Help#
When API (calls, flags, etc.) are not meaningful in DPC++, they may be removed or replaced with 0, depending on how they are used.
Suggestions to Fix#
Review the code and adjust it.
For example, this original CUDA* code:
1 void foo() {
2 double2 *h_A;
3 cudaHostAlloc(&h_A, sizeof(double2), cudaHostAllocDefault);
4 }
results in the following migrated SYCL* code:
1 void foo() {
2 sycl::double2 *h_A;
3 /*
4 DPCT1048:0: The original value cudaHostAllocDefault is not meaningful in the
5 migrated code and was removed or replaced with 0. You may need to check the
6 migrated code.
7 */
8 h_A = sycl::malloc_host<sycl::double2>(1, dpct::get_default_queue());
9 }
which is rewritten to:
1 void foo() {
2 sycl::double2 *h_A;
3 h_A = sycl::malloc_host<sycl::double2>(1, dpct::get_default_queue());
4 }