From 7fedff0b1fc118a74df8515a13ed5750d0a98509 Mon Sep 17 00:00:00 2001 From: a-One-Fan Date: Tue, 2 May 2023 00:20:34 +0300 Subject: [PATCH] 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. --- setup-oneapi.sh | 2 -- start-oneapi.sh | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 start-oneapi.sh diff --git a/setup-oneapi.sh b/setup-oneapi.sh index daf7cff..cd5e101 100755 --- a/setup-oneapi.sh +++ b/setup-oneapi.sh @@ -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 \ No newline at end of file diff --git a/start-oneapi.sh b/start-oneapi.sh new file mode 100644 index 0000000..a33cdd1 --- /dev/null +++ b/start-oneapi.sh @@ -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