Skip to content

Commit

Permalink
Added nvidia version detection for headless-gl
Browse files Browse the repository at this point in the history
  • Loading branch information
ducha-aiki committed Jan 31, 2019
1 parent f27bf8d commit d83431d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install_minos_and_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ cd headless-gl-nvidia
pip install glad
cd src/gl_context
cd build
NVIDIA_VERSION=$(nvidia-smi --query-gpu=driver_version --format=csv,noheader)
sed -i "s, /usr/lib/nvidia-390,/usr/lib/nvidia-${NVIDIA_VERSION:0:3},g" ../CMakeLists.txt
rm CMakeCache.txt
cmake ..
make
Expand Down

0 comments on commit d83431d

Please sign in to comment.