Developer Guide and Reference

  • 2021.2
  • 03/26/2021
  • Public Content

DPCT1057

Message

Variable
<variable name>
was used in host code and device code. The Intel® DPC++ Compatibility Tool updated
<variable name>
type to be used in SYCL device code and generated new
<host variable name>
to be used in host code. You need to update the host code manually to use the new
<host variable name>
.

Detailed Help

If
__constant__variable
is used in both host code and device code (for example, the variable is included in two compilation units and they are compiled by different compilers), it will be migrated to a
dpct::constant_memory
object and a new host variable
<host variable name>
.

Suggestions to Fix

You need to update the host code manually to use the new
<host variable name>
.

Product and Performance Information

1

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