ソースを参照

fix: speed up cuda home detection (#288)

* Update runtime.sh

Stops searching your entire pc and speeds up the finding process by ALOT

* Update runtime.sh

---------

Co-authored-by: AlpinDale <52078762+AlpinDale@users.noreply.github.com>
Aykut Akgün 1 年間 前
コミット
cbe37e8b18
1 ファイル変更1 行追加1 行削除
  1. 1 1
      runtime.sh

+ 1 - 1
runtime.sh

@@ -7,5 +7,5 @@ if [ $# -eq 0 ]
     bin/micromamba run -r conda -n aphrodite-runtime bash
     exit
 fi
-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 $*