PyCUDA-Ubuntu 14.04 installation and testing

PyCUDA-Ubuntu14.04 installation and testing#

installation##

sudo apt install python-pycuda

Step 1 Download and unzip PyCUDA

$ wget http://pypi.python.org/pypi/pycuda
$ tar xfz pycuda-VERSION.tar.gz

Step 2 Compile PyCUDA

$ cd pycuda-VERSION # if you're not there already
$ python configure.py --cuda-root=/where/ever/you/installed/cuda
$ su -c "make install"

test##

e.g. 1

$ cd pycuda-VERSION/test
$ python test_driver.py

Output OK is successful.

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() #Query the total video memory of the current graphics card, available video memory

Document##

Official document

Recommended Posts

PyCUDA-Ubuntu 14.04 installation and testing
OpenMPI-Ubuntu installation and configuration
Ubuntu introduction and installation
Python introduction and environment installation
Centos mysql installation and configuration
Anaconda introduction and Ubuntu/windows installation Anaconda
Centos7 installation and configuration prometheus
CentOS 7 installation and configuration PPTP
Ubuntu16.04 installation and simple configuration
CentOS installation and configuration cmake
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
GitLab installation and basic use
centos7 kvm installation and use
CentOS7 postgresql installation and use
Ubuntu PostgreSQL installation and configuration
Caffe-Ubuntu installation and problem solving
Centos7 elk7.1.1 installation and use
Centos6.5 installation and deployment of KVM
Centos7 hadoop cluster installation and configuration
CentOS7 installation and maintenance of Gitlab
Redis installation under ubuntu and windows
Python's jieba module installation and download
CentOS 7.X system installation and optimization
Java-JDK installation and configuration under CentOS
CentOS 7 Tomcat service installation and configuration
Ubuntu 19.1 installation and configuration Chinese environment
CentOS NTP server installation and configuration
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
CentOs7 installation and deployment Zabbix3.4 original
2-Kubernetes entry manual installation and deployment
Ubuntu18.04 installation Anaconda3 and VSCode guide
Erlang 20.2 installation and deployment under CentOS 7
Ubuntu configuration source and installation software
JumpServer Bastion Host--CentOS 8 Installation and Deployment (4)
Centos7 mysql database installation and configuration
CentOS 7 system installation and configuration graphic tutorial
ubuntu Docker installation and deployment of Rancher
Ubuntu installation and deployment Redash operation notes (2020.08)
Installation and use of Mysql under CentOS
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Ubuntu18.04 system installation and prerequisite software installation guide
Centos-6.5 installation and deployment of LNMP environment
Linux kernel compilation and CentOS system installation
Installation and configuration of redis under centos7
Centos7.6 operating system installation and optimization record
Centos7 installation and deployment of gitlab server
Installation and uninstallation of CUDA under Ubuntu 16.04
Ubuntu18.04 Server version installation and use (graphic)
Installation and deployment of Nginx in Ubuntu
Installation and use of Win10 subsystem Ubuntu
Centos python3 compile installation and compile gcc upgrade
Zabbix installation and deployment and localization under CentOS
n1. Docker installation and operation exceptions encountered
Centos7 hive stand-alone mode installation and configuration
CentOS7 installation zabbix 4.0 tutorial (graphics and text)
Jenkins installation and deployment tutorial under CentOS 7
Ubuntu 14.04 16.04 Linux nvidia driver download and installation
KVM installation and preliminary use under CentOS 7.2