PyCUDA - Ubuntu14.04安装及测试
发布时间:2020-12-15 06:09:24 所属栏目:Ubuntu 来源:互联网
导读:PyCUDA - Ubuntu14.04安装及测试 安装 依赖 Numpy 直接安装 sudo apt install python-pycuda 源码安装: Step 1 下载并解压 PyCUDA $ wget http://pypi.python.org/pypi/pycuda$ tar xfz pycuda-VERSION.tar.gz Step 2 编译PyCUDA $ cd pycud
PyCUDA - Ubuntu14.04安装及测试安装
sudo apt install python-pycuda
Step 1 下载并解压 PyCUDA$ wget http://pypi.python.org/pypi/pycuda $ tar xfz pycuda-VERSION.tar.gz Step 2 编译PyCUDA$ cd pycuda-VERSION # if you're not there already $ python configure.py --cuda-root=/where/ever/you/installed/cuda $ su -c "make install" 测试e.g. 1$ cd pycuda-VERSION/test $ python test_driver.py 输出 OK 即成功. e.g. 2$ cd pycuda-VERSION/examples $ python test_demo.py e.g. 3import pycuda.autoinit import pycuda.driver free_bytes,total_bytes = pycuda.driver.mem_get_info() # 查询当前显卡的总显存,可用显存 文档官方文档 (编辑:日照站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Ubuntu16.04 + cuda8.0 + GTX1080 + matlab14.04a + Opencv
- Ubuntu 16.04 一系列软件安装命令,包括QQ、搜狗、Chrome、
- 在Ubuntu 14.04 64bit上编译并研究State Threads网络线程
- ubuntu 14.04系统安装 Scientific Toolworks Understand 软
- MXNet - Ubuntu安装
- Ubuntu16.04.1 安装Nginx
- GTX1080+Cuda8.0+Cudnnv5+caffe+faster-rcnn
- Ubuntu 16.04安装 openssh-server问题
- ubuntu下安装anaconda
- ubuntu – 尝试连接到Docker守护程序套接字时权限被拒绝
