PyCUDA学习日记1

来源:互联网 发布:触摸屏手写软件 编辑:程序博客网 时间:2024/06/05 22:42

通过PyCUDA可以让Python对CUDA进行操作,进行高性能计算,可以用于图形图像、模式识别、机器视觉等。自己在Ubuntu 14.04 Desktop LTS上面进行实验,导入pycuda之前需要安装CUDA [3],Python,PyCUDA [4]等类库。然后会继续深入学习Python,PyCUDA,Theano,TensorFlow,Keras,Caffe等,进而打通Python生态系统。

1. 遇到的问题

遇到的错误,如下所示:

ImportError: libcurand.so.7.5: cannot open shared object file: No such file or directory

解决方案:将/usr/local/cuda/lib64添加到/etc/ld.so.conf中即可。


参考文献:

[1] pycuda 2016.1.1:https://pypi.python.org/pypi/pycuda

[2] PyCUDA:https://mathema.tician.de/software/pycuda/

[3] Setting up a Deep Learning Machine from Scratch:https://github.com/saiprashanths/dl-setup

[4] Installing PyCuda:https://wiki.tiker.net/PyCuda/Installation

1 0