필터 지우기
필터 지우기

How to check if the CUDA capable device is really working with MATLAB?

조회 수: 47 (최근 30일)
I have a program, where I want to check if is it possible to use CUDA calculation.
gpuDeviceCount
ans =
1
says that I really do have a gpuDevice. However if I try to issue the
GPU_spectra=gpuArray(double(kiserletek.ROI_spektrumok(1).spectra));
There is a problem with the graphics driver or with this GPU device. Be
sure that you have a supported GPU and that the latest driver is
installed.
Caused by:
The graphics driver was found, but it is too old. The graphics driver
on your system supports CUDA version 6.5. The required CUDA version is
9.1 or greater.
The command
helyi_GPU=gpuDevice();
Error using gpuDevice (line 26)
There is a problem with the graphics driver or with this GPU device. Be
sure that you have a supported GPU and that the latest driver is
installed.
Caused by:
The graphics driver was found, but it is too old. The graphics driver
on your system supports CUDA version 6.5. The required CUDA version is
9.1 or greater.
also gives an error.
It is OK, I understand it. This is my home computer where I have an old video card. At work I have a newer one.
BUT! How to check if my video card is capable of CUDA calculations in order to avoid the error message?????
Matlab version is: 2018b
  댓글 수: 2
Walter Roberson
Walter Roberson 2019년 1월 26일
What is the exact model of NVIDIA card you have?
Csaba
Csaba 2019년 1월 26일
편집: Csaba 2019년 1월 26일
Geforce 210
It has 16 CUDA kernel, and there is no fresh driver. The latest is from 2016.12.14

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

채택된 답변

Walter Roberson
Walter Roberson 2019년 1월 26일
The reference material indicates that the GeForce 210 was rather early and supported only cuda 1.2. MATLAB never supported 1.2. The first that MATLAB supported was 1.3 because it was 1.3 that added double precision support .
  댓글 수: 5
Csaba
Csaba 2019년 2월 5일
편집: Csaba 2019년 2월 5일
Dear Walter, I accept your answer (try/catch) because it really solves my problem, although I knew it before as well. BUT I have to add that this behaviour of gpuDeviceCount is an error IMHO.
Walter Roberson
Walter Roberson 2019년 2월 5일
I do not know if the change was deliberate . You can file a bug report .

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

추가 답변 (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