Visible to Intel only — GUID: GUID-D0265152-1E82-4E94-AA02-EFA53181807E
Visible to Intel only — GUID: GUID-D0265152-1E82-4E94-AA02-EFA53181807E
DPCT1039
Message
The generated code assumes that <parameter name> points to the global memory address space. If it points to a local memory address space, replace <function name> with <function name>.
Detailed Help
The Intel® DPC++ Compatibility Tool deduces whether the first parameter of an atomic function points to a global memory address space or a local memory space, using the last assignment’s rvalue of the first parameter of the atomic function. If the last assignment is in an if/while/dowhile/for statement, the deduction result may be incorrect. You need to verify the generated code to determine if the first parameter of the atomic function actually points to the local memory address space. If it does, then replace the atomic function name with an atomic function name that includes the template parameters, as pointed to in the warning message.
Suggestions to Fix
If the first parameter of an atomic function points to a local memory address space, replace the atomic function name with an atomic function name that includes the template parameters.