forked from AFD-Illinois/igrmonty2d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
machines.py
59 lines (50 loc) · 1.7 KB
/
machines.py
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
import os
import sys
machines = {}
def add_machine(name, compiler, c_flags, l_flags, gsl_dir):
machine = {}
machine['NAME'] = name
machine['COMPILER'] = compiler
machine['COMPILER_FLAGS'] = c_flags
machine['LIB_FLAGS'] = l_flags
machine['GSL_DIR'] = gsl_dir
machines[name] = machine
def get_machine():
for key in machines:
if machines[key]['NAME'] in os.uname()[1]:
#if os.uname()[1] == machines[key]['NAME']:
return machines[key]
print('UNKNOWN MACHINE ' + os.uname()[1])
sys.exit()
add_machine(name='meade',
compiler='h5pcc',
#c_flags='-O3 -Wall -Werror -fdiagnostics-color -fopenmp',
#l_flags='',
c_flags='-O3 -std=c99 -Wall -fopenmp -g',
l_flags='-lm -lgsl -lgslcblas',
gsl_dir='/home/brryan/Software/gsl')
add_machine(name='bh',
compiler='h5pcc',
c_flags='-O3 -std=c99 -Wall -fopenmp -g',
l_flags='-lm -lgsl -lgslcblas',
gsl_dir='')
add_machine(name='bh21',
compiler='h5pcc',
c_flags='-O3 -std=c99 -Wall -fopenmp -g',
l_flags='-lm -lgsl -lgslcblas',
gsl_dir='')
add_machine(name='bh27',
compiler='h5pcc',
c_flags='-O3 -std=c99 -Wall -fopenmp -g',
l_flags='-lm -lgsl -lgslcblas',
gsl_dir='')
add_machine(name='lmc',
compiler='h5pcc',
c_flags='-O3 -std=c99 -Wall -fopenmp -g',
l_flags='-lm -lgsl -lgslcblas',
gsl_dir='')
add_machine(name='stampede2',
compiler='h5pcc',
c_flags='-O3 -std=c99 -Wall -fopenmp -g',
l_flags='-lm -lgsl -lgslcblas',
gsl_dir='/opt/apps/intel17/gsl/2.3')