Developer Guide and Reference

  • 2021.3
  • 06/28/2021
  • Public Content

DPCT1062

Message

SYCL Image doesn’t support normalized read mode.

Detailed Help

This warning is emitted when
cudaReadModeNormalizedFloat
is used as the third argument of texture in the original code. Since SYCL* Image doesn’t support normalized read mode,
cudaReadModeNormalizedFloat
will be ignored during migration.
It may cause errors in the resulting code, for example, redefinition of overloaded functions, if the overloaded functions are differentiated based on the texture type in the original code.
For example:
// Original code: __device__ void foo(const texture<char, 2, cudaReadModeNormalizedFloat> tex); __device__ void foo (const texture<char, 2, cudaReadModeElementType> tex);
// Resulting code: void foo (dpct::image_accessor_ext<char, 2> tex); void foo (dpct::image_accessor_ext<char, 2> tex);

Suggestions to Fix

Review the code and update as needed.

Product and Performance Information

1

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