Description
I tried to compile openblas-git on a 4-Xeon E7-4850 Linux system which has 80 threads (4 procs * 10 core * 2 threads) using the following commands
export OMP_NUM_THREADS=64
make USE_OPENMP=1 NO_LAPACK=1
but it fails in the testing phase with the error message:
OpenBLAS Warining : The number of CPU/Cores(80) is beyond the limit(64). Terminated.
(note: it should be Warning not Warining)
Looking into init.c under driver/others I realised that OMP_NUM_THREADS is used to set the numprocs variable in gotoblas_affinity_init(), but that the check which gives the above error message is made on common->num_procs. This is set with a call to get_nprocs() at line 647. I changed this line to
common -> num_procs = get_nprocs() > 64? 64: get_nprocs();
and was finally able to pass the test.
Regards.