Skip to content

Commit

Permalink
CUDNn to ld
Browse files Browse the repository at this point in the history
  • Loading branch information
robballantyne committed Mar 11, 2024
1 parent 72601cc commit 7797d4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/COPY_ROOT/opt/ai-dock/bin/build/layer0/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ build_common_create_env() {
exported_env=/tmp/${MAMBA_DEFAULT_ENV}.yaml
micromamba env export -n ${MAMBA_DEFAULT_ENV} > "${exported_env}"
$MAMBA_CREATE -n onetrainer --file "${exported_env}"
python_version="$(micromamba -n onetrainer run python -V | tail -n1 | awk '{print $2}' | cut -d '.' -f1,2)"
printf "/opt/micromamba/envs/onetrainer/lib\n" >> /etc/ld.so.conf.d/x86_64-linux-gnu.micromamba.10-onetrainer.conf
printf "/opt/micromamba/envs/onetrainer/lib/python%s/site-packages/torch/lib/\n" "$python_version" >> /etc/ld.so.conf.d/x86_64-linux-gnu.micromamba.10-onetrainer.conf
}


Expand Down

0 comments on commit 7797d4a

Please sign in to comment.