diff --git a/easybuild/easyconfigs/j/julius/julius-0.2.7-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb b/easybuild/easyconfigs/j/julius/julius-0.2.7-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb new file mode 100644 index 000000000000..fdf91a68ef41 --- /dev/null +++ b/easybuild/easyconfigs/j/julius/julius-0.2.7-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb @@ -0,0 +1,29 @@ +easyblock = 'PythonPackage' + +name = 'julius' +version = '0.2.7' +local_pytorch_version = '2.1.2' +versionsuffix = '-PyTorch-' + local_pytorch_version + '-CUDA-%(cudaver)s' + +homepage = 'https://github.com/adefossez/julius' +description = """Julius contains different Digital Signal Processing algorithms + implemented with PyTorch, so that they are differentiable and available on CUDA. + Note that all the modules implemented here can be used with TorchScript""" + +toolchain = {'name': 'foss', 'version': '2023a'} + +sources = [SOURCELOWER_TAR_GZ] +checksums = ['3c0f5f5306d7d6016fcc95196b274cae6f07e2c9596eed314e4e7641554fbb08'] + +dependencies = [ + ('CUDA', '12.1.1', '', SYSTEM), + ('Python', '3.11.3'), + ('PyTorch', local_pytorch_version, '-CUDA-%(cudaver)s'), +] + + +download_dep_fail = True +use_pip = True +sanity_pip_check = True + +moduleclass = 'tools' diff --git a/easybuild/easyconfigs/l/libmad/libmad-0.15.1b-GCCcore-12.3.0.eb b/easybuild/easyconfigs/l/libmad/libmad-0.15.1b-GCCcore-12.3.0.eb new file mode 100644 index 000000000000..f0d6ed430582 --- /dev/null +++ b/easybuild/easyconfigs/l/libmad/libmad-0.15.1b-GCCcore-12.3.0.eb @@ -0,0 +1,27 @@ +easyblock = 'ConfigureMake' + +name = 'libmad' +version = '0.15.1b' + +homepage = 'https://www.underbit.com/products/mad/' +description = """MAD is a high-quality MPEG audio decoder.""" + +toolchain = {'name': 'GCCcore', 'version': '12.3.0'} + +source_urls = ['https://sourceforge.net/projects/mad/files/%(name)s/%(version)s/'] +sources = [SOURCELOWER_TAR_GZ] +patches = ['libmad-0.15.1b-remove-depreciated-gcc-option.patch'] +checksums = [ + 'bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690', # libmad-0.15.1b.tar.gz + # libmad-0.15.1b-remove-depreciated-gcc-option.patch + '8f96a23a22ba66e62f32e20064d01f4c7f6a18ba0aab85d3be9ce63794b2c678', +] + +builddependencies = [('binutils', '2.40')] + +sanity_check_paths = { + 'files': ['include/mad.h', 'lib/libmad.a', 'lib/libmad.la', 'lib/libmad.%s' % SHLIB_EXT], + 'dirs': ['include', 'lib', 'lib64'] +} + +moduleclass = 'lib' diff --git a/easybuild/easyconfigs/l/librosa/librosa-0.10.1-foss-2023a-CUDA-12.1.1.eb b/easybuild/easyconfigs/l/librosa/librosa-0.10.1-foss-2023a-CUDA-12.1.1.eb new file mode 100644 index 000000000000..2c6058721aa6 --- /dev/null +++ b/easybuild/easyconfigs/l/librosa/librosa-0.10.1-foss-2023a-CUDA-12.1.1.eb @@ -0,0 +1,56 @@ +easyblock = 'PythonBundle' + +name = 'librosa' +version = '0.10.1' +versionsuffix = '-CUDA-%(cudaver)s' + +homepage = 'https://librosa.github.io' +description = "Python module for audio and music processing" + +toolchain = {'name': 'foss', 'version': '2023a'} + +builddependencies = [ + ('poetry', '1.7.1'), + ('SoX', '14.4.2'), +] + +dependencies = [ + ('CUDA', '12.1.1', '', SYSTEM), + ('Python', '3.11.3'), + ('SciPy-bundle', '2023.07'), + ('FFmpeg', '6.0'), + ('matplotlib', '3.7.2'), + ('scikit-learn', '1.3.1'), + ('numba', '0.58.1', versionsuffix), + ('libsndfile', '1.2.2'), + ('python-soundfile', '0.12.1'), + ('typing-extensions', '4.9.0'), +] + +exts_list = [ + ('audioread', '3.0.1', { + 'checksums': ['ac5460a5498c48bdf2e8e767402583a4dcd13f4414d286f42ce4379e8b35066d'], + }), + ('resampy', '0.4.2', { + 'checksums': ['0a469e6ddb89956f4fd6c88728300e4bbd186fae569dd4fd17dae51a91cbaa15'], + }), + ('lazy_loader', '0.3', { + 'checksums': ['3b68898e34f5b2a29daaaac172c6555512d0f32074f147e2254e4a6d9d838f37'], + }), + ('pooch', '1.8.1', { + 'checksums': ['27ef63097dd9a6e4f9d2694f5cfbf2f0a5defa44fccafec08d601e731d746270'], + }), + ('soxr', '0.3.7', { + 'checksums': ['436ddff00c6eb2c75b79c19cfdca7527b1e31b5fad738652f044045ba6258593'], + 'buildcmd': "python -m build", + 'unpack_sources': True, + }), + (name, version, { + 'checksums': ['832f7d150d6dd08ed2aa08c0567a4be58330635c32ddd2208de9bc91300802c7'], + }), +] + +use_pip = True +sanity_pip_check = True + +moduleclass = 'lib' diff --git a/easybuild/easyconfigs/n/numba/numba-0.58.1-foss-2023a-CUDA-12.1.1.eb b/easybuild/easyconfigs/n/numba/numba-0.58.1-foss-2023a-CUDA-12.1.1.eb new file mode 100644 index 000000000000..7756c8d3032d --- /dev/null +++ b/easybuild/easyconfigs/n/numba/numba-0.58.1-foss-2023a-CUDA-12.1.1.eb @@ -0,0 +1,55 @@ +easyblock = 'PythonBundle' + +name = 'numba' +version = '0.58.1' +versionsuffix = '-CUDA-%(cudaver)s' + +homepage = 'https://numba.pydata.org/' +description = """Numba is an Open Source NumPy-aware optimizing compiler for +Python sponsored by Continuum Analytics, Inc. It uses the remarkable LLVM +compiler infrastructure to compile Python syntax to machine code.""" + +toolchain = {'name': 'foss', 'version': '2023a'} +toolchainopts = {'pic': True} + +builddependencies = [ + ('LLVM', '14.0.6', '-llvmlite'), +] + +dependencies = [ + ('CUDA', '12.1.1', '', SYSTEM), + ('Python', '3.11.3'), + ('SciPy-bundle', '2023.07'), +] + +use_pip = True +sanity_pip_check = True + +exts_list = [ + ('llvmlite', '0.41.1', { + 'patches': ['llvmlite-0.41.1_static-linking-of-LLVM.patch'], + 'preinstallopts': "export LLVM_CONFIG=${EBROOTLLVM}/bin/llvm-config && ", + 'checksums': [ + {'llvmlite-0.41.1.tar.gz': 'f19f767a018e6ec89608e1f6b13348fa2fcde657151137cb64e56d48598a92db'}, + {'llvmlite-0.41.1_static-linking-of-LLVM.patch': + '0cb1fbe13db4ce8b697305229b6b6d79671a3ec5b93e95b4e059033ca626b43e'}, + ], + }), + (name, version, { + 'checksums': ['487ded0633efccd9ca3a46364b40006dbdaca0f95e99b8b83e778d1195ebcbaa'], + }), +] + +fix_python_shebang_for = ['bin/*'] + +sanity_check_paths = { + 'files': ['bin/numba'], + 'dirs': ['lib/python%(pyshortver)s/site-packages'], +} + +sanity_check_commands = [ + "python -m llvmlite.tests", + "numba --help", +] + +moduleclass = 'lang' diff --git a/easybuild/easyconfigs/p/primePy/primePy-1.3-foss-2023a.eb b/easybuild/easyconfigs/p/primePy/primePy-1.3-foss-2023a.eb new file mode 100644 index 000000000000..52a34b13c636 --- /dev/null +++ b/easybuild/easyconfigs/p/primePy/primePy-1.3-foss-2023a.eb @@ -0,0 +1,27 @@ +easyblock = 'PythonPackage' + +name = 'primePy' +version = '1.3' + +homepage = 'https://github.com/janaindrajit/primePy' +description = """iThis module contains several useful functions to work with prime + numbers. For example, extracting all the prime factors (with multiplicity) of a + positive integer reasonably fast. Following the list of all functions and their + running time.""" + +toolchain = {'name': 'foss', 'version': '2023a'} + +sources = [SOURCE_TAR_GZ] +checksums = ['25fd7e25344b0789a5984c75d89f054fcf1f180bef20c998e4befbac92de4669'] + +options = {'modulename': 'primePy'} + +dependencies = [ + ('Python', '3.11.3'), +] + +download_dep_fail = True +use_pip = True +sanity_pip_check = True + +moduleclass = 'math' diff --git a/easybuild/easyconfigs/p/python-soundfile/python-soundfile-0.12.1-foss-2023a.eb b/easybuild/easyconfigs/p/python-soundfile/python-soundfile-0.12.1-foss-2023a.eb new file mode 100644 index 000000000000..6cc3aedf090a --- /dev/null +++ b/easybuild/easyconfigs/p/python-soundfile/python-soundfile-0.12.1-foss-2023a.eb @@ -0,0 +1,27 @@ +easyblock = 'PythonPackage' + +name = 'python-soundfile' +version = '0.12.1' + +homepage = 'https://github.com/bastibe/python-soundfile' +description = """ The soundfile module can read and write sound files based on +libsndfile, CFFI, and NumPy """ + +toolchain = {'name': 'foss', 'version': '2023a'} + +sources = ['soundfile-%(version)s.tar.gz'] +checksums = ['e8e1017b2cf1dda767aef19d2fd9ee5ebe07e050d430f77a0a7c66ba08b8cdae'] + +dependencies = [ + ('Python', '3.11.3'), + ('SciPy-bundle', '2023.07'), + ('libsndfile', '1.2.2'), +] + +download_dep_fail = True +use_pip = True +sanity_pip_check = True + +options = {'modulename': 'soundfile'} + +moduleclass = 'lib' diff --git a/easybuild/easyconfigs/s/SoX/SoX-14.4.2-GCCcore-12.3.0.eb b/easybuild/easyconfigs/s/SoX/SoX-14.4.2-GCCcore-12.3.0.eb new file mode 100644 index 000000000000..5238f615df80 --- /dev/null +++ b/easybuild/easyconfigs/s/SoX/SoX-14.4.2-GCCcore-12.3.0.eb @@ -0,0 +1,34 @@ +easyblock = 'ConfigureMake' + +name = 'SoX' +version = '14.4.2' + +homepage = 'http://sox.sourceforge.net/' +docurls = 'http://sox.sourceforge.net/Docs/Documentation' +description = """Sound eXchange, the Swiss Army knife of audio manipulation""" + +toolchain = {'name': 'GCCcore', 'version': '12.3.0'} + +source_urls = [SOURCEFORGE_SOURCE] +sources = [SOURCELOWER_TAR_GZ] +checksums = ['b45f598643ffbd8e363ff24d61166ccec4836fea6d3888881b8df53e3bb55f6c'] + +builddependencies = [('binutils', '2.40')] + +dependencies = [ + ('FLAC', '1.4.2'), + ('LAME', '3.100'), + ('libmad', '0.15.1b'), + ('libvorbis', '1.3.7'), + ('FFmpeg', '6.0'), +] + +sanity_check_paths = { + 'files': ['bin/play', 'bin/rec', 'bin/sox', 'bin/soxi', 'include/sox.h', + 'lib/libsox.la', 'lib/libsox.a', 'lib/pkgconfig/sox.pc', 'lib/libsox.%s' % SHLIB_EXT], + 'dirs': ['bin', 'include', 'lib', 'lib/pkgconfig', 'share/man'], +} + +sanity_check_commands = ['sox --help'] + +moduleclass = 'data' diff --git a/easybuild/easyconfigs/t/torch-audiomentations/torch-audiomentations-0.11.1-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb b/easybuild/easyconfigs/t/torch-audiomentations/torch-audiomentations-0.11.1-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb new file mode 100644 index 000000000000..af5f2b6d0406 --- /dev/null +++ b/easybuild/easyconfigs/t/torch-audiomentations/torch-audiomentations-0.11.1-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb @@ -0,0 +1,30 @@ +easyblock = 'PythonPackage' + +name = 'torch-audiomentations' +version = '0.11.1' +local_pytorch_version = '2.1.2' +versionsuffix = '-PyTorch-' + local_pytorch_version + '-CUDA-%(cudaver)s' + +homepage = 'https://github.com/asteroid-team/torch-audiomentations' +description = """Audio data augmentation in PyTorch. Inspired by audiomentations.""" + +toolchain = {'name': 'foss', 'version': '2023a'} + +sources = [SOURCELOWER_TAR_GZ] +checksums = ['ee4d0c0f937552b4d63dbccdd3c509f5f7747f76c2e13e528ea8ef30e13e1000'] + +dependencies = [ + ('CUDA', '12.1.1', '', SYSTEM), + ('Python', '3.11.3'), + ('torchaudio', '2.2.0', versionsuffix), + ('julius', '0.2.7', versionsuffix), + ('librosa', '0.10.1', '-CUDA-%(cudaver)s'), + ('torch-pitch-shift', '1.2.4', versionsuffix), +] + + +download_dep_fail = True +use_pip = True +sanity_pip_check = True + +moduleclass = 'tools' diff --git a/easybuild/easyconfigs/t/torch-pitch-shift/torch-pitch-shift-1.2.4-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb b/easybuild/easyconfigs/t/torch-pitch-shift/torch-pitch-shift-1.2.4-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb new file mode 100644 index 000000000000..ad5479b1e1fe --- /dev/null +++ b/easybuild/easyconfigs/t/torch-pitch-shift/torch-pitch-shift-1.2.4-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb @@ -0,0 +1,29 @@ +easyblock = 'PythonPackage' + +name = 'torch-pitch-shift' +version = '1.2.4' +local_pytorch_version = '2.1.2' +versionsuffix = '-PyTorch-' + local_pytorch_version + '-CUDA-%(cudaver)s' + +homepage = 'https://github.com/KentoNishi/torch-pitch-shift' +description = """Pitch-shift audio clips quickly with PyTorch (CUDA supported)! + Additional utilities for searching efficient transformations are included.""" + +toolchain = {'name': 'foss', 'version': '2023a'} + +sources = ['torch_pitch_shift-%(version)s.tar.gz'] +checksums = ['c173fc808184a684c1ecd99d5744573e55a667f238e2268adaf15c9467d99db9'] + +dependencies = [ + ('CUDA', '12.1.1', '', SYSTEM), + ('Python', '3.11.3'), + ('torchaudio', '2.2.0', versionsuffix), + ('primePy', '1.3'), +] + + +download_dep_fail = True +use_pip = True +sanity_pip_check = True + +moduleclass = 'tools' diff --git a/easybuild/easyconfigs/t/torchaudio/torchaudio-2.2.0-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb b/easybuild/easyconfigs/t/torchaudio/torchaudio-2.2.0-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb new file mode 100644 index 000000000000..80b0478cbe41 --- /dev/null +++ b/easybuild/easyconfigs/t/torchaudio/torchaudio-2.2.0-foss-2023a-PyTorch-2.1.2-CUDA-12.1.1.eb @@ -0,0 +1,49 @@ +easyblock = 'PythonPackage' + +name = 'torchaudio' +version = '2.2.0' +local_pytorch_version = '2.1.2' +versionsuffix = '-PyTorch-' + local_pytorch_version + '-CUDA-%(cudaver)s' + +homepage = 'https://github.com/pytorch/audio' +description = """ Data manipulation and transformation for audio signal +processing, powered by PyTorch """ + +toolchain = {'name': 'foss', 'version': '2023a'} + +sources = [{ + 'filename': '%(name)s-%(version)s.tar.gz', + 'git_config': { + 'url': 'https://github.com/pytorch', + 'repo_name': 'audio', + 'tag': 'v%(version)s', + 'recursive': True, + 'keep_git_dir': True, + } +}] + +checksums = [None] + +builddependencies = [ + ('binutils', '2.40'), + ('CMake', '3.26.3'), + ('Ninja', '1.11.1'), +] + +dependencies = [ + ('CUDA', '12.1.1', '', SYSTEM), + ('Python', '3.11.3'), + ('SciPy-bundle', '2023.07'), + ('PyTorch', local_pytorch_version, '-CUDA-%(cudaver)s'), + ('SoX', '14.4.2'), + ('FFmpeg', '6.0'), +] + +preinstallopts = 'USE_FFMPEG=1' +installopts = '--no-use-pep517' + +download_dep_fail = True +use_pip = True +sanity_pip_check = True + +moduleclass = 'tools'