Developer Guide and Reference

  • 2021.4
  • 09/27/2021
  • Public Content

DPCT1056

Message

The Intel® DPC++ Compatibility Tool did not detect the variable
<variable name>
used in device code. If this variable is also used in device code, you need to rewrite the code.

Detailed Help

If
__constant__
variable is only used in host code, “__constant__” attribute will be removed.

Suggestions to Fix

If this variable is only used in host code, ignore this warning.
If the variable is also used in device code, you need to migrate this code again with
--extra-arg="-xcuda"
passed to dpct to explicitly specify the code language.

Product and Performance Information

1

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