Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
easyblock = 'PythonBundle'

name = 'DP-GEN'
version = '0.13.2'
versionsuffix = '-CUDA-%(cudaver)s'

homepage = 'https://github.com/deepmodeling/deepmd-kit/'
description = "A deep learning package for many-body potential energy representation and molecular dynamics."

toolchain = {'name': 'foss', 'version': '2024a'}

builddependencies = [
('Cython', '3.0.10'),
('Eigen', '3.4.0'),
('scikit-build-core', '0.10.6'),
('SWIG', '4.2.1'),
]
dependencies = [
('ASE', '3.23.0'),
('cp2k-input-tools', '0.9.1'),
('CUDA', '12.6.0', '', SYSTEM),
('DeePMD-kit', '3.1.1', versionsuffix),
('h5py', '3.12.1'),
('matplotlib', '3.9.2'),
('netcdf4-python', '1.7.1.post2'),
('OpenBabel', '3.1.1'), # Use module instead of openbabel-wheel
('pymatgen', '2025.6.14'),
('Python', '3.12.3'),
('scikit-image', '0.25.0'),
('SciPy-bundle', '2024.05'),
]

exts_list = [
('pycp2k', '0.2.2', {
'checksums': ['460291dcf01a8f042e61bfbfa1526255877a6ef67242acc27b7eec2d8909839d'],
}),
('asciichartpy', '1.5.25', {
'source_tmpl': '%(name)s-%(version)s-py2.py3-none-any.whl',
'checksums': ['33c417a3c8ef7d0a11b98eb9ea6dd9b2c1b17559e539b207a17d26d4302d0258'],
}),
('cp2kdata', '0.7.3', {
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['79e4197a81021b9861e7aae25fed7f9051f9dcf29bd6c52fb6a48d646d31e5f4'],
}),
('custodian', '2025.10.11', {
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['3a69b381f9f2b8e32f41ec85a9336388bcfb0700fb35137eeab6bf7061cf1450'],
}),
('numkit', '1.3.1', {
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['ce8a0864ed2ac382502bf208fe83fba50b373ba2a765427c21552b9a5736dce9'],
}),
('gromacswrapper', '0.9.2', {
'modulename': 'gromacs',
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['d20ba450fc970595ea3fc83de899cb4c450fb4739ea182c5a56c2edcb80535b8'],
}),
('dpdispatcher', '1.0.0', {
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['56e461c5f7162bfd779190bae07f5e563632dd78513070c3a493aa2ae87539ba'],
}),
('mp_pyrho', '0.5.1', {
'modulename': 'pyrho',
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['934d90c6be35eeccc6b0d550771410b0801dbf4488aca96517f958b5045dd161'],
}),
('pymatgen_analysis_defects', '2024.7.19', {
'modulename': 'pymatgen.analysis.defects',
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['185ae1246df39ee9c7475986ae5ea4ff7582f97edea4d5762248d3dcc82e0628'],
}),
('dpgen', version, {
'preinstallopts': """sed -i "/'openbabel-wheel',/d" pyproject.toml && """,
'checksums': ['318379dbe7f429de7ab26fa78671bed621d9fe55f82ba5afc0984ade2237b0da'],
}),
]

sanity_check_paths = {
'files': ['bin/dpgen', 'bin/dpdisp'],
'dirs': ['lib/python%(pyshortver)s/site-packages'],
}

sanity_check_commands = ['dpgen -h']

modloadmsg = """
Since DeePMD-kit is built with the PyTorch backend, you must set:
train_backend: "pytorch"
as a run parameter if training of the model was done with DeePMD-kit.
"""

moduleclass = 'ai'
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
easyblock = 'PythonBundle'

name = 'DeePMD-kit'
version = '3.1.1'
versionsuffix = '-CUDA-%(cudaver)s'

homepage = 'https://github.com/deepmodeling/deepmd-kit/'
description = "A deep learning package for many-body potential energy representation and molecular dynamics."

toolchain = {'name': 'foss', 'version': '2024a'}

builddependencies = [
('scikit-build-core', '0.10.6'),
('hatchling', '1.24.2'),
('poetry', '1.8.3'),
('git', '2.45.1'),
('CMake', '3.29.3'),
('maturin', '1.6.0'),
]
dependencies = [
('CUDA', '12.6.0', '', SYSTEM),
('Python', '3.12.3'),
('SciPy-bundle', '2024.05'),
('ml_dtypes', '0.5.0'),
('pydantic', '2.9.1'),
('PyYAML', '6.0.2'),
('PyTorch', '2.6.0', versionsuffix),
('h5py', '3.12.1'),
('mpi4py', '4.0.1'),
('Deprecated', '1.2.18'),
('SQLAlchemy', '2.0.36'),
('ruamel.yaml', '0.18.6'),
('wrapt', '1.16.0'),
]

local_deepdm_configopts = '-DENABLE_PYTORCH=TRUE '
local_deepdm_configopts += '-DUSE_CUDA_TOOLKIT=ON '

components = [
('deepmd', version, {
'easyblock': 'PythonPackage',
'source_urls': ['https://pypi.python.org/packages/source/d/deepmd-kit/'],
'sources': ['deepmd_kit-%(version)s.tar.gz'],
'preinstallopts': "export DP_VARIANT=cuda && export DP_ENABLE_TENSORFLOW=0 && export DP_ENABLE_PYTORCH=1 && ",
'start_dir': 'deepmd_kit-%(version)s',
'checksums': ['c17105c4fc2400039458df93ae5701c6420c794d7fa267b6fe3d5ce56974502d'],
}),
('deepmd_cpp', version, {
'easyblock': 'CMakeMake',
'source_urls': ['https://pypi.python.org/packages/source/d/deepmd-kit/'],
'sources': ['deepmd_kit-%(version)s.tar.gz'],
'start_dir': 'deepmd_kit-%(version)s/source',
'configopts': local_deepdm_configopts,
'checksums': ['c17105c4fc2400039458df93ae5701c6420c794d7fa267b6fe3d5ce56974502d'],
}),
]

exts_list = [
('typeguard', '4.4.2', {
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['77a78f11f09777aeae7fa08585f33b5f4ef0e7335af40005b0c422ed398ff48c'],
}),
('dargs', '0.4.10', {
'checksums': ['2b39e0a93dcd323d0affb3f54ee2c11a439084d718934df08f38692dfbadddf8'],
}),
('bracex', '2.6', {
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['0b0049264e7340b3ec782b5cb99beb325f36c3782a32e36e876452fd49a09952'],
}),
('wcmatch', '10.1', {
'checksums': ['f11f94208c8c8484a16f4f48638a85d771d9513f4ab3f37595978801cb9465af'],
}),
('pyfiglet', '0.8.post1', {
'checksums': ['c6c2321755d09267b438ec7b936825a4910fec696292139e664ca8670e103639'],
}),
('mendeleev', '0.18.1', {
'checksums': ['a5b60bd313a5d2b404a6a250186e643663d5625c8138b3cfba829f1f4384f2a0'],
}),
('array_api_compat', '1.12.0', {
'source_tmpl': '%(name)s-%(version)s-py3-none-any.whl',
'checksums': ['a0b4795b6944a9507fde54679f9350e2ad2b1e2acf4a2408a098cdc27f890a8b'],
}),
('monty', '2025.3.3', {
'checksums': ['16c1eb54b2372e765c2f3f14cff01cc76ab55c3cc12b27d49962fb8072310ae0'],
}),
('dpdata', '1.0.0', {
'checksums': ['474da4d20130a85c19274a10efd45446bbf3c844d6fc06e9377298c3e52cbc78'],
}),
]

sanity_check_paths = {
'files': ['bin/dp', 'bin/dpdata', 'bin/dp_ipi', 'lib/libdeepmd_cc.so', 'lib/libdeepmd.so'],
'dirs': ['lib/python%(pyshortver)s/site-packages', 'include/deepmd'],
}

sanity_check_commands = ['dp -h']

modextravars = {
'DP_BACKEND': 'pytorch',
}

moduleclass = 'ai'
Loading
Loading