How I can solve this (error using gpuArray/gather occured during CUDA execution.TheCUDA error was:CUDA_ERROR_UNKNOWN).

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)

Answers (1)

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.

Categories

Find more on Get Started with GPU Coder in Help Center and File Exchange

Asked:

on 20 Jul 2016

Answered:

on 29 Jul 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!