From 7fe6c639913fdf9aba1a7108119813c247947cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Krup=C4=8D=C3=ADk?= <lukas.krupcik@vsb.cz> Date: Thu, 28 Mar 2019 12:07:20 +0100 Subject: [PATCH] new file: m/mumax/mumax.eb --- m/mumax/mumax.eb | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 m/mumax/mumax.eb diff --git a/m/mumax/mumax.eb b/m/mumax/mumax.eb new file mode 100644 index 00000000..1c6a7e2e --- /dev/null +++ b/m/mumax/mumax.eb @@ -0,0 +1,48 @@ +# IT4Innovations 2019 + +easyblock = 'CmdCp' + +name = 'mumax' +version = '3.9.3' + +homepage = 'https://github.com/mumax/3' +description = "GPU accelerated micromagnetic simulator." + +toolchain = {'name': 'dummy', 'version': ''} + +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", +}] + +dependencies = [ + ('CUDA', '7.5.18'), +] + +builddependencies = [ + ('Go', '1.11.1'), +] + +commands = "export GOPATH=%(builddir)s && " +commands += "cd src/github.com/mumax/3/cmd/mumax3 && go install" + +cmds_map = [('.*', commands)] + +start_dir = "%(builddir)s" + +files_to_copy = [ + (['bin/mumax3'], 'bin'), +] + +sanity_check_paths = { + 'files': ['bin/mumax3'], + 'dirs': [''], +} + +moduleclass = 'phys'