Developer Guide and Reference

  • 2021.2
  • 03/26/2021
  • Public Content

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/do
while/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.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.