Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBLAS: Detecting CPU failed #4956

Open
dingjr7 opened this issue Oct 26, 2024 · 1 comment
Open

OpenBLAS: Detecting CPU failed #4956

dingjr7 opened this issue Oct 26, 2024 · 1 comment

Comments

@dingjr7
Copy link

dingjr7 commented Oct 26, 2024

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants