Lmod Training

1 篇文章 0 订阅



NERSC / Lmod-training · GitLab

Lmod Training

The Lmod training is a hands-on tutorial of Lmod and how to write Lua modules. This training is based off Training_Material/lmod at master · shahzebsiddiqui/Training_Material · GitHub with slight customizations to suite NERSC audience.

In this session we will cover the following topics

  • Overview of module and ml command such as module avail, module load, module swap, module purge
  • Working with module collections - module save, module describe, module restore
  • Lmod spider utility
  • Writing Lua Modules and covering some of the Lua functions

Getting Started

We have a Lmod Docker container - shahzebsiddiqui/lmod on Dockerhub which we will use for the training. If you want to get started, you can run this training on your laptop assuming you have a docker installation.

If you are using docker you need to run the following to get an interactive shell in the container:

docker run -it shahzebsiddiqui/lmod

If you don't have docker, you can Login to Cori and use shifter to startup an interactive shell by running:

shifter --image=shahzebsiddiqui/lmod -E bash -l

Once you are in your container, check your module command and confirm you have the following:

bash-4.2$ type module
module is a function
module ()
{
    eval $($LMOD_CMD bash "$@") && eval $(${LMOD_SETTARG_CMD:-:} -s sh)
}
bash-4.2$ module --version

Modules based on Lua: Version 8.3.1  2020-02-16 19:46 :z
    by Robert McLay mclay@tacc.utexas.edu

Next, you should clone this repo via git and source the setup script as follows:

git clone https://gitlab.com/NERSC/lmod-training.git
cd lmod-training
source setup.sh

Once you are set, you can start the exercise

References

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值