JuliaLang / Microbenchmarks

Microbenchmarks comparing the Julia Programming language with other languages
https://julialang.org/benchmarks/
Other
88 stars 48 forks source link

Running Julia benchmarks in Single core mode #25

Closed rohith14 closed 6 years ago

rohith14 commented 6 years ago

Hi,

For running the benchmarks (reproducing the numbers on my end), how do I make sure Julia runs on single core? For MATLAB, I see we use singleCompThread and is there something similar in Julia?

Thanks

ChrisRackauckas commented 6 years ago

The benchmarks are run in single, except maybe the matrix multiplication where every language is calling a multicore BLAS. In Julia, just change the number of BLAS threads to 1 if you want to change that test case, but you'd need to do that in each language as well.

rohith14 commented 6 years ago

Thanks Chris. I wanted to know how do I run in single core in Julia? In MATLAB, we have singleCompThread that sets it to one core. Is their something similar?

ChrisRackauckas commented 6 years ago

Julia is single core unless you tell it not to be.

rohith14 commented 6 years ago

Thank you,, Chris