OpenMathLib / OpenBLAS

OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version.
http://www.openblas.net
BSD 3-Clause "New" or "Revised" License
6.36k stars 1.49k forks source link

OpenBLAS: Detecting CPU failed #4956

Open dingjr7 opened 3 hours ago

dingjr7 commented 3 hours ago

CPU is amd 9950x error log:

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:
  In function ‘main’:

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:22:35:
  error: ‘SGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this
  function); did you mean ‘SBGEMM_DEFAULT_UNROLL_M’?

     22 |     printf("SGEMM_UNROLL_M=%d\n", SGEMM_DEFAULT_UNROLL_M);
        |                                   ^~~~~~~~~~~~~~~~~~~~~~
        |                                   SBGEMM_DEFAULT_UNROLL_M

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:22:35:
  note: each undeclared identifier is reported only once for each function it
  appears in

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:23:35:
  error: ‘SGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this
  function); did you mean ‘SBGEMM_DEFAULT_UNROLL_N’?

     23 |     printf("SGEMM_UNROLL_N=%d\n", SGEMM_DEFAULT_UNROLL_N);
        |                                   ^~~~~~~~~~~~~~~~~~~~~~
        |                                   SBGEMM_DEFAULT_UNROLL_N

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:24:35:
  error: ‘DGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this
  function); did you mean ‘XGEMM_DEFAULT_UNROLL_M’?

     24 |     printf("DGEMM_UNROLL_M=%d\n", DGEMM_DEFAULT_UNROLL_M);
        |                                   ^~~~~~~~~~~~~~~~~~~~~~
        |                                   XGEMM_DEFAULT_UNROLL_M

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:25:35:
  error: ‘DGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this
  function); did you mean ‘QGEMM_DEFAULT_UNROLL_N’?

     25 |     printf("DGEMM_UNROLL_N=%d\n", DGEMM_DEFAULT_UNROLL_N);
        |                                   ^~~~~~~~~~~~~~~~~~~~~~
        |                                   QGEMM_DEFAULT_UNROLL_N

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:29:35:
  error: ‘CGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this
  function); did you mean ‘XGEMM_DEFAULT_UNROLL_M’?

     29 |     printf("CGEMM_UNROLL_M=%d\n", CGEMM_DEFAULT_UNROLL_M);
        |                                   ^~~~~~~~~~~~~~~~~~~~~~
        |                                   XGEMM_DEFAULT_UNROLL_M

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:30:35:
  error: ‘CGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this
  function); did you mean ‘QGEMM_DEFAULT_UNROLL_N’?

     30 |     printf("CGEMM_UNROLL_N=%d\n", CGEMM_DEFAULT_UNROLL_N);
        |                                   ^~~~~~~~~~~~~~~~~~~~~~
        |                                   QGEMM_DEFAULT_UNROLL_N

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:31:35:
  error: ‘ZGEMM_DEFAULT_UNROLL_M’ undeclared (first use in this
  function); did you mean ‘XGEMM_DEFAULT_UNROLL_M’?

     31 |     printf("ZGEMM_UNROLL_M=%d\n", ZGEMM_DEFAULT_UNROLL_M);
        |                                   ^~~~~~~~~~~~~~~~~~~~~~
        |                                   XGEMM_DEFAULT_UNROLL_M

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:32:35:
  error: ‘ZGEMM_DEFAULT_UNROLL_N’ undeclared (first use in this
  function); did you mean ‘QGEMM_DEFAULT_UNROLL_N’?

     32 |     printf("ZGEMM_UNROLL_N=%d\n", ZGEMM_DEFAULT_UNROLL_N);
        |                                   ^~~~~~~~~~~~~~~~~~~~~~
        |                                   QGEMM_DEFAULT_UNROLL_N

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:79:50:
  error: ‘SGEMM_DEFAULT_Q’ undeclared (first use in this function); did
  you mean ‘SBGEMM_DEFAULT_Q’?

     79 |     printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 *  sizeof(float)));
        |                                                  ^~~~~~~~~~~~~~~
        |                                                  SBGEMM_DEFAULT_Q

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:80:50:
  error: ‘DGEMM_DEFAULT_Q’ undeclared (first use in this function); did
  you mean ‘SBGEMM_DEFAULT_Q’?

     80 |     printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 *  sizeof(double)));
        |                                                  ^~~~~~~~~~~~~~~
        |                                                  SBGEMM_DEFAULT_Q

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:81:50:
  error: ‘CGEMM_DEFAULT_Q’ undeclared (first use in this function); did
  you mean ‘SBGEMM_DEFAULT_Q’?

     81 |     printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 *  sizeof(float)));
        |                                                  ^~~~~~~~~~~~~~~
        |                                                  SBGEMM_DEFAULT_Q

  /home/dingjr/vcpkg/buildtrees/openblas/src/v0.3.28-6f3e63eb38.clean/getarch_2nd.c:82:50:
  error: ‘ZGEMM_DEFAULT_Q’ undeclared (first use in this function); did
  you mean ‘SBGEMM_DEFAULT_Q’?

     82 |     printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 *  sizeof(double)));
        |                                                  ^~~~~~~~~~~~~~~
        |                                                  SBGEMM_DEFAULT_Q

  ninja: build stopped: subcommand failed.

./getarch 1

#define AMD_UNKNOWN
#define L1_CODE_SIZE 49152
#define L1_CODE_ASSOCIATIVE 12
#define L1_CODE_LINESIZE 64
#define L1_DATA_SIZE 49152
#define L1_DATA_ASSOCIATIVE 12
#define L1_DATA_LINESIZE 64
#define L2_SIZE 1048576
#define L2_ASSOCIATIVE 16
#define L2_LINESIZE 64
#define L3_SIZE 67108864
#define L3_ASSOCIATIVE 9
#define L3_LINESIZE 64
#define ITB_SIZE 4096
#define ITB_ASSOCIATIVE 0
#define ITB_ENTRIES 64
#define DTB_SIZE 4096
#define DTB_ASSOCIATIVE 0
#define DTB_DEFAULT_ENTRIES 96
#define HAVE_CMOV
#define HAVE_MMX
#define HAVE_SSE
#define HAVE_SSE2
#define HAVE_SSE3
#define HAVE_SSSE3
#define HAVE_SSE4_1
#define HAVE_SSE4_2
#define HAVE_SSE4A
#define HAVE_AVX
#define HAVE_AVX2
#define HAVE_AVX512VL
#define HAVE_AVX512BF16
#define HAVE_FMA3
#define HAVE_CFLUSH
#define HAVE_MISALIGNSSE
#define HAVE_FASTMOVU
#define NUM_SHAREDCACHE 1
#define NUM_CORES 1
#define CORE_BARCELONA
#define CHAR_CORENAME "BARCELONA"
martin-frbg commented 3 hours ago

This may already be fixed by #4923 , sadly the 0.3.29 release got delayed