-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake.inc
67 lines (54 loc) · 2.29 KB
/
make.inc
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
##############################################################
# BBLAS make.inc file
#
# Automatically generated by setup.py
#
# BBLAS is a software package provided by Univ. of Manchester,
# Univ. of Tennessee
##############################################################
# BBLAS Source Code
BBLAS_BASE_DIR = /home/srelton/NLAFET/BBLAS-Manc
BBLAS_SRC_DIR = $(BBLAS_BASE_DIR)/src
BBLAS_TEST_DIR = $(BBLAS_BASE_DIR)/testing
BBLAS_OMP_DIR = $(BBLAS_TEST_DIR)/bblas_omp
BBLAS_MKL_DIR = $(BBLAS_TEST_DIR)/bblas_mkl
BBLAS_CUDA_DIR = $(BBLAS_TEST_DIR)/bblas_cuda
BBLAS_MAGMA_DIR = $(BBLAS_TEST_DIR)/bblas_magma
DEPS = -I$(BBLAS_BASE_DIR)/include -I$(BBLAS_TEST_DIR) -I$(BBLAS_MKL_DIR) -I$(BBLAS_OMP_DIR) -I$(BBLAS_CUDA_DIR) -I$(BBLAS_MAGMA_DIR)
LDFLAGS = -fopenmp
# Compiler
CC = gcc-4.9
CFLAGS = -c -std=c99 -DADD_ -Wall -pedantic -fopenmp
CFLAGS += -DBBLAS_WITH_CUBLAS
CFLAGS += -DBBLAS_WITH_MAGMA
CFLAGS += -DBBLAS_WITH_MKL
DEPS += -m64 -I${MKLROOT}/include
# BLAS libraries
BLAS_LIB = -Wl,--start-group /opt/intel/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64/libmkl_intel_lp64.a /opt/intel/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64/libmkl_core.a /opt/intel/compilers_and_libraries_2016.2.181/linux/mkl/lib/intel64/libmkl_gnu_thread.a -Wl,--end-group -lpthread -lm -ldl
#BLAS_LIB = -lblas
# CBLAS libraries
CBLAS_DIR = #$(BBLAS_BASE_DIR)/install
CBLAS_LIB = -L$(CBLAS_DIR)/lib
CBLAS_INC = -I$(CBLAS_DIR)/include
# LAPACK libraries
LAPACK_DIR = #$(BBLAS_BASE_DIR)/install
LAPACK_LIB = -L$(LAPACK_DIR)/lib
LAPACK_INC = -I$(LAPACK_DIR)/include
# LAPACKE libraries
LAPACKE_DIR = $(BBLAS_BASE_DIR)/install
LAPACKE_LIB = -L$(LAPACKE_DIR)/lib -llapacke
LAPACKE_INC = -I$(LAPACKE_DIR)/include
# CUDA libraries
CUDA_DIR = /usr
CUDA_LIB = -L$(CUDA_DIR)/lib64 -lcudart -lcublas
CUDA_INC = -I$(CUDA_DIR)/include
DEPS += $(CUDA_INC)
LDFLAGS += $(CUDA_LIB)
# CUDA libraries
MAGMA_DIR = /home/srelton/magma-2.0.1
MAGMA_LIB = -L$(MAGMA_DIR)/lib -lmagma
MAGMA_INC = -I$(MAGMA_DIR)/include
DEPS += $(MAGMA_INC)
LDFLAGS += $(MAGMA_LIB)
DEPS += $(LAPACKE_INC) $(LAPACK_INC) $(CBLAS_INC)
LDFLAGS += $(LAPACKE_LIB) $(LAPACK_LIB) $(CBLAS_LIB) $(BLAS_LIB) -lm -lgfortran