Skip to content

Commit

Permalink
install pyxis in ami
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Aug 15, 2024
1 parent 74a7dc6 commit d28dc5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion cookbooks/aws-parallelcluster-platform/recipes/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@
enroot "Configure enroot" do
action :configure
end
pyxis 'Setup Pyxis'
3 changes: 2 additions & 1 deletion cookbooks/aws-parallelcluster-platform/recipes/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@
include_recipe "aws-parallelcluster-platform::intel_mpi"
arm_pl 'Install ARM Performance Library'
intel_hpc 'Setup Intel HPC'
enroot 'Setup Enroot'
enroot 'Setup Enroot'
pyxis 'Setup Pyxis'
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
ln -fs /usr/local/share/pyxis/pyxis.conf /opt/slurm/etc/plugstack.conf.d/pyxis.conf
# SHARED_DIR=#{node['cluster']['shared_dir']}
# NONROOT_USER=#{node['cluster']['cluster_user']}
# mkdir -p ${SHARED_DIR}/pyxis/
# chown ${NONROOT_USER} ${SHARED_DIR}/pyxis/
# sed -i '${s/$/ runtime_path=${SHARED_DIR}\/pyxis/}' /opt/slurm/etc/plugstack.conf.d/pyxis.conf
# SHARED_DIR=${SHARED_DIR} envsubst < /opt/slurm/etc/plugstack.conf.d/pyxis.conf > /opt/slurm/etc/plugstack.conf.d/pyxis.tmp.conf
# mv /opt/slurm/etc/plugstack.conf.d/pyxis.tmp.conf /opt/slurm/etc/plugstack.conf.d/pyxis.conf
SHARED_DIR=#{node['cluster']['shared_dir']}
NONROOT_USER=#{node['cluster']['cluster_user']}
mkdir -p ${SHARED_DIR}/pyxis/
chown ${NONROOT_USER} ${SHARED_DIR}/pyxis/
sed -i '${s/$/ runtime_path=${SHARED_DIR}\\/pyxis/}' /opt/slurm/etc/plugstack.conf.d/pyxis.conf
SHARED_DIR=${SHARED_DIR} envsubst < /opt/slurm/etc/plugstack.conf.d/pyxis.conf > /opt/slurm/etc/plugstack.conf.d/pyxis.tmp.conf
mv /opt/slurm/etc/plugstack.conf.d/pyxis.tmp.conf /opt/slurm/etc/plugstack.conf.d/pyxis.conf
PYXIS_INSTALL
retries 3
retry_delay 5
Expand Down

0 comments on commit d28dc5f

Please sign in to comment.