Visible to Intel only — GUID: GUID-704E7709-B90A-48A4-88F5-F2B7364D3603
Visible to Intel only — GUID: GUID-704E7709-B90A-48A4-88F5-F2B7364D3603
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
}