Pārlūkot izejas kodu

fix: speedup runtime update script

AlpinDale 1 gadu atpakaļ
vecāks
revīzija
132d9927cb
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      update-runtime.sh

+ 1 - 1
update-runtime.sh

@@ -10,6 +10,6 @@ bin/micromamba run -r conda -n aphrodite-runtime pip install -r requirements.txt
 # Make it so the correct NVCC is found. Looks only within the current working
 # directory, since find will return the *first* result, leading to conflicts
 # if you have multiple environments and one of them does not contain CUDA runtime.
-export CUDA_HOME=$(find / -type d -path "*/conda/envs/aphrodite-runtime" 2>/dev/null | head -n 1)
+export CUDA_HOME=$(realpath $(find ./ -type d -path "*/conda/envs/aphrodite-runtime" 2>/dev/null | head -n 1))
 bin/micromamba run -r conda -n aphrodite-runtime pip install -vvv -e .