Will more CPUs improve the speed of the linsolve function?

조회 수: 6 (최근 30일)
amatuercoder
amatuercoder 2019년 8월 12일
답변: Sai Bhargav Avula 2019년 8월 16일
I'm considering upgrading my current simulation computer from a 4-core machine to an 8-core machine (both are single processors)...I am wondering if this will provide any benefit when using the linsolve function. This is used repeatedly through the simulation. When running the code currently, and monitoring the system performance, it seems like all four cores on the CPU are being utilized, thus I would assume that somehow MATLAB is utilizing all 4 cores for the linsolve computation. However, it would be nice to have a more concrete answer than "kind of seems like it...". If it helps...I beleive the method of solving the specific matrices I'm looking at here, within the linsolve fuinction, is the QR factorization method.
THanks,

채택된 답변

Sai Bhargav Avula
Sai Bhargav Avula 2019년 8월 16일
Yes, the linsolve function include multithreaded implementation. Hence with the increase of number of cores the efficacy of the linsolve function improves. However, it should be noted that multithread implementations may not apply to all arguments combinations and data types/shapes/sizes.
The following link will give you a detailed list of functions that benefit from multithread computation.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by