2015-10-14 196 views
0

我正在使用Mac Pro和El Capitan。我试图通过自制安装朱莉娅但它失败,出现以下堆栈跟踪在Mac Pro上安装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

它看起来像OpenBLAS无法检测到您的CPU架构。你有Nehalem CPU吗?您需要创建一个Make.inc文件,其中包含OPENBLAS_TARGET_ARCH=NEHALEM,并运行make TARGET=NEHALEM FC=...或类似的(根据需要调整NEHALEMHASWELL或您的拱门)。请参阅关于this GitHub问题的最新评论。