# IT4Innovations 2021 # JK # rucni kompilace - viz https://github.com/nwchemgit/nwchem/blob/master/INSTALL # src/: # sed -i "s|-xHost|-core-avx2|g" config/makefile-legacy.h # sed -i "s|-xHost|-core-avx2|g" config/makefile.h # make nwchem_config NWCHEM_MODULES="all python" # make USE_INTERNALBLAS=y USE_MPI=y # # zkopirovat data: # cp bin/nwchem -> bin slozka # cp -r src/basis/libraries -> data slozka # cp -r src/data/* -> data slozka # cp -r src/nwpw/libraryps -> data slozka # eb NWChem-7.0.2-intel-2020a-Python-3.8.2-karolina.eb --module-only name = 'NWChem' version = '7.0.2' versionsuffix = '-Python-%(pyver)s-karolina' homepage = 'http://www.nwchem-sw.org' description = """NWChem aims to provide its users with computational chemistry tools that are scalable both in their ability to treat large scientific computational chemistry problems efficiently, and in their use of available parallel computing resources from high-performance parallel supercomputers to conventional workstation clusters. NWChem software can handle: biomolecules, nanostructures, and solid-state; from quantum to classical, and all combinations; Gaussian basis functions or plane-waves; scaling from one to thousands of processors; properties and relativity.""" toolchain = {'name': 'intel', 'version': '2020a'} toolchainopts = {'i8': True, 'optarch':'march=core-avx2'} source_urls = ['https://github.com/nwchemgit/nwchem/releases/download/v%(version)s-release/'] sources = ['v%(version)s-release.tar.gz'] patches = [ 'NWChem_fix-date.patch', # 'NWChem-7.0.0_external-ga-peigs-flag.patch', ] dependencies = [ # ('GlobalArrays', '5.7.2'), ('Python', '3.8.2', '-GCCcore-9.3.0', True), ('OpenMPI', '4.1.1', '-GCC-10.3.0', True) ] preconfigopts = ' export NWCHEM_TOP=%(builddir)s/nwchem-%(version)s-release && ' preconfigopts += ' touch $NWCHEM_TOP/src/config/nwchem_config.h && ' preconfigopts += ' sed -i "s|-xHost|-core-avx2|g" $NWCHEM_TOP/src/config/makefile-legacy.h && ' preconfigopts += 'sed -i "s|-xHost|-core-avx2|g" $NWCHEM_TOP/src/config/makefile.h && ' preconfigopts += ' make -C "/home/opr0019/.local/easybuild/build/NWChem/7.0.2/intel-2020a-Python-3.8.2/nwchem-7.0.2-release/src" nwchem_config NWCHEM_MODULES="all python" && ' configopts = ' USE_INTERNALBLAS=yes USE_MPI=yes ' buildopts = ' USE_INTERNALBLAS=yes USE_MPI=yes ' modules = 'all python' moduleclass = 'chem' # rucni kompilace # src/: # sed -i "s|-xHost|-core-avx2|g" config/makefile-legacy.h # sed -i "s|-xHost|-core-avx2|g" config/makefile.h # make nwchem_config NWCHEM_MODULES="all python" # make USE_INTERNALBLAS=y USE_MPI=y