PyCUDA
发布时间:2023-12-14 05:58:18 所属栏目:Ubuntu 来源:DaWei
导读: PyCUDA - Ubuntu14.04安装及测试
安装
依赖 Numpy
直接安装
sudo apt install python-pycuda
源码安装:
Step 1 下载并解压 PyCUDA
$ wget http://pypi.python.org/pypi
安装
依赖 Numpy
直接安装
sudo apt install python-pycuda
源码安装:
Step 1 下载并解压 PyCUDA
$ wget http://pypi.python.org/pypi
|
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 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. 3 import pycuda.autoinit import pycuda.driver free_bytes,total_bytes = pycuda.driver.mem_get_info() # 查询当前显卡的总显存,可用显存 文档官方文档 (编辑:东莞站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- qt – 错误:QApplication:没有这样的文件或目录 – Ubunt
- Ubuntu 14.04安装和卸载搜狗拼音输入法
- 我在我的Ubuntu系统上有Python,但gcc不能找到Python.h
- ubuntu16.04安装nodejs
- Ubuntu zimbra 8.6.0 迁移(安装也可以参考)
- 当我尝试使用UBUNTU 14.04上的Android Studio中的Gradle进行
- Autostart script in ubuntu
- ubuntu14php5.5安装mcrypt扩展
- 深度学习主机环境配置: Ubuntu16.04 + GeForce GTX 1070 +
- ubuntu下搭建php开发环境(nginx+(cgi)php5fpm+memcached+x
推荐文章
站长推荐
