whereami
A.k.a. overengineered module load. Install into $HOME/.local/bin with
curl -fsSL https://raw.githubusercontent.com/max-models/whereami/main/install.sh | bashwhereami identifies the current HPC system, CPU and GPU and exports environment variables describing it; load_modules reads a modules.json file and loads the right environment modules for the detected machine.
source whereami # detect and export variables into the current shellwhereami -o machine.json # also save the detected parameters as JSON{ "MACHINE_NAME": "Raven", "MACHINE_HOST": "MPCDF", "CPU_VENDOR": "Intel", "CHIP": "IceLake", "GPU_VENDOR": "NVIDIA", "GPU_NAME": "A100"}