speeding up trainbr using more cpu cores or a gpu

조회 수: 4 (최근 30일)
Brent
Brent 2021년 5월 8일
댓글: Aditya Patil 2021년 5월 12일
trainbr is slow on my computer often taking an hour. I'm looking at ways to speed it up. I'm trying to figure out if the Parallel Toolbox would help. It seems to say it would allow me to use multiple cpu cores, but when I'm running trainbr training it already looks like it is using multiple cores. Anybody know about this?
I have a GPU available but I recall reading trainbr can't use a GPU, anybody know about this?
Thank you!

답변 (1개)

Aditya Patil
Aditya Patil 2021년 5월 11일
Bayesian regularization requires calculating the Jacobian. Jacobian calculation is not supported on GPU. Hence trainbr doesn't support GPU.
  댓글 수: 2
Brent McWatters
Brent McWatters 2021년 5월 12일
I understand re the GPU.
However when I run trainbr I see it using all the CPU cores. So does that mean the parallel toolbox wouldn't help?
Aditya Patil
Aditya Patil 2021년 5월 12일
parallel toolbox uses multiple processes. Even if trainbr uses multiple CPU, parallel toolbox might be useful, especially if your code waits for an external event, like reading a file from disk.
You can try to time the code with and without parallel toolbox, and see if there is any significant improvement.

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by