OpenBLAS failure getarch

519 views
Skip to first unread message

jelanier

unread,
Aug 26, 2015, 7:16:08 AM8/26/15
to OpenBLAS-users
Will not run on this machine. Intel i7 Broadwell

What is going on?


C:\OpenBlas\OpenBLAS-0.2.14>cmd
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\OpenBlas\OpenBLAS-0.2.14>make
getarch_2nd.c: In function 'main':
getarch_2nd.c:12:35: error: 'SGEMM_DEFAULT_UNROLL_M' undeclared (first use in th
is function)
     printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
                                   ^
getarch_2nd.c:12:35: note: each undeclared identifier is reported only once for
each function it appears in
getarch_2nd.c:13:35: error: 'SGEMM_DEFAULT_UNROLL_N' undeclared (first use in th
is function)
     printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
                                   ^
getarch_2nd.c:14:35: error: 'DGEMM_DEFAULT_UNROLL_M' undeclared (first use in th
is function)
     printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
                                   ^
getarch_2nd.c:15:35: error: 'DGEMM_DEFAULT_UNROLL_N' undeclared (first use in th
is function)
     printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
                                   ^
getarch_2nd.c:19:35: error: 'CGEMM_DEFAULT_UNROLL_M' undeclared (first use in th
is function)
     printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
                                   ^
getarch_2nd.c:20:35: error: 'CGEMM_DEFAULT_UNROLL_N' undeclared (first use in th
is function)
     printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
                                   ^
getarch_2nd.c:21:35: error: 'ZGEMM_DEFAULT_UNROLL_M' undeclared (first use in th
is function)
     printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
                                   ^
getarch_2nd.c:22:35: error: 'ZGEMM_DEFAULT_UNROLL_N' undeclared (first use in th
is function)
     printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
                                   ^
getarch_2nd.c:67:50: error: 'SGEMM_DEFAULT_Q' undeclared (first use in this func
tion)
     printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAUL
T_UNROLL_N * 4 * 1 *  sizeof(float)));
                                                  ^
getarch_2nd.c:68:50: error: 'DGEMM_DEFAULT_Q' undeclared (first use in this func
tion)
     printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAUL
T_UNROLL_N * 2 * 1 *  sizeof(double)));
                                                  ^
getarch_2nd.c:69:50: error: 'CGEMM_DEFAULT_Q' undeclared (first use in this func
tion)
     printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAUL
T_UNROLL_N * 4 * 2 *  sizeof(float)));
                                                  ^
getarch_2nd.c:70:50: error: 'ZGEMM_DEFAULT_Q' undeclared (first use in this func
tion)
     printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAUL
T_UNROLL_N * 2 * 2 *  sizeof(double)));
                                                  ^
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.

C:\OpenBlas\OpenBLAS-0.2.14>

Zhang Xianyi

unread,
Aug 26, 2015, 8:29:34 AM8/26/15
to jelanier, OpenBLAS-users
Could you use develop branch or "make TARGET=HASWELL"

Xianyi

--
You received this message because you are subscribed to the Google Groups "OpenBLAS-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openblas-user...@googlegroups.com.
To post to this group, send email to openbla...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jelanier

unread,
Aug 27, 2015, 10:51:10 AM8/27/15
to OpenBLAS-users, lani...@gmail.com
After specifying CPU target, it crashed after several minutes of operation.. Here is the tail end of operations. Any ideas? It works OK on my older laptops.

*******************************************************************
MAX_CPU_NUMBER=1 -DASMNAME=dcabs1 -DASMFNAME=dcabs1_ -DNAME=dcabs1_ -DCNAME=dcab
s1 -DCHAR_NAME=\"dcabs1_\" -DCHAR_CNAME=\"dcabs1\" -DNO_AFFINITY -DTS= -I.. -DCO
MPLEX -DDOUBLE -DF_INTERFACE ../kernel/x86_64/cabs.S -o dcabs1.obj
ar  -ru ../libopenblas-r0.2.14.a lsame.obj scabs1.obj dcabs1.obj
make[1]: Leaving directory 'C:/unzipped/openBLAS/kernel'
make[1]: Entering directory 'C:/unzipped/openBLAS/kernel'
c:\mingw64\bin\make: invalid option -- G
c:\mingw64\bin\make: invalid option -- E
c:\mingw64\bin\make: invalid option -- M
c:\mingw64\bin\make: invalid option -- M
c:\mingw64\bin\make: invalid option -- _
c:\mingw64\bin\make: invalid option -- M
c:\mingw64\bin\make: invalid option -- U
c:\mingw64\bin\make: invalid option -- T
c:\mingw64\bin\make: invalid option -- N
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
  --debug[=FLAGS]             Print various types of debugging information.
  -e, --environment-overrides
                              Environment variables override makefiles.
  --eval=STRING               Evaluate STRING as a makefile statement.
  -f FILE, --file=FILE, --makefile=FILE
                              Read FILE as a makefile.
  -h, --help                  Print this message and exit.
  -i, --ignore-errors         Ignore errors from recipes.
  -I DIRECTORY, --include-dir=DIRECTORY
                              Search DIRECTORY for included makefiles.
  -j [N], --jobs[=N]          Allow N jobs at once; infinite jobs with no arg.
  -k, --keep-going            Keep going when some targets can't be made.
  -l [N], --load-average[=N], --max-load[=N]
                              Don't start multiple jobs unless load is below N.
  -L, --check-symlink-times   Use the latest mtime between symlinks and target.
  -n, --just-print, --dry-run, --recon
                              Don't actually run any recipe; just print them.
  -o FILE, --old-file=FILE, --assume-old=FILE
                              Consider FILE to be very old and don't remake it.
  -O[TYPE], --output-sync[=TYPE]
                              Synchronize output of parallel jobs by TYPE.
  -p, --print-data-base       Print make's internal database.
  -q, --question              Run no recipe; exit status says if up to date.
  -r, --no-builtin-rules      Disable the built-in implicit rules.
  -R, --no-builtin-variables  Disable the built-in variable settings.
  -s, --silent, --quiet       Don't echo recipes.
  -S, --no-keep-going, --stop
                              Turns off -k.
  -t, --touch                 Touch targets instead of remaking them.
  --trace                     Print tracing information.
  -v, --version               Print the version number of make and exit.
  -w, --print-directory       Print the current directory.
  --no-print-directory        Turn off -w, even if it was turned on implicitly.
  -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
                              Consider FILE to be infinitely new.
  --warn-undefined-variables  Warn when an undefined variable is referenced.

This program built for x86_64-w64-mingw32
Report bugs to <bug-...@gnu.org>
../Makefile.system:156: ../Makefile_kernel.conf: No such file or directory
make[1]: *** No rule to make target '../Makefile_kernel.conf'.  Stop.
make[1]: Leaving directory 'C:/unzipped/openBLAS/kernel'
Makefile:141: recipe for target 'libs' failed
make: *** [libs] Error 1

Zhang Xianyi

unread,
Aug 27, 2015, 11:29:28 AM8/27/15
to jelanier, OpenBLAS-users
Could you try https://github.com/xianyi/OpenBLAS/archive/develop.zip develop branch?

I think it can detect broadwell

Xianyi

jelanier

unread,
Aug 28, 2015, 6:05:16 AM8/28/15
to OpenBLAS-users, lani...@gmail.com
That worked!! It did detect my Broadwell CPU. I also had to change my version of MinGW64. The 5.x versions are all broken. I went back to 4.9.x version.

Thanks for the help.

Jim
Reply all
Reply to author
Forward
0 new messages