Parallel Computing Toolbox requirements, GPU usage

4 次查看(过去 30 天)
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