How I can solve this (error using gpuArray/gather occured during CUDA execution.TheCUDA error was:CUDA_ERROR_UNKNOWN).
Mostrar comentarios más antiguos
Hi.please please help me I want to multiply two square matrix to obtain speed up between gpu vs cpu using *CUDA kernel. When the size of matrices exceed 2000×2000 element an error l wrote it above appear please help me to complete my work. Note: My gpu is Nvidia geforce gt 635m,which contain 96 cores. and l got results when the size of matrices less than 2000×2000. and the same error appear when multiplying (1000×2) × (2×2);but I got correct result for less than (1000×2), such as (900×2) × (2×2)
Respuestas (1)
Joss Knight
el 29 de Jul. de 2016
0 votos
It looks like you might be running out of GPU memory but it's not being reported properly. This sort of thing can happen on mobile GPUs which are being used for graphics and compute at the same time. It is a bit odd though since your arrays are only 30MB.
This is going to be a tough one to debug. I suggest you break your problem into smaller matrices and work around the issue that way.
Categorías
Más información sobre Get Started with GPU Coder en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!