# JH 2020 easyblock = "PythonPackage" name = 'GPAW' version = '20.1.0' versionsuffix = '-Py-3.7' homepage = 'https://wiki.fysik.dtu.dk/gpaw/' description = """GPAW is a density-functional theory (DFT) Python code based on the projector-augmented wave (PAW) method and the atomic simulation environment (ASE). It uses real-space uniform grids and multigrid methods or atom-centered basis-functions.""" toolchain = {'name': 'intel', 'version': '2020a'} toolchainopts = {'usempi': True, 'openmp': False} source_urls = [PYPI_LOWER_SOURCE] sources = [SOURCELOWER_TAR_GZ] patches = [ ('GPAW-20.1.0-Add-Easybuild-configuration-files.patch', 1), ('GPAW-20.1.0-Wrap-pragma-omp-simd-in-ifdef-_OPENMP-blocks.patch', 1), ] checksums = [ 'c84307eb9943852d78d966c0c8856fcefdefa68621139906909908fb641b8421', # gpaw-20.1.0.tar.gz # GPAW-20.1.0-Add-Easybuild-configuration-files.patch '1231ef113f8c46c1f37bf4e544d792fd75dd8965053f792cac5794cb84af8276', # GPAW-20.1.0-Wrap-pragma-omp-simd-in-ifdef-_OPENMP-blocks.patch 'bf0e0179ce9261197a10a3a934ce3a8d46489b635a3130a5ceb2fe0fee67bb14', ] # libvdwxc is not a dependency of the intel build, as it is incompatible with the Intel MKL. dependencies = [ ('Py', '3.7', '', True), ('scipy', '1.3.3', versionsuffix, True), ('ASE', '3.18.1', versionsuffix, True), ('libxc', '4.3.4'), ('GPAW-setups', '0.9.9672', '', True), ] prebuildopts = 'GPAW_CONFIG=doc/platforms/Linux/EasyBuild/config_intel.py' preinstallopts = prebuildopts download_dep_fail = True use_pip = True sanity_pip_check = True # required because we're building a Python package using Intel compilers on top of Python built with GCC. check_ldshared = True sanity_check_paths = { 'files': ['bin/gpaw%s' % x for x in ['', '-analyse-basis', '-basis', '-mpisim', '-plot-parallel-timings', '-runscript', '-setup', '-upfplot']], 'dirs': ['lib/python3.7/site-packages'] } moduleclass = 'chem'