File tree 4 files changed +23
-3
lines changed
4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change
1
+
2
+ ifdef USE_THREAD
3
+ ifeq ($(USE_THREAD), 0)
4
+ USE_OPENMP = 0
5
+ else
6
+ USE_OPENMP = 1
7
+ endif
8
+ else
9
+ USE_OPENMP = 1
10
+ endif
11
+
12
+
13
+
1
14
ifeq ($(CORE), POWER8)
15
+ ifeq ($(USE_OPENMP), 1)
16
+ COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -DALLOC_SHM -DUSE_OPENMP -fno-fast-math -fopenmp
17
+ FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -DUSE_OPENMP -fno-fast-math -fopenmp
18
+ else
2
19
COMMON_OPT += -Ofast -mcpu=power8 -mtune=power8 -mvsx -malign-power -DALLOC_SHM -fno-fast-math
3
20
FCOMMON_OPT += -O2 -frecursive -mcpu=power8 -mtune=power8 -malign-power -fno-fast-math
4
21
endif
22
+ endif
23
+
5
24
6
25
FLAMEPATH = $(HOME)/flame/lib
7
26
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ VERSION = 0.2.19.dev
52
52
# USE_THREAD = 0
53
53
54
54
# If you're going to use this library with OpenMP, please comment it in.
55
- # always use this flag for POWER8
55
+ # This flag is always set for POWER8. Don't modify the flag
56
56
# USE_OPENMP = 1
57
57
58
58
# You can define maximum number of threads. Basically it should be
Original file line number Diff line number Diff line change @@ -2231,10 +2231,10 @@ zgemm3m.$(SUFFIX) : gemm3m.c
2231
2231
$(CC ) $(CFLAGS ) -c -DCOMPLEX -DDOUBLE -o $(@F ) $^
2232
2232
2233
2233
smallscaling : smallscaling.c ../$(LIBNAME )
2234
- $(CC ) $(CFLAGS ) -o $(@F ) $^ $(EXTRALIB ) -fopenmp -lm
2234
+ $(CC ) $(CFLAGS ) -o $(@F ) $^ $(EXTRALIB ) -fopenmp -lm -lpthread
2235
2235
2236
2236
clean ::
2237
- @rm -f * .goto * .mkl * .acml * .atlas * .veclib * .essl
2237
+ @rm -f * .goto * .mkl * .acml * .atlas * .veclib * .essl smallscaling
2238
2238
2239
2239
include $(TOPDIR ) /Makefile.tail
2240
2240
Original file line number Diff line number Diff line change 5
5
#include <time.h>
6
6
#include <cblas.h>
7
7
#include <omp.h>
8
+ #include <pthread.h>
8
9
#define MIN_SIZE 5
9
10
#define MAX_SIZE 60
10
11
#define NB_SIZE 10
You can’t perform that action at this time.
0 commit comments