-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e11ccb2
commit 02ce487
Showing
8 changed files
with
46 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
#!/bin/false | ||
|
||
export CUDA_VERSION=${CUDA_VERSION} | ||
export CUDA_VERSION="${CUDA_VERSION}" | ||
env-store CUDA_VERSION | ||
export CUDNN_VERSION=${CUDNN_VERSION} | ||
export CUDNN_VERSION="${CUDNN_VERSION}" | ||
env-store CUDNN_VERSION | ||
export CUDA_LEVEL=${CUDA_LEVEL} | ||
export CUDA_LEVEL="${CUDA_LEVEL}" | ||
env-store CUDA_LEVEL | ||
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH | ||
env-store LD_LIBRARY_PATH | ||
export MAMBA_CREATE="micromamba create --always-softlink -y -c nvidia -c conda-forge" | ||
env-store MAMBA_CREATE | ||
export MAMBA_INSTALL="micromamba install --always-softlink -y -c nvidia -c conda-forge" | ||
env-store MAMBA_INSTALL | ||
export CUDA_STRING="$(cut -d '.' -f 1,2 <<< "${CUDA_VERSION}")" | ||
env-store CUDA_STRING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mamba-skel.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
env_location=$(micromamba info | grep "env location" | awk '{print $4}') | ||
|
||
if [[ -z $env_location || $env_location == "-" ]]; then | ||
printf "This command must be run in a micromamba environment\n" | ||
exit 1 | ||
fi | ||
|
||
activate_dir="${env_location}/etc/conda/activate.d" | ||
deactivate_dir="${env_location}/etc/conda/deactivate.d" | ||
|
||
mkdir -p "${activate_dir}" | ||
mkdir -p "${deactivate_dir}" | ||
|
||
# Default activation script | ||
|
||
cat <<EOF > "${activate_dir}/10_ld.sh" | ||
#!/bin/bash | ||
export SYS_LD_LIBRARY_PATH="\${LD_LIBRARY_PATH}" | ||
export LD_LIBRARY_PATH="${env_location}/lib\${SYS_LD_LIBRARY_PATH:+:\${SYS_LD_LIBRARY_PATH}}" | ||
EOF | ||
|
||
# Default deactivation script | ||
cat <<EOF > "${deactivate_dir}/90_ld.sh" | ||
#!/bin/bash | ||
export LD_LIBRARY_PATH="\${SYS_LD_LIBRARY_PATH}" | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters