Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
m1k1o
GitHub Repository: m1k1o/neko
Path: blob/master/runtime/nvidia/entrypoint.sh
1450 views
1
#!/bin/bash -e
2
3
# Add VirtualGL directories to path
4
export PATH="${PATH}:/opt/VirtualGL/bin"
5
6
# Use VirtualGL to run wine with OpenGL if the GPU is available, otherwise use barebone wine
7
if [ -n "$(nvidia-smi --query-gpu=uuid --format=csv | sed -n 2p)" ]; then
8
exec vglrun "$@"
9
else
10
echo "No GPU detected"
11
exec "$@"
12
fi
13
14