Can we use/ declare more than one texture reference? If yes, how to declare them?
I need to process more than one input data in the same .cu file. I tried to write as
texture<float4, 2, cudaReadModeNormalizedFloat> input1, input2, input3, input4, input5, input6, input7, input8, input9, input10, input1_1, input1_2;
and as
texture<float4, 2, cudaReadModeNormalizedFloat> input1;
texture<float4, 2, cudaReadModeNormalizedFloat> input2;
texture<float4, 2, cudaReadModeNormalizedFloat> input3;
texture<float4, 2, cudaReadModeNormalizedFloat> input4;
texture<float4, 2, cudaReadModeNormalizedFloat> input5;
texture<float4, 2, cudaReadModeNormalizedFloat> input6;
texture<float4, 2, cudaReadModeNormalizedFloat> input7;
texture<float4, 2, cudaReadModeNormalizedFloat> input8;
texture<float4, 2, cudaReadModeNormalizedFloat> input9;
texture<float4, 2, cudaReadModeNormalizedFloat> input10;
texture<float4, 2, cudaReadModeNormalizedFloat> input1_1;
texture<float4, 2, cudaReadModeNormalizedFloat> input1_2;
But both built fail with the error messages shows that the compiler can’t recognize
the keyword “texture.” I don’t know what is the problem…Can’t it use the type “float4?” Or there are any other setting that I didn’t notice? Thank you for your reply.