-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmake.inc
More file actions
36 lines (24 loc) · 920 Bytes
/
make.inc
File metadata and controls
36 lines (24 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
CC = icc
#CC = gcc
CXX = icpc
#CXX = g++
NVCC = nvcc
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
CFLAGS = -O3 -openmp -mavx
# For Intel Xeon Phi on Stampede
CFLAGSMIC = -g -O3 -openmp -mmic -fasm-blocks
NVCCFLAGS = -O4 -arch sm_35
#NVCCFLAGS = -O4 -arch sm_35 --maxrregcount=128
MIC_LD_LIBRARY_PATH=$(TACC_MKL_DIR)/lib/mic
MIC_VML_DIR=/opt/apps/intel/13/composer_xe_2013.2.146/compiler/lib/mic
LIBKS = $(KS_DIR)/lib/libks.a
LIBKSMIC = $(KS_DIR)/lib/libks-mic.a
CUDA_DIR = $(TACC_CUDA_DIR)
LDFLAGS = -I$(CUDA_DIR)/include -I$(KS_DIR)/include -I$(TACC_MKL_DIR)/include
LDLIBS = $(LIBKS) -lpthread -lm -openmp -mkl=parallel -Werror -Wall -pedantic
LDLIBSMIC = $(LIBKSMIC) -lpthread -lm -openmp -L$(MIC_LD_LIBRARY_PATH) \
-L$(MIC_VML_DIR) -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -lsvml
#LDLIBS = $(LIBKS) -L$(CUDA_DIR)/lib64 -lcudart -lcublas -lpthread -lm -openmp \
#-mkl=parallel -Werror -Wall -pedantic