Matrix multiplication does not work

0

I'm trying to use CUDA to perform multiplication of width-matrices. But I'm encountering the following error: I have two square arrays with dimension 2632x2632. When I try to multiply them, the code does not perform multiplication, and the answer matrix simply goes blank.

    
asked by anonymous 15.02.2018 / 21:05

1 answer

0

Try to use the cuda handling error (cudaGetLastError () and cudaGetErrorName ()) to find out what failed to call the device code on the GPU.

But since I've given you a hint, I think it was a lack of memory, because depending on the form it multiplied, each thread might have reserved 4264 * sizeof(type) bytes on the GPU.

Try to see this snippet of the NVIDIA documentation ( in the 3.2.3 shared memory section), it has a great example of array multiplication.

    
05.05.2018 / 06:38