forked from jcosborn/qex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.nims
54 lines (53 loc) · 1.83 KB
/
local.nims
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
import strutils
const xlbgq = "/soft/compilers/ibmcmp-may2016/"
const llbgq = [
"/soft/libraries/alcf/current/xl/LAPACK/lib/liblapack.a",
"/soft/libraries/alcf/current/xl/BLAS/lib/libblas.a",
"-L"&xlbgq&"xlf/bg/14.1/bglib64",
"-L"&xlbgq&"xlsmp/bg/3.1/bglib64",
"-lxlf90_r -lxlfmath -lxlsmp -lxl" ]
######################################################################
# Configurations
# Comment starts with `#'
const
qexDir = "." # Path to qex source directory
extraSrcDir = @["."] # Extra paths to search for build targets.
#primmeDir = "$HOME/pkg/src/primme"
#qmpDir = "$HOME/pkg/qmp"
#qioDir = "$HOME/pkg/qio"
qmpDir = "$HOME/lqcd/install/qmp"
qioDir = "$HOME/lqcd/install/qio"
ccType = "gcc"
cc = "mpicc"
#cc = "/home/xyjin/pkgs/src/qex/build/mpixlc2"
#cflagsAlways = "-Wall -std=gnu11 -march=native -ldl -Wa,-q"
cflagsAlways = "-Wall -std=gnu11 -march=native -ldl -fno-strict-aliasing"
cflagsDebug = "-g3 -O0"
cflagsSpeed = "-g -Ofast"
ompFlags = "-fopenmp"
#cflagsAlways = "-qinfo=pro"
#cflagsAlways = "-qinfo=pro -qstrict=operationprecision"
#cflagsDebug = "-g3 -O0"
#cflagsSpeed = "-g -O3"
#ompFlags = "-qsmp=omp"
ld = cc
ldflags = "-Wall -std=gnu11 -march=native -ldl"
#ldflags = cflagsAlways
nimcache = "nimcache"
verbosity = 1
simd = "SSE AVX"
vlen = "8"
#simd = "QPX"
#vlen = "4"
extraDef = ["STATIC_UNROLL=1"]
########################################
# Optional dependencies
#primmeDir = "$HOME/pkgs/src/primme"
#primmeDir = "$HOME/pkgs/build/primme"
#lapackLib = "'-Wl,-framework -Wl,Accelerate'"
#lapackLib = "'$HOME/pkg/lib/libopenblas.a -fopenmp -lm -lgfortran'"
#lapackLib = "'"&llbgq.join" "&"'"
#qudaDir = "$HOME/lqcdM/build/quda"
#cudaLibDir = "/usr/local/cuda/lib64"
# End of configurations
######################################################################