PyCUDA - Ubuntu14.04安装及测试
发布时间:2020-12-15 05:49:41 所属栏目: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() # 查询当前显卡的总显存,可用显存 文档官方文档 (编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- ROS_Kinetic_29 kamtoa simulation学习与示例分析(一)
- VirtualBox 虚拟机中安装 Ubuntu 12.04(图文教程)
- Ubuntu搭建svn服务器
- ubuntu – 如何使用ansible在目标上提取war文件
- Ubuntu14.04服务器环境下配置PHP7.0+Apache2+Mysql5.7的方法
- 加载共享库时出错:libopencv_core.so.3.0
- 在Ubuntu(Java app)下监视对Firebird的SQL调用
- ubuntu 14.04安装docker
- ffmpeg的ubuntu的编译过程(编译静态库和动态库)
- Ubuntu14.04安装pycharm并配置pycharm运行Django工程