GPU arrays are opaque memory layouts optimized for texture fetching (interpolation, multi-dimensional locality). They have dimensionality of 1, 2 or 3. The OpenCL term for them is "images".
Questions tagged [cuda-arrays]
24 questions
0
votes
1 answer
Direct write to D3D texture from kernel
I am playing around with NVDEC H.264 decoder from NVIDIA CUDA samples, one thing I've found out is once frame is decoded, it's converted from NV12 to BGRA buffer which is allocated on CUDA's side, then this buffer is copied to D3D BGRA texture.
I…

Alex
- 526
- 2
- 8
0
votes
1 answer
Texture object fetching in CUDA
I can find many examples online that use CUDA texture references, but not so many that rely on texture objects. I am trying to understand why my code below always fetches 0 rather than my input texture. Am I missing something, or using a wrong…

Touloudou
- 2,079
- 1
- 17
- 28
0
votes
1 answer
memset cuArray for surface memory
Say you have a cuArray for binding a surface object.
Something of the form:
// These are inputs to a function really.
cudaArray* d_cuArrSurf
cudaSurfaceObject_t * surfImage;
const cudaExtent extent = make_cudaExtent(width, height,…

Ander Biguri
- 35,140
- 11
- 74
- 120
0
votes
1 answer
JCuda access violation when creating a texture object with the driver API
I have a JCuda project that's encountering an access violation whenever it tries to create a texture object using the driver API. Java HotSpot claims that the error is coming from nvcuda.dll.
The underlying CUarray from which the texture is being…

cfuqua
- 3
- 2
0
votes
1 answer
Pass cuda texture variable as an argument
I have setup the cudaArray, and have bound it to a texture:
texture tex;
cudaChannelFormatDesc channelDesc =
cudaCreateChannelDesc(32, 0, 0, 0, cudaChannelFormatKindFloat);
cudaArray *cuArray;
…

Nick X Tsui
- 2,737
- 6
- 39
- 73
0
votes
1 answer
How to use texture memory for 1D array in CUDA
I wrote following code to see how to use texture memory for 1D array.but tex1D function is not fetching the value from array for corresponding thread id.Please correct this code and tell me how to use texture memory for 1D array efficiently and…

Pramod Yelmewad
- 5
- 2
0
votes
1 answer
CUDA texture object -- incorrect interpolation in non-normalized mode
Non-normalized linear interpolation from a CUDA texture object bound to a CUDA array appears to be returning incorrect results. It appears that the interpolated values are a factor of 0.5 smaller than expected. Normalized linear interpolation…

nwhsvc
- 652
- 1
- 6
- 15
0
votes
1 answer
cudaMemcpyToArray
I seem to have an issue with the function cudaMemcpyToArray. I have the following commands:
float *h_data = new float[bmp.width * bmp.height];
...
cudaChannelFormatDesc channelDesc = cudaCreateChannelDesc(32, 0, 0, 0,…

wolfPack88
- 4,163
- 4
- 32
- 47
-1
votes
1 answer
cuda and opencv:I only want the same as the original picture
I just want to put the test.jpg into the texture memory, and then through the text2D () to show the picture, but the results are very strange. The "result" should be the same as "gray".Click there to get the pic:window:gray and window:result.The…

biaodiluer
- 121
- 1
- 4