From b31fbf1e94c12427ef7c554c6ffbcd13f8fab69d Mon Sep 17 00:00:00 2001 From: Alexandre Strube <a.strube@fz-juelich.de> Date: Mon, 21 Dec 2020 10:42:16 +0000 Subject: [PATCH] Torchvision --- .pre-commit-config.yaml | 5 +++ ...-7.0.0.post3-GCCcore-9.3.0-Python-3.8.5.eb | 41 +++++++++++++++++ ...remkl-9.3.0-2020.2.254-GPU-Python-3.8.5.eb | 45 +++++++++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 Golden_Repo/p/Pillow-SIMD/Pillow-SIMD-7.0.0.post3-GCCcore-9.3.0-Python-3.8.5.eb create mode 100644 Golden_Repo/t/torchvision/torchvision-0.8.1-gcccoremkl-9.3.0-2020.2.254-GPU-Python-3.8.5.eb diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..9e2cc1e3e --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: +- repo: https://github.com/pre-commit/mirrors-autopep8 + rev: '' # Use the sha / tag you want to point at + hooks: + - id: autopep8 \ No newline at end of file diff --git a/Golden_Repo/p/Pillow-SIMD/Pillow-SIMD-7.0.0.post3-GCCcore-9.3.0-Python-3.8.5.eb b/Golden_Repo/p/Pillow-SIMD/Pillow-SIMD-7.0.0.post3-GCCcore-9.3.0-Python-3.8.5.eb new file mode 100644 index 000000000..c2110159f --- /dev/null +++ b/Golden_Repo/p/Pillow-SIMD/Pillow-SIMD-7.0.0.post3-GCCcore-9.3.0-Python-3.8.5.eb @@ -0,0 +1,41 @@ +easyblock = 'PythonPackage' + +name = 'Pillow-SIMD' +version = '7.0.0.post3' +versionsuffix = '-Python-%(pyver)s' + + +homepage = 'https://github.com/uploadcare/pillow-simd' +description = """Pillow-SIMD is a drop-in replacement for Pillow with AVX support +Pillow is the 'friendly PIL fork' by Alex Clark and Contributors. + PIL is the Python Imaging Library by Fredrik Lundh and Contributors.""" + +toolchain = {'name': 'GCCcore', 'version': '9.3.0'} + +site_contacts = 'a.strube@fz-juelich.de' + +source_urls = ['https://github.com/uploadcare/pillow-simd/archive/'] +sources = ['v%(version)s.tar.gz'] + +builddependencies = [('binutils', '2.34')] + +dependencies = [ + ('Python', '3.8.5'), + ('libjpeg-turbo', '2.0.5'), + ('libpng', '1.6.37'), + ('zlib', '1.2.11'), + ('LibTIFF', '4.1.0'), + ('freetype', '2.10.1') +] + +use_pip = True +download_dep_fail = True + +options = {'modulename': 'PIL'} + +sanity_check_paths = { + 'files': [], + 'dirs': ['lib/python%(pyshortver)s/site-packages/PIL'], +} + +moduleclass = 'vis' diff --git a/Golden_Repo/t/torchvision/torchvision-0.8.1-gcccoremkl-9.3.0-2020.2.254-GPU-Python-3.8.5.eb b/Golden_Repo/t/torchvision/torchvision-0.8.1-gcccoremkl-9.3.0-2020.2.254-GPU-Python-3.8.5.eb new file mode 100644 index 000000000..40d344a87 --- /dev/null +++ b/Golden_Repo/t/torchvision/torchvision-0.8.1-gcccoremkl-9.3.0-2020.2.254-GPU-Python-3.8.5.eb @@ -0,0 +1,45 @@ +easyblock = 'PythonPackage' + +name = 'torchvision' +version = '0.8.1' +pysuffix = '-Python-%(pyver)s' +versionsuffix = '-Python-%(pyver)s' + + +homepage = 'http://pytorch.org/' +description = """The torchvision package consists of popular datasets, model architectures, and common image +transformations for computer vision.""" + +site_contacts = 'a.strube@fz-juelich.de' + +toolchain = {'name': 'gcccoremkl', 'version': '9.3.0-2020.2.254'} + +download_dep_fail = True + +source_urls = [ + 'https://github.com/pytorch/vision/archive', +] +sources = [ + 'v%(version)s.tar.gz' +] + +dependencies = [ + ('Python', '3.8.5'), + ('SciPy-Stack', '2020', pysuffix), + ('PyTorch', '1.7.0', versionsuffix), + ('Pillow-SIMD', '7.0.0.post3', versionsuffix), +] + +options = {'modulename': 'torchvision'} + +sanity_check_paths = { + 'files': [], + 'dirs': ['lib/python%(pyshortver)s/site-packages'], +} + +# Add a property +modluafooter = """ +add_property("arch","gpu") +""" + +moduleclass = 'devel' -- GitLab