I was able to log in as root user by doing "sudo -i" after ssh to the aws ec2 instance.
but now the command *echo libnvidia-opencl.so.1 >> /etc/OpenCL/vendors/nvidia.icd* says " -bash: /etc/OpenCL/vendors/nvidia.icd: No such file or directory" On Sun, Mar 11, 2018 at 5:51 AM, aseem hegshetye <aseem.hegshe...@gmail.com> wrote: > is there a way around to solve this without being a root user? > > > > On Sun, Mar 11, 2018 at 1:34 AM, Andreas Kloeckner < > li...@informa.tiker.net> wrote: > >> aseem hegshetye <aseem.hegshe...@gmail.com> writes: >> >> > 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. >> >> Only writable as root. >> >> Andreas >> > >
_______________________________________________ PyOpenCL mailing list PyOpenCL@tiker.net https://lists.tiker.net/listinfo/pyopencl