MATLAB: Is “ismultithreaded” function exist

MATLABmultithreadparallel computing

Is there a function to check if a MATLAB function is calculating in multithreaded computation approach? (Like "ismultithread(myfunction)")

Best Answer

Decision about using threading is left up to the execution engine . Some patterns of calculation can be converted into calls to BLAS or LAPACK but the execution engine only does so if the array are large enough with the boundary size depending on the particular pattern . Therefore whether particular code uses threading or not depends on the size of input and might not be possible to analyse statically .