xianyi/OpenBLAS — pull request #157 by staticfloat (2012-11-13 00:31:47+00:00)
Title: Possible fix for hyperthreading on OSX

Regarding discussion in https://github.com/JuliaLang/julia/issues/1516#issuecomment-10306914, I took at look at `driver/others/init.c`, and since you're doing very linux-specific lookups to `/sys`, perhaps an alternative for OSX would be to use [`hw.physicalcpu`](http://stackoverflow.com/questions/2904283/c-c-assembly-programatically-detect-if-hyper-threading-is-active-on-windows-m) instead of `get_ncpu()`. Would this work if used in `get_num_procs()` instead of calling out to `get_nprocs()`? I don't have a mac with Hyperthreading otherwise I would test it, but it compiles and tests fine. :)