Visible to Intel only — GUID: GUID-D1786BB4-2B52-4320-A63B-A2069DB36EA4
Visible to Intel only — GUID: GUID-D1786BB4-2B52-4320-A63B-A2069DB36EA4
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
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.