Hi,
I get this error when i run following code:

import pyopencl as cl
cl.get_platforms()

 I tried following command in ubuntu terminal to fix it:
  sudo echo e- 'echo libnvidia-opencl.so.1'  >> /etc/OpenCL/vendors/nvidia.icd
 and 
echo libnvidia-opencl.so.1 >> /etc/OpenCL/vendors/nvidia.icd

 But i get permission denied error.

How can i fix it.
thanks
Aseem