From db90904255cea04fb10e83fec615f91b6de1b1ef Mon Sep 17 00:00:00 2001 From: duan_j Date: Thu, 27 Aug 2026 14:57:03 +0200 Subject: [PATCH] install the rugnux apart from jfjoch_viewer --- rugnux/README.md | 19 +++++++++++++++++++ rugnux/build | 21 +++++++++++++++++++++ rugnux/files/config.yaml | 11 +++++++++++ rugnux/modulefile | 10 ++++++++++ 4 files changed, 61 insertions(+) create mode 100644 rugnux/README.md create mode 100644 rugnux/build create mode 100644 rugnux/files/config.yaml create mode 100644 rugnux/modulefile diff --git a/rugnux/README.md b/rugnux/README.md new file mode 100644 index 0000000..4e29c73 --- /dev/null +++ b/rugnux/README.md @@ -0,0 +1,19 @@ +# rugnux + +Step 1: make sure you are in the `unx-mx_adm` group -- no -adm account needed, members can update the modules in `/opt/psi/MX` directly (if you have problems, please let the admins know) + +Step 2: load the build tool (modbuild) + +``` +module load modbuild/2.1.3 +``` + +Step 3: go into rugnux directory, update config.yaml to add the newest release version from https://gitea.psi.ch/mx/Jungfraujoch/releases and build the module with that release name -- the linux-cuda12 tarball is downloaded from the releases page automatically, no local tarball needed + +``` +cd rugnux +vi files/config.yaml +modbuild build 1.0.0-rc.164 +``` + +Step 4: confirm that the module loads as expected diff --git a/rugnux/build b/rugnux/build new file mode 100644 index 0000000..e434a53 --- /dev/null +++ b/rugnux/build @@ -0,0 +1,21 @@ +#!/usr/bin/env modbuild + + +pbuild::prep() { :; } + +pbuild::configure() { :; } + +pbuild::compile() { :; } + +pbuild::install() { + # Release tag on gitea.psi.ch/mx/Jungfraujoch matches the module version, + # so the tarball is fetched per-version instead of shipped in the buildblock. + # https://gitea.psi.ch/mx/Jungfraujoch/releases/download/1.0.0-rc.164/rugnux-1.0.0-rc.164-linux-x86_64-cuda12.tgz + local -r tarball="rugnux-${V}-linux-x86_64-cuda12.tgz" + mkdir -p "${PREFIX}/bin" + cd "${PREFIX}/bin" + curl -fLO "https://gitea.psi.ch/mx/Jungfraujoch/releases/download/${V}/${tarball}" + curl -fLO "https://gitea.psi.ch/mx/Jungfraujoch/releases/download/${V}/${tarball}" + tar -xzf "${tarball}" --strip-components=1 + rm "${tarball}" +} diff --git a/rugnux/files/config.yaml b/rugnux/files/config.yaml new file mode 100644 index 0000000..f439e14 --- /dev/null +++ b/rugnux/files/config.yaml @@ -0,0 +1,11 @@ +--- +format: 1 +rugnux: + defaults: + group: MX + overlay: base + relstage: stable + versions: + 1.0.0-rc.164: + config: + relstage: stable diff --git a/rugnux/modulefile b/rugnux/modulefile new file mode 100644 index 0000000..e05a182 --- /dev/null +++ b/rugnux/modulefile @@ -0,0 +1,10 @@ +#%Module + +module-whatis "jfjoch viewer trying install offline processing for mx beamlines" +module-url "https://gitea.psi.ch/mx/Jungfraujoch/releases" +module-license "for internal testing right now" +module-maintainer "MX Data " + +module-help "testing and learning how to install" + +setenv JFJOCH $PREFIX/bin