DPCT1058#

Message#

<API Name> is not migrated because it is not called in the code.

Detailed Help#

This warning is emitted when atomic API calls are used in macro definition and this macro is not called in the code.

Suggestions to Fix#

If you want this macro to be migrated by SYCLomatic, please use the macro that needs migration in your code and pass the code to the tool again. Otherwise you can update the code manually or ignore the warning.

For example, this original CUDA* code:

1#define ATOMIC_ADD(x, v)  atomicAdd(&x, v);
2
3void foo() {
4  // There is no using of ATOMIC_ADD macro
5}

results in the following migrated SYCL* code:

1/*
2DPCT1058:0: "atomicAdd" is not migrated because it is not called in the code.
3*/
4#define ATOMIC_ADD(x, v) atomicAdd(&x, v);
5
6void foo() {
7  // There is no using of ATOMIC_ADD macro
8}

which is rewritten to:

1void foo() {
2  // There is no using of ATOMIC_ADD macro
3}