Skip to content

Commit 721accc

Browse files
Merge pull request #2 from awesome-cxl/bug/cachebuild
<bug>[system env] bug fix for cache analysis test build
2 parents ecbcd46 + 8613bf7 commit 721accc

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

benchmark/basic_performance/src/core/machine_define.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828

2929
#ifndef CXL_PERF_APP_MACHINE_DEFINE_H
30-
#define CXL_PERF_APP_MACHINE_DEFINE_H
30+
#define CXL_PERF_APP_MACHINE_DEFINE_H
3131
#define MACHINE_X86 1
3232
#define MACHINE_ARM 2
3333
#define MACHINE_MOCKUP 3
@@ -36,7 +36,12 @@
3636
#define MACHINE_TYPE_DEF MACHINE_MOCKUP
3737
#endif
3838

39-
#ifndef CORE_NUM_PER_SOCKET_DEF
39+
#ifndef CORE_NUM_PER_SOCKET_DEF // ONLY USED FOR CACHETEST, BW_VS_LATENCY TEST HAS OWN CORE_NUM_PER_SOCKET
4040
#define CORE_NUM_PER_SOCKET_DEF 10
4141
#endif
42+
43+
#ifndef MAX_SOCKET_NUM_DEF // ONLY USED FOR CACHETEST, BW_VS_LATENCY TEST HAS OWN MAX_SOCKET_NUM
44+
#define MAX_SOCKET_NUM_DEF 1
45+
#endif
46+
4247
#endif // CXL_PERF_APP_MACHINE_DEFINE_H

0 commit comments

Comments
 (0)