matlab multicore -凯发k8网页登录

run matlab on multicore and multiprocessor machines

matlab® provides two main ways to take advantage of multicore and multiprocessor computers.  by using the full computational power of your machine, you can run your matlab applications faster and more efficiently.

built-in multithreading

linear algebra and numerical functions such as fft, \ (mldivide), eig, svd, and sort are multithreaded in matlab. multithreaded computations have been on by default in matlab since release 2008a. these functions automatically execute on multiple computational threads in a single matlab session, allowing them to execute faster on multicore-enabled machines. additionally, many functions in image processing toolbox™ are multithreaded.

parallelism using matlab workers

you can run multiple matlab workers (matlab computational engines) on a single machine to execute applications in parallel, with parallel computing toolbox™. this approach allows you more control over the parallelism than with built-in multithreading, and is often used for coarser grained problems such as running parameter sweeps in parallel.

with programming constructs such as parallel for-loops (parfor) and batch, you can write parallel matlab programs with minimal programming effort. several other products including optimization toolbox™, statistics and machine learning toolbox™, and simulink coder™ offer built-in parallel algorithms that work with parallel computing toolbox. these algorithms let you distribute computations across available parallel computing resources without writing any parallel code.

unlike with multithreaded computations, you can scale parallel applications that use matlab workers beyond a single machine to a computer cluster or grid using matlab parallel server™.


examples and how to

  • - example
  • - product list and resources
  • - support solution
  • - example
  • - blog
  • - article by cleve moler

software reference

see also: parallel computing toolbox, matlab parallel server, matlab gpu computing, parallel computing, matlab acceleration,

accelerating and parallelizing matlab code

in this course you’ll learn a variety of techniques to make your matlab® code run faster.

网站地图