Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Guracar__Ismayil
Beginner
153 Views

cudaResourceTypePitch2D conversion

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

 

Tags (1)
0 Kudos
2 Replies
RahulV_intel
Moderator
153 Views

Hi,

Thanks for reaching out to us. We are working on this issue and will get back to you.

 

Rahul

Guracar__Ismayil
Beginner
153 Views

Hi Rahul

If you would like to read more about the use case for pitch2D texture arrays, please see my presentation at

http://on-demand.gputechconf.com/gtc/2016/presentation/s6197-ismayil-guracar-improving-high-performa...

Thanks

Ismayil