compiling error: texture is undefined in device code

Hi all,

I’m trying make the following: screen. But i have a compiling error. what’s a problem?

Please help. Thank you in advance for your consideration.

Hi all,

I’m trying make the following: screen. But i have a compiling error. what’s a problem?

Please help. Thank you in advance for your consideration.

texChan is not declared with device qualifier, therefore it resides in host memory. It can’t be accessed by matrixMul.

texChan is not declared with device qualifier, therefore it resides in host memory. It can’t be accessed by matrixMul.

texChan - is texture reference. Qualifier device is not need. He is need for declare global memory items, for example:

device float data [256];

if I inserted device qualifier then I have next compiling error:

can’t generate code for non empty constructors or destructors on device c:\programdata\nvidia nsight 1.5\samples\cuda\debugging\matrix multiply\matrixMul_kernel.cu

texChan - is texture reference. Qualifier device is not need. He is need for declare global memory items, for example:

device float data [256];

if I inserted device qualifier then I have next compiling error:

can’t generate code for non empty constructors or destructors on device c:\programdata\nvidia nsight 1.5\samples\cuda\debugging\matrix multiply\matrixMul_kernel.cu