GPU computation error: please help

조회 수: 2 (최근 30일)
Mikhail
Mikhail 2014년 10월 30일
답변: Mikhail 2014년 10월 30일
HI all, I want to use GPU in my research. I downloaded simple example from mathworks (code is attached). Basically, code is:
A = magic(5000);
AonGPU = gpuArray(A);
f = ones(1,20)/20;
BonGPU = filter(f, 1, AonGPU);
On the last line there is an error:
Error using parallel.gpu.GPUArray/filter An unexpected error occurred trying to launch a kernel. The CUDA error was: CUDA_ERROR_INVALID_VALUE.
Error in ex_gpu (line 14) BonGPU = filter(f, 1, AonGPU);
Can someone help please? My GPU is NVIDIA GeForce GTX 650 Ti (According to device manager), Windows 7 64 bit. I've installed the latest driver, as listed here http://www.mathworks.com/products/availability/index.html#DM
Thanks!
  댓글 수: 1
Mikhail
Mikhail 2014년 10월 30일
Also command A = rand(M,K,'gpuArray'); doesn't work:
Error using rand Output class must be 'single' or 'double'.

댓글을 달려면 로그인하십시오.

채택된 답변

Mikhail
Mikhail 2014년 10월 30일
GOt it, just another commands in 2012 version.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 GPU Computing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by