官方文档Installing PyCUDA on Linux - Andreas Klöckner's Former Wiki (tiker.net)
1. 安装numpy
2. python configure.py --cuda-root=/where/ever/you/installed/cuda
3. make install
问题1.
error: ‘unique_ptr’ is not a member of ‘std’
std::unique_ptr<char>
NVIDIA 和 GCC 版本对比gcc与cuda的关系_IT捕快的博客-CSDN博客_cuda 对应gcc
查看本机版本 gcc -v
安装gcc
apt-get install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-8 g++-8
配置:将gcc8,g++8作为默认选项
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100
sudo update-alternatives --config gcc
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
sudo update-alternatives --config g++
问题2.
make intall 时 MarkupSafe 安装时间超时
pip install -U MarkupSafe