Skip to content

Commit

Permalink
Add environment variable to overwrite the CUDA path (#718)
Browse files Browse the repository at this point in the history
This is required for GCP
  • Loading branch information
wanliAlex authored Jan 23, 2024
1 parent 2e9e1c5 commit d20d6f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion run_marqo.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash
#source /opt/bash-utils/logger.sh
export PYTHONPATH="${PYTHONPATH}:/app/src/"
export CUDA_HOME=/usr/local/cuda/
if [ -z "${MARQO_CUDA_PATH}" ]; then
export CUDA_HOME=/usr/local/cuda
else
export CUDA_HOME=${MARQO_CUDA_PATH}
fi
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64
export PATH=${CUDA_HOME}/bin:${PATH}

Expand Down

0 comments on commit d20d6f0

Please sign in to comment.