Create Module-files for third-party products

PREREQUISITES

Download and install third-party packages before initiating this procedure.

OBJECTIVE

These instructions describe how to create a module-file for third-party products and use crypkg-gen to create a module-file for a specific version of a supported third-party product. This usage allows a site to set a specific version as default.

PROCEDURE

The following steps are necessary and can be embedded in a script where a third-party product is being installed.

  1. Load craypkg-gen module:

    admin# source /opt/cray/pe/modules/default/init/bash

    admin# module use /opt/cray/pe/modulefiles

    admin# module load craypkg-gen

  2. Generate module and set default scripts for products:

AMD Optimizing C/C++ Compiler: (requires craypkg-gen >= 1.3.16)

admin# craypkg-gen -m /opt/AMD/aocc-compiler-<MODULE_VERSION>/

NVIDIA HPC SDK (requires craypkg-gen >= 1.3.16)

admin# craypkg-gen -m /opt/nvidia/hpc_sdk/Linux_x86_64/<MODULE_VERSION>/

Intel oneAPI

admin# craypkg-gen -m /opt/intel/oneapi/compilers/<MODULE_VERSION>/

Note: The Intel compiler must be installed in a directory or a symbolic link that follows the <PREFIX>/oneapi/compiler/<VERSION> format before craypkg-gen can create an Intel module-file. The craypkg-gen utility creates the intel, intel-classic, and intel-oneapi module-files after the process completes successfully.

AMD ROCm

admin# craypkg-gen -m /opt/rocm-<MODULE_VERSION>

  1. Runaset defaultscript.

    admin# /opt/admin-pe/set_default_craypkg/set_default_<MODULE_NAME>_<MODULE_VERSION>