How to run program on GPU

조회 수: 2 (최근 30일)
Sania Gul
Sania Gul 2019년 12월 2일
댓글: Andrea Picciau 2019년 12월 9일
My program of Semantic segmentation is in Matlab and I want to run it on GPU. Kindly send me the step wise procedure to run my code on GPU

채택된 답변

Andrea Picciau
Andrea Picciau 2019년 12월 2일
Hi Sania,
  • If you're training your network, you need to set 'ExecutionEnvironment' to 'gpu' or 'multi-gpu' in trainingOptions. The doc for trainingOptions is here.
  • If you have already trained your network and you want to use it, you can either set the option 'Acceleration' to 'MEX' in the function predict or you can use GPU coder as shown in this other doc page.
Note that (as of today) you can't use GPU coder to train your network.
Best,
-- Andrea
  댓글 수: 2
Sania Gul
Sania Gul 2019년 12월 9일
Thanks you so much.
Andrea Picciau
Andrea Picciau 2019년 12월 9일
Happy to help!

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

추가 답변 (1개)

Nicolas B.
Nicolas B. 2019년 12월 2일
So the first step is to check whether you have the "Parallel Computing Toolbox" with:
ver
if the toolbox isn't in the list, than you need to buy it.
Then, take a look at the documentation from mathwork about computing on GPU.
Hope it help you.
  댓글 수: 1
Sania Gul
Sania Gul 2019년 12월 2일
Yes, we have parallel computing toolbox in our MATLAB 2019. And have configyred (cuDNN) library 123.pngbut still GPU button is in active. Kindly help me to solve this problem.

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

카테고리

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