forked from mrq/ai-voice-cloning
Use ipexrun / better start
Supposedly, ipexrun improves performance by ~10%. It needs numactl. Also deactivate any conda envs since working with oneAPI might mean having a conda env open. This just reduces spam from setvars.sh.
This commit is contained in:
parent
c62d73f28a
commit
5092cf9174
|
@ -28,7 +28,7 @@ if [[ $? != 0 ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Dependency spam, most of this should be needed. libjpeg9 exists because otherwise torchvision complains.
|
# Dependency spam, most of this should be needed. libjpeg9 exists because otherwise torchvision complains.
|
||||||
sudo apt-get install build-essential intel-oneapi-mkl intel-level-zero-gpu level-zero intel-opencl-icd intel-media-va-driver-non-free libmfx1 libgl-dev intel-oneapi-compiler-dpcpp-cpp libjpeg9
|
sudo apt-get install build-essential intel-oneapi-mkl intel-level-zero-gpu level-zero intel-opencl-icd intel-media-va-driver-non-free libmfx1 libgl-dev intel-oneapi-compiler-dpcpp-cpp libjpeg9 numactl
|
||||||
|
|
||||||
|
|
||||||
# get local dependencies
|
# get local dependencies
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
ulimit -Sn `ulimit -Hn` # ROCm is a bitch
|
ulimit -Sn `ulimit -Hn` # ROCm is a bitch
|
||||||
|
conda deactivate > /dev/null 2>&1 # Some things with oneAPI happen with conda. Deactivate conda if it is active to avoid spam.
|
||||||
source ./venv/bin/activate
|
source ./venv/bin/activate
|
||||||
source /opt/intel/oneapi/setvars.sh
|
source /opt/intel/oneapi/setvars.sh
|
||||||
python3 ./src/main.py "$@"
|
ipexrun ./src/main.py "$@"
|
||||||
deactivate
|
deactivate
|
||||||
|
|
Loading…
Reference in New Issue
Block a user