oglc/launch

14 lines
244 B
Plaintext
Raw Normal View History

2021-07-31 19:59:41 +02:00
#!/usr/bin/env bash
executable="$1"
2022-06-21 01:41:52 +02:00
options="$2"
2021-07-31 19:59:41 +02:00
prime="prime-run"
if command -v $prime &> /dev/null
then
2022-06-21 01:41:52 +02:00
echo "launching $executable $options with nvidia prime offloading"
$prime $executable $options
2021-07-31 19:59:41 +02:00
else
2022-06-21 01:41:52 +02:00
$executable $options
2021-07-31 19:59:41 +02:00
fi