Visible to Intel only — GUID: GUID-0BA5A4EE-0829-4F4B-A273-913856B1FF2A
Visible to Intel only — GUID: GUID-0BA5A4EE-0829-4F4B-A273-913856B1FF2A
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 Intel® DPC++ Compatibility Tool, 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:
#define ATOMIC_ADD(x, v) atomicAdd(&x, v);
void foo() {
// There is no using of ATOMIC_ADD macro
}
results in the following migrated SYCL* code:
/*
DPCT1058:0: "atomicAdd" is not migrated because it is not called in the code.
*/
#define ATOMIC_ADD(x, v) atomicAdd(&x, v);
void foo() {
// There is no using of ATOMIC_ADD macro
}
which is rewritten to:
void foo() {
// There is no using of ATOMIC_ADD macro
}