Refs #248. Fixed the LSB compatiable issue for BLAS only.

For example, make CC=lsbcc NO_LAPACK=1.
This commit is contained in:
Zhang Xianyi
2013-07-09 15:38:03 +08:00
parent 5d3312142a
commit f54f5bac9e
5 changed files with 23 additions and 4 deletions
+3 -1
View File
@@ -83,6 +83,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif
#ifdef linux
#include <sys/sysinfo.h>
#include <unistd.h>
#endif
/* #define FORCE_P2 */
@@ -736,7 +737,8 @@ static int get_num_cores(void) {
#endif
#ifdef linux
return get_nprocs();
//returns the number of processors which are currently online
return sysconf(_SC_NPROCESSORS_ONLN);
#elif defined(OS_WINDOWS)