Skip to content

Commit faa7369

Browse files
committed
Delete LOCAL_BUFFER_SIZE for other architectures.
1 parent f24d530 commit faa7369

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

getarch_2nd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,13 @@ int main(int argc, char **argv) {
6464

6565

6666
if ((argc >= 2) && (*argv[1] == '1')) {
67+
68+
#if defined(ARCH_X86) || defined(ARCH_X86_64)
6769
printf("#define SLOCAL_BUFFER_SIZE\t%ld\n", (SGEMM_DEFAULT_Q * SGEMM_DEFAULT_UNROLL_N * 4 * 1 * sizeof(float)));
6870
printf("#define DLOCAL_BUFFER_SIZE\t%ld\n", (DGEMM_DEFAULT_Q * DGEMM_DEFAULT_UNROLL_N * 2 * 1 * sizeof(double)));
6971
printf("#define CLOCAL_BUFFER_SIZE\t%ld\n", (CGEMM_DEFAULT_Q * CGEMM_DEFAULT_UNROLL_N * 4 * 2 * sizeof(float)));
7072
printf("#define ZLOCAL_BUFFER_SIZE\t%ld\n", (ZGEMM_DEFAULT_Q * ZGEMM_DEFAULT_UNROLL_N * 2 * 2 * sizeof(double)));
73+
#endif
7174

7275
#ifdef USE64BITINT
7376
printf("#define USE64BITINT\n");

0 commit comments

Comments
 (0)