ai-voice-cloning/start-oneapi.sh
a-One-Fan 5092cf9174 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.
2023-05-04 20:46:02 +03:00

8 lines
282 B
Bash
Executable File

#!/bin/bash
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 /opt/intel/oneapi/setvars.sh
ipexrun ./src/main.py "$@"
deactivate