bumblebee. It is designed to start my 2nd GPU, run the command given, and shut down the 2nd GPU at the end.
A simplified example:
optirun echo test | cat
However there's a bug in
optirun that requires that I now run a follow up command to force the GPU to shut down.
Can I easily wrap some complex command such as
echo test | cat in a shell script such that I can run optirun, and then follow that up at the end with command (my workaround to the bug)?
The quoting and all seems to be an issue preventing me from doing this with a simple shell script.