# How to setup NVIDIA OpenCL

**URL:** <https://forums.developer.nvidia.com/t/how-to-setup-nvidia-opencl/31932>\
**Category:** CUDA Setup and Installation\
**Created:** [January 9, 2014, 5:40pm UTC](https://forums.developer.nvidia.com/t/how-to-setup-nvidia-opencl/31932 "2014-01-09T17:40:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnus](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@somnus](https://forums.developer.nvidia.com/u/somnus)\
**Post date:** [January 9, 2014, 5:40pm UTC](https://forums.developer.nvidia.com/t/how-to-setup-nvidia-opencl/31932/1 "2014-01-09T17:40:55Z")

</div>

OS : Scientific Linux 6.4  
GPU : Tesla K20

I have been install cuda5.5 by rpm that downloaded from NVIDIA web site, and have run CUDA programs successfully.  
Now I wanna use NVIDIA OpenCL.

However I don’t understand how to do…

I have tried follow:  
g++ main.cpp -lOpenCL  
Result: “/usr/bin/ld: cannot find -lOpenCL”

I have not setup anything about OpenCL, so it’s obvious.  
Where is the liblary and include files etc. ?

Would you teach me from the biginning.

---

<div class="post-metadata">

**Author:** ![wanderine](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@wanderine](https://forums.developer.nvidia.com/u/wanderine)\
**Post date:** [January 21, 2014, 4:09am UTC](https://forums.developer.nvidia.com/t/how-to-setup-nvidia-opencl/31932/2 "2014-01-21T04:09:00Z")

</div>

Try

/usr/local/cuda-5.0/include/  
/usr/local/cuda-5.0/include/CL  
/usr/lib
