我正在使用Mac Pro和El Capitan。我尝试通过自制软件安装Julia但是它失败并带有以下堆栈跟踪
==> make FC=/usr/local/bin/gfortran
Last 15 lines from /Users/vishalsharma/Library/Logs/Homebrew/openblas-julia/01.make:
printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double)));
^
getarch_2nd.c:69:50: error: use of undeclared identifier 'CGEMM_DEFAULT_Q'
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
^
getarch_2nd.c:69:68: error: use of undeclared identifier 'CGEMM_DEFAULT_UNROLL_N'
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
^
getarch_2nd.c:70:50: error: use of undeclared identifier 'ZGEMM_DEFAULT_Q'
printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double)));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [getarch_2nd] Error 1
Makefile:131: *** OpenBLAS: Detecting CPU failed. Please set TARGET explicitly, e.g. make TARGET=your_cpu_target. Please read README for the detail.. Stop.
答案 0 :(得分:0)
看起来OpenBLAS
无法检测到您的CPU架构。你有Nehalem CPU吗?您需要在其中创建一个Make.inc
文件,其中包含OPENBLAS_TARGET_ARCH=NEHALEM
,并运行make TARGET=NEHALEM FC=...
或类似内容(将NEHALEM
调整为HASWELL
或将您的适当)。请参阅最近对this GitHub问题的评论。