Make oneAPI startup its own file

Not sed-ing seems like a better idea, in case the user wants to revert it easily or something, or for updates.
This commit is contained in:
a-One-Fan 2023-05-02 00:20:34 +03:00
parent 7261ec2b1f
commit 7fedff0b1f
2 changed files with 6 additions and 2 deletions

View File

@ -76,6 +76,4 @@ python3 -m pip install -r ./requirements.txt # install local requirements
rm *.bat
sed -i 's|bitch|BEATCH\nsource /opt/intel/oneapi/setvars.sh|' ./start.sh
deactivate

6
start-oneapi.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
ulimit -Sn `ulimit -Hn` # ROCm is a bitch
source ./venv/bin/activate
source /opt/intel/oneapi/setvars.sh
python3 ./src/main.py "$@"
deactivate