mirror of
https://github.com/immich-app/immich.git
synced 2025-03-18 02:31:28 -05:00
increase timeout for rocm
This commit is contained in:
parent
1c550fa1a5
commit
2c4452f5d1
1 changed files with 3 additions and 6 deletions
|
@ -2,17 +2,14 @@
|
|||
|
||||
echo "Initializing Immich ML $IMMICH_SOURCE_REF"
|
||||
|
||||
if ! [ "$DEVICE" = "openvino" ]; then
|
||||
: "${MACHINE_LEARNING_WORKER_TIMEOUT:=120}"
|
||||
else
|
||||
: "${MACHINE_LEARNING_WORKER_TIMEOUT:=300}"
|
||||
fi
|
||||
|
||||
# mimalloc seems to increase memory usage dramatically with openvino, need to investigate
|
||||
if ! [ "$DEVICE" = "openvino" ] && ! [ "$DEVICE" = "rocm" ]; then
|
||||
lib_path="/usr/lib/$(arch)-linux-gnu/libmimalloc.so.2"
|
||||
export LD_PRELOAD="$lib_path"
|
||||
export LD_BIND_NOW=1
|
||||
: "${MACHINE_LEARNING_WORKER_TIMEOUT:=120}"
|
||||
else
|
||||
: "${MACHINE_LEARNING_WORKER_TIMEOUT:=300}"
|
||||
fi
|
||||
|
||||
: "${IMMICH_HOST:=[::]}"
|
||||
|
|
Loading…
Add table
Reference in a new issue