Visible to Intel only — GUID: GUID-E748221F-10A7-4040-8B31-88FAD2A3CC8E
Visible to Intel only — GUID: GUID-E748221F-10A7-4040-8B31-88FAD2A3CC8E
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
}