From ebba84b460d202eb2d5f776c859509d1b74d1254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Krup=C4=8D=C3=ADk?= Date: Tue, 18 Feb 2020 09:36:03 +0100 Subject: [PATCH] new file: g/git/git-2.25.1.eb new file: m/mumax/mumax-3.10beta-CUDA-10.2.89.eb new file: m/mumax/mumax-3.9.3-CUDA-10.2.89.eb new file: m/mumax/mumax-go.patch new file: m/mumax/mumax-new-cuda.patch modified: p/Py/Py-2.7.eb new file: p/Python/Python-system.eb new file: r/rpmrebuild/rpmrebuild-2.14.eb new file: w/wheel/wheel-0.33.4-Py-system.eb --- g/git/git-2.25.1.eb | 28 ++++++++++++++ m/mumax/mumax-3.10beta-CUDA-10.2.89.eb | 53 ++++++++++++++++++++++++++ m/mumax/mumax-3.9.3-CUDA-10.2.89.eb | 53 ++++++++++++++++++++++++++ m/mumax/mumax-go.patch | 11 ++++++ m/mumax/mumax-new-cuda.patch | 23 +++++++++++ p/Py/Py-2.7.eb | 2 +- p/Python/Python-system.eb | 34 +++++++++++++++++ r/rpmrebuild/rpmrebuild-2.14.eb | 25 ++++++++++++ w/wheel/wheel-0.33.4-Py-system.eb | 20 ++++++++++ 9 files changed, 248 insertions(+), 1 deletion(-) create mode 100644 g/git/git-2.25.1.eb create mode 100644 m/mumax/mumax-3.10beta-CUDA-10.2.89.eb create mode 100644 m/mumax/mumax-3.9.3-CUDA-10.2.89.eb create mode 100644 m/mumax/mumax-go.patch create mode 100644 m/mumax/mumax-new-cuda.patch create mode 100644 p/Python/Python-system.eb create mode 100644 r/rpmrebuild/rpmrebuild-2.14.eb create mode 100644 w/wheel/wheel-0.33.4-Py-system.eb diff --git a/g/git/git-2.25.1.eb b/g/git/git-2.25.1.eb new file mode 100644 index 00000000..b49880a3 --- /dev/null +++ b/g/git/git-2.25.1.eb @@ -0,0 +1,28 @@ +# IT4Innovations 2020 + +easyblock = 'ConfigureMake' + +name = 'git' +version = "2.25.1" + +homepage = 'http://git-scm.com/' +description = """Git is a free and open source distributed version control system designed +to handle everything from small to very large projects with speed and efficiency.""" + +toolchain = SYSTEM + +source_urls = ['https://www.kernel.org/pub/software/scm/git/'] +sources = ['%(name)s-%(version)s.tar.gz'] + +builddependencies = [ + ('Autoconf', '2.69', '', True) +] + +preconfigopts = 'make configure && ' + +sanity_check_paths = { + 'files': ['bin/git'], + 'dirs': [], +} + +moduleclass = 'tools' diff --git a/m/mumax/mumax-3.10beta-CUDA-10.2.89.eb b/m/mumax/mumax-3.10beta-CUDA-10.2.89.eb new file mode 100644 index 00000000..e3584710 --- /dev/null +++ b/m/mumax/mumax-3.10beta-CUDA-10.2.89.eb @@ -0,0 +1,53 @@ +# IT4Innovations 2020 + +easyblock = 'CmdCp' + +name = 'mumax' +version = '3.10beta' +versionsuffix = '-CUDA-10.2.89' + +homepage = 'https://github.com/mumax/3' +description = "GPU accelerated micromagnetic simulator." + +toolchain = SYSTEM + +#source_urls = ['https://github.com/mumax/3/archive'] +#sources = ['v3.9.3.tar.gz'] + +sources = [{ + 'source_urls': ['https://github.com/mumax/3/archive/'], + 'filename': '3.10beta.tar.gz', +# 'download_filename': 'archive.gz', + 'extract_cmd': "mkdir -p src/github.com/mumax/3 && tar xfvz %s -C src/github.com/mumax/3 --strip-components=1", +}] + +patches = [ + 'mumax-go.patch', +] + + +dependencies = [ + ('CUDA', '10.2.89'), +] + +builddependencies = [ + ('Go', '1.13.1'), +] + +local_commands = "export GOPATH=%(builddir)s && " +local_commands += "cd src/github.com/mumax/3/cmd/mumax3 && go install" + +cmds_map = [('.*', local_commands)] + +start_dir = "%(builddir)s" + +files_to_copy = [ + (['bin/mumax3'], 'bin'), +] + +sanity_check_paths = { + 'files': ['bin/mumax3'], + 'dirs': [''], +} + +moduleclass = 'phys' diff --git a/m/mumax/mumax-3.9.3-CUDA-10.2.89.eb b/m/mumax/mumax-3.9.3-CUDA-10.2.89.eb new file mode 100644 index 00000000..f947e3d0 --- /dev/null +++ b/m/mumax/mumax-3.9.3-CUDA-10.2.89.eb @@ -0,0 +1,53 @@ +# IT4Innovations 2020 + +easyblock = 'CmdCp' + +name = 'mumax' +version = '3.9.3' +versionsuffix = '-CUDA-10.2.89' + +homepage = 'https://github.com/mumax/3' +description = "GPU accelerated micromagnetic simulator." + +toolchain = SYSTEM + +#source_urls = ['https://github.com/mumax/3/archive'] +#sources = ['v3.9.3.tar.gz'] + +sources = [{ + 'source_urls': ['https://github.com/mumax/3/archive/'], + 'filename': 'v3.9.3.tar.gz', +# 'download_filename': 'archive.gz', + 'extract_cmd': "mkdir -p src/github.com/mumax/3 && tar xfvz %s -C src/github.com/mumax/3 --strip-components=1", +}] + +patches = [ + 'mumax-go.patch', + 'mumax-new-cuda.patch' +] + +dependencies = [ + ('CUDA', '10.2.89'), +] + +builddependencies = [ + ('Go', '1.13.1'), +] + +local_commands = "export GOPATH=%(builddir)s && " +local_commands += "cd src/github.com/mumax/3/cmd/mumax3 && go install" + +cmds_map = [('.*', local_commands)] + +start_dir = "%(builddir)s" + +files_to_copy = [ + (['bin/mumax3'], 'bin'), +] + +sanity_check_paths = { + 'files': ['bin/mumax3'], + 'dirs': [''], +} + +moduleclass = 'phys' diff --git a/m/mumax/mumax-go.patch b/m/mumax/mumax-go.patch new file mode 100644 index 00000000..e792a314 --- /dev/null +++ b/m/mumax/mumax-go.patch @@ -0,0 +1,11 @@ +--- src/github.com/mumax/3/cuda/curand/generator.go.orig 2020-02-17 08:51:14.588086649 +0100 ++++ src/github.com/mumax/3/cuda/curand/generator.go 2020-02-17 08:51:34.021103553 +0100 +@@ -43,7 +43,7 @@ + } + + func (g Generator) SetSeed(seed int64) { +- err := Status(C.curandSetPseudoRandomGeneratorSeed(C.curandGenerator_t(unsafe.Pointer(uintptr(g))), _Ctype_ulonglong(seed))) ++ err := Status(C.curandSetPseudoRandomGeneratorSeed(C.curandGenerator_t(unsafe.Pointer(uintptr(g))), C.ulonglong(seed))) + if err != SUCCESS { + panic(err) + } diff --git a/m/mumax/mumax-new-cuda.patch b/m/mumax/mumax-new-cuda.patch new file mode 100644 index 00000000..24dedc27 --- /dev/null +++ b/m/mumax/mumax-new-cuda.patch @@ -0,0 +1,23 @@ +--- src/github.com/mumax/3/cuda/cufft/mode.go.orig 2020-02-17 08:58:59.089489954 +0100 ++++ src/github.com/mumax/3/cuda/cufft/mode.go 2020-02-17 08:59:40.245525688 +0100 +@@ -11,10 +11,7 @@ + type CompatibilityMode int + + const ( +- COMPATIBILITY_NATIVE CompatibilityMode = C.CUFFT_COMPATIBILITY_NATIVE +- COMPATIBILITY_FFTW_PADDING CompatibilityMode = C.CUFFT_COMPATIBILITY_FFTW_PADDING +- COMPATIBILITY_FFTW_ASYMMETRIC CompatibilityMode = C.CUFFT_COMPATIBILITY_FFTW_ASYMMETRIC +- COMPATIBILITY_FFTW_ALL CompatibilityMode = C.CUFFT_COMPATIBILITY_FFTW_ALL ++ COMPATIBILITY_FFTW_PADDING CompatibilityMode = C.CUFFT_COMPATIBILITY_FFTW_PADDING + ) + + func (t CompatibilityMode) String() string { +@@ -25,7 +22,4 @@ + } + + var compatibilityModeString map[CompatibilityMode]string = map[CompatibilityMode]string{ +- COMPATIBILITY_NATIVE: "CUFFT_COMPATIBILITY_NATIVE", +- COMPATIBILITY_FFTW_PADDING: "CUFFT_COMPATIBILITY_FFTW_PADDING", +- COMPATIBILITY_FFTW_ASYMMETRIC: "CUFFT_COMPATIBILITY_FFTW_ASYMMETRIC", +- COMPATIBILITY_FFTW_ALL: "CUFFT_COMPATIBILITY_FFTW_ALL"} ++ COMPATIBILITY_FFTW_PADDING: "CUFFT_COMPATIBILITY_FFTW_PADDING"} diff --git a/p/Py/Py-2.7.eb b/p/Py/Py-2.7.eb index 1da5ab5d..b418281e 100644 --- a/p/Py/Py-2.7.eb +++ b/p/Py/Py-2.7.eb @@ -11,7 +11,7 @@ description = """Python 2.7 toolchain""" toolchain = SYSTEM dependencies = [ - ('Python', '2.7.17', '-base', ('GCC', '8.3.0-2.32')), + ('Python', '2.7.17', '-base', ('GCC', '8.3.0-2.32')), ('GCC', '8.3.0-2.32'), ] diff --git a/p/Python/Python-system.eb b/p/Python/Python-system.eb new file mode 100644 index 00000000..632b515f --- /dev/null +++ b/p/Python/Python-system.eb @@ -0,0 +1,34 @@ +# IT4Innovations 2019 + +easyblock = "Rpm" + +name = 'Python' +version = 'system' + +homepage = 'http://python.org/' +description = "Python is a programming language that lets you work more quickly and integrate your systems more effectively." + +toolchain = SYSTEM +toolchainopts = {'pic': True, 'opt': True, 'optarch': True} + +source_urls = ['http://mirror.it4i.cz/centos/7/os/x86_64/Packages/'] +sources = ['python-2.7.5-86.el7.x86_64.rpm'] + +dependencies = [ + ('rpmrebuild', '2.14'), +] + +exts_list = [ + ('setuptools', '41.6.0', { + 'source_urls': ['https://pypi.python.org/packages/source/s/setuptools/'], + 'source_tmpl': '%(name)s-%(version)s.zip', + }), + ('pip', '19.3.1', { + 'source_urls': ['http://pypi.python.org/packages/source/p/pip/'], + }), + ('nose', '1.3.7', { + 'source_urls': ['http://pypi.python.org/packages/source/n/nose/'], + }), +] + +moduleclass = 'lang' diff --git a/r/rpmrebuild/rpmrebuild-2.14.eb b/r/rpmrebuild/rpmrebuild-2.14.eb new file mode 100644 index 00000000..4180ba0e --- /dev/null +++ b/r/rpmrebuild/rpmrebuild-2.14.eb @@ -0,0 +1,25 @@ +# IT4Innovations 2020 + +easyblock = "Tarball" + +name = "rpmrebuild" +version = "2.14" + +homepage = 'http://rpmrebuild.sourceforge.net/' +description = """rpmrebuild is a tool to build an RPM file from a package that has already been + installed in a basic use""" + +toolchain = SYSTEM + +source_urls = [SOURCEFORGE_SOURCE] +sources = [SOURCELOWER_TAR_GZ] + +modextrapaths = {'PATH': ['']} +modextravars = {'RPMREBUILD_ROOT_DIR': '%(installdir)s'} + +sanity_check_paths = { + 'files': ["rpmrebuild"], + 'dirs': [] +} + +moduleclass = 'tools' diff --git a/w/wheel/wheel-0.33.4-Py-system.eb b/w/wheel/wheel-0.33.4-Py-system.eb new file mode 100644 index 00000000..460484e1 --- /dev/null +++ b/w/wheel/wheel-0.33.4-Py-system.eb @@ -0,0 +1,20 @@ +# IT4Innovations 2020 + +easyblock = "PythonPackage" +name = 'wheel' +version = '0.33.4' + +homepage = 'https://pypi.python.org/pypi/wheel' +description = 'A built-package format for Python.' + +toolchain = {'name': 'Py', 'version': 'system'} + +source_urls = [PYPI_SOURCE] +sources = [SOURCE_TAR_GZ] + +sanity_check_paths = { + 'files': [], + 'dirs': ['lib/python2.7/site-packages/%(name)s-%(version)s-py2.7.egg'], +} + +moduleclass = 'python'