Hi
I am trying to convert a simple cuda program which uses pitch2D textures and I get the following error messages:
D:\ProgramData\NVIDIA Corporation\CUDA\Samples\v8.0\3_Imaging\cudaMPR\test.cu:25:35: warning: DPCT1004:0: Could not generate replacement. resDescInput[instance].resType = cudaResourceTypePitch2D; ^ D:\ProgramData\NVIDIA Corporation\CUDA\Samples\v8.0\3_Imaging\cudaMPR\test.cu:26:2: warning: DPCT1004:1: Could not generate replacement. resDescInput[instance].res.pitch2D.devPtr = d_In; ^ D:\ProgramData\NVIDIA Corporation\CUDA\Samples\v8.0\3_Imaging\cudaMPR\test.cu:28:2: warning: DPCT1004:2: Could not generate replacement. resDescInput[instance].res.pitch2D.desc = channelDesc; ^ D:\ProgramData\NVIDIA Corporation\CUDA\Samples\v8.0\3_Imaging\cudaMPR\test.cu:29:2: warning: DPCT1004:3: Could not generate replacement. resDescInput[instance].res.pitch2D.height = pSize; ^ D:\ProgramData\NVIDIA Corporation\CUDA\Samples\v8.0\3_Imaging\cudaMPR\test.cu:30:2: warning: DPCT1004:4: Could not generate replacement. resDescInput[instance].res.pitch2D.width = rSize; ^ D:\ProgramData\NVIDIA Corporation\CUDA\Samples\v8.0\3_Imaging\cudaMPR\test.cu:31:2: warning: DPCT1004:5: Could not generate replacement. resDescInput[instance].res.pitch2D.pitchInBytes = pPitch;
Is there a plan for support for pitch2D array type in DPC++ or is there an alternative to texture from flat memory that doesn't require a memcpy to do pitch conversion? I have attached a code sample.
Thanks
Ismayil
Link Copied
Hi,
Thanks for reaching out to us. We are working on this issue and will get back to you.
Rahul
Hi Rahul
If you would like to read more about the use case for pitch2D texture arrays, please see my presentation at
Thanks
Ismayil
For more complete information about compiler optimizations, see our Optimization Notice.