Visible to Intel only — GUID: GUID-031490A1-AF8A-4C4C-9E70-E6DB327DA675
Visible to Intel only — GUID: GUID-031490A1-AF8A-4C4C-9E70-E6DB327DA675
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, this original code:
// original code: __device__ void foo(const texture<char, 2, cudaReadModeNormalizedFloat> tex); __device__ void foo (const texture<char, 2, cudaReadModeElementType> tex);
results in the following migrated DPC++ code:
// migrated DPC++ 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.