Sunday, February 9, 2014

Optix Setup on laptops with dual graphics ubuntu 13.10

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



1 comment: