Correct way to set MKL threads at runtime

VinceNeede
Sun, 27 Apr 2025 21:19:07 +0000
General Usage

What is the correct way to set MKL threads at runtime? Documentation seems to be misleading, it says to use BLAS.set_num_threads(1) to be single threaded, but it does not work. The only way I have found to actually make it work is calling julia with MKL_NUM_THREADS=1, is there no way to set it at runtime then?
small code used to run (click for more details)
5 posts - 3 participants