Hello,
It appears that cudaCreateChannelDesc returns {0, 0, 0, 0, cudaChannelKindFormatNone} for long types
For example:
1 #include <cuda_runtime.h>
2 #include <stdio.h>
3
4 int main() {
5 cudaChannelFormatDesc channelDesc = cudaCreateChannelDesc<long>();
6
7 printf("x: %d\n", channelDesc.x);
8 printf("y: %d\n", channelDesc.y);
9 printf("z: %d\n", channelDesc.z);
10 printf("w: %d\n", channelDesc.w);
11 printf("f: %d\n", channelDesc.f);
12
13 return 0;
14 }
~
Looking at channel_descriptor.h the template specialization for long types are enclosed in
#if !defined(LP64). Could someone please explain what may be the reason of not computing a descriptor for LP64?