With the latest laptops coming with dual graphic cards getting OptiX to run can sometimes prove to be painful. This post will explain all the steps needed to get OptiX running after a fresh install of Ubuntu 13.10
Configurations of machine settings tested with:
OS : Ubuntu 13.10
Integrated Graphic Card : Intel Haswell Mobile
Dedicated Graphic Card : Nvidia GTX 765 M
fire up a terminal and install some packages using this command
sudo apt-get install bumblebee primus primus-libs-ia32:i386 linux-headers-generic
reboot the machine
Install bumblebee and Nvidia drivers using the following command
sudo apt-get install bumblebee-nvidia nvidia-319 nvidia-settings-319
If not done already copy the precompiled OptiX SDKs from any location.
Install glut library
sudo apt-get install freeglut3 freeglut3-dev
set Library Search path and point it to the location of your precompiled SDKs
export LD_LIBRARY_PATH=/home/.../NVIDIA-OptiX-SDK-3.0.0-linux64/SDK-precompiled-samples
navigate to the pre-compiled SDKs folder and grant execute permission for the executables
I granted read write execute permissions but you can be more restrictive
chmod 777 <nameOfExecutable>
and now you should be all set simple add optirun before the name of your executable
:~/home/OptiX/SDK-precompiled-samples$ optirun ./swimmingShark
Nice post! Can’t wait for the next one. Keep stuff like this coming.
ReplyDeleteToshiba - Satellite 15.6" Touch-Screen Laptop - 4GB Memory - 750GB Hard Drive - Satin Black (C55DT-A5106)
Toshiba - Satellite 15.6" Touch-Screen Laptop - 4GB Memory - 750GB Hard Drive - Satin Black (C55T-A5102)