How to utilize GPU while the classifiers were running on the classification learner application?
이전 댓글 표시
I'm working in Deep Neural Networks in which lot of execution power is needed for computation. I used Tesla K40c and GeForce GTX 1050Ti Parallel Computing Power for features extraction from different pretrained models but at the stage of classification (which is being done by classification learner application) none of the GPU is utilizing. I have configured MATLAB 2018a with CUDA Toolkit 9.2 and cudNN library 9.2. I also tried different versions of MATLAB with different versions of CUDA Toolkit and cudNN library like MATLAB2017a with CUDA Toolkit8.0 and cudNN library version 8.0 and name a few.
My GPU is utilizing while I used matlab function "activation" for extracting features but GPU utilization has ended during the computation of all the classifiers while using classification learner app.
So, I need to utilize my GPU power while using the classification learner app to minimize the execution time during testing.
I have install all the required toolboxes like Neural Network Toolbox, Parallel Computing Toolbox and Pretrained Models.
Need help to solve this query, waiting for your response.
Thanks !
댓글 수: 7
Joss Knight
2018년 9월 16일
How have you enabled GPU support? Not every classifier supports GPU execution.
Joss Knight
2018년 9월 16일
Actually, I'm not sure there is any way to use the GPU from the app. You have to use gpuArrays direct from the command window, and then your options are SVM and KNN via fitcsvm and knnsearch - you have to pass in your data as a gpuArray to use the GPU.
Joss Knight
2018년 9월 16일
You should try making your data a gpuArray when you create a new session, and see if that triggers some GPU behaviour. However, I'm pretty sure you'll be limited to SVM.
Junaid Lodhi
2018년 9월 16일
Junaid Lodhi
2018년 9월 16일
Junaid Lodhi
2018년 9월 16일
Joss Knight
2018년 9월 20일
Installing the CUDA toolkit, cudnn, Visual Studio and MatConvNet has nothing whatsoever to do with MATLAB or Classification Learner. To use the GPU in MATLAB you create gpuArray objects and pass them to supported functions. If you write your own mex functions then the toolkit and cuDNN may become relevant, and if you install MatConvNet you have access to the supported tools within that third party toolbox. But of course none of that is integrated with Classification Learner.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!