# IT4Innovations 
# LK 2023

easyblock = 'MakeCp'

name = 'Smilei'
version = '5.0'
versionsuffix = '-CUDA-12.2.0'

homepage = 'https://github.com/SmileiPIC/Smilei'
description = "Smilei is an open-source, user-friendly electromagnetic particle-in-cell code for the kinetic simulation of plasmas. Co-developed by physicists and computer scientists, it is designed for high-performance on the most recent supercomputing architectures. Smilei is applied to a wide range of applications, from laser-plasma interaction, to accelerator physics, space physics and astrophysics. It is also used at the bachelor and master levels as a teaching platform for plasma physics."

toolchain = {'name': 'intel', 'version': '2020b'}

source_urls = ["https://github.com/SmileiPIC/Smilei/archive/refs/tags/"]
sources = ["v%(version)s.tar.gz"]
checksums = ['9d92603d31f21d191f61487ec452fcf83d898150bfc10341f1cae241e5eb7826']

dependencies = [
   ('HDF5', '1.10.7'),
   ('Python', '3.8.6'),
   ('CUDA', '12.2.0', '', True),
]

buildopts = 'config="gpu_nvidia noopenmp"'

files_to_copy = [(['smilei', 'smilei_test'], 'bin'), "src"]

sanity_check_paths = {
    'files': [
        'bin/smilei',
        'bin/smilei_test'
    ],
    'dirs': [
        'bin',
        'src'
    ],
}

moduleclass = 'phys'
