Parallel Computing Toolbox requirements, GPU usage

조회 수: 5 (최근 30일)
Javier Saumell
Javier Saumell 2020년 1월 16일
답변: Javier Saumell 2020년 1월 20일
Do I need more than one Matlab/Simulink license in order to run parallel simulations in several cores/GPU/computer clusters?
How is the GPU used by this toolbox? Does it always help or it depends on the kind of simulations I am running?
I usually run simulations of large and complex models and with small step sizes

채택된 답변

Jason Ross
Jason Ross 2020년 1월 17일
I'll answer your question in a few parts.
License questions
  • In addition to other products and toolboxes, the Parallel Computing Toolbox license is all that you need to access resources local to your machine -- you can make a pool of workers that will use your machine's CPU, and you will be able to access the GPU.
  • To access compute clusters, your client host needs the Parallel Computing Toolbox. The compute cluster will need to have Parallel Server installed on it, and licensed appropriately for the number of worker processes that will run on the cluster. You can also access GPUs in the cluster if you have them. Parallel Server can be set up as its own job scheduler, or can be integrated with a number of popular job schedulers if you have an existing compute cluster.
Functionality questions
  • Parallel Computing Toolbox will give you the ability to run certain functions on the GPU. The functions that support GPU differ by toolbox, so you will need to check the toolbox documentation to see if the functions you are using can use the GPU. As an example, see this documentation page, but do also check the documentation for all of your toolboxes to see what's supported. There are also new features added with each release, so the release notes will also let you know if support is added.
  • Support for parallelization is also dependent on the toolbox/product in question. You will need to check the documentation for the products that you use to see if it can take advantage of a parpool. For running Simulink models in parallel, there is documentation here
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 1월 17일
The GPU does not always help. There are situations in which the GPU is slower even when it is available -- especially if the computation involves indexing arrays.
Using explicit parallell processing (parfor and related tools) does not always help. It is common when you start developing parallel code for the parallel version to be notably slower than the original. There are some kinds of problems that can use parallel processes well, but a lot of the time, vectorization and automatic internal parallel operations has more benefits than using explicitly parallel operations.

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

추가 답변 (1개)

Javier Saumell
Javier Saumell 2020년 1월 20일
Thanks for the answers, they were very helpful!

카테고리

Help CenterFile Exchange에서 Parallel and Cloud에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by