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.
8 lines
282 B
Bash
Executable File
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
|