Visible to Intel only — GUID: GUID-2D3446F2-C5D6-4393-BEB9-F76FB76DA1A6
Visible to Intel only — GUID: GUID-2D3446F2-C5D6-4393-BEB9-F76FB76DA1A6
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 CUDA* code:
__device__ void foo(const texture<char, 2, cudaReadModeNormalizedFloat> tex); __device__ void foo (const texture<char, 2, cudaReadModeElementType> tex);
results in the following migrated SYCL 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.