forked from bioexcel/gromacs-hpccm-recipes-mult-stages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
48 lines (34 loc) · 1.16 KB
/
config.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
'''
Author :
* Muhammed Ahad <[email protected], [email protected]>
'''
import os
# Argument options for GROMACS : TODO : The Following Things needs to be simplified
ARCHITECTURES = ['avx_512f', 'avx2', 'avx', 'sse2']
GMX_BINARY_DIRECTORY_SUFFIX = ['AVX_512', 'AVX2_256', 'AVX_256', 'SSE2']
ENGINE_OPTIONS = {
'simd': ARCHITECTURES,
'rdtscp': ['on', 'off']
}
SIMD_MAPPER = dict(zip(ENGINE_OPTIONS['simd'], GMX_BINARY_DIRECTORY_SUFFIX))
# Minimum Software Version
# Default Software version
DEFAULT_GROMACS_VERSION = '2020.1'
DEFAULT_GCC_VERSION = '8'
DEFAULT_CMAKE_VERSION = '3.9.6'
# minimum required software version
GCC_MIN_REQUIRED_VERSION = '5.1'
CMAKE_MIN_REQUIRED_VERSION = '3.9.6'
OPENMPI_MIN_REQUIRED_VERSION = '1.6.0'
# Configuration related to GMX engines
# Default Suffix for GMX engine binaries
GMX_INSTALLATION_DIRECTORY = '/usr/local/gromacs'
GMX_BINARY_DIRECTORY = os.path.join(GMX_INSTALLATION_DIRECTORY, 'bin.{0}')
GMX_ENGINE_SUFFIX_OPTIONS = {
'mpi': '_mpi',
'double': '_d',
'rdtscp': '_rdtscp'
}
BINARY_SUFFIX_FORMAT = '{mpi}{double}{rdtscp}'
LIBRARY_SUFFIX_FORMAT = '{mpi}{double}{rdtscp}'
WRAPPER_SUFFIX_FORMAT = '{mpi}{double}'