您当前的位置: 首页 > 

安装pycuda的正确办法

柳鲲鹏 发布时间:2018-10-31 09:33:03 ,浏览量:0

  • 参考

https://wiki.tiker.net/PyCuda/Installation/Linux  

使用pip install pycuda,出现找不到cuda.h。没解决。下载、解压

 

 

  • 编译安装
# sudo apt-get -y --force-yes install python-pycuda
sudo rm -rf pycuda-2018.1.1
tar xzf pycuda-2018.1.1.tar.gz

cd pycuda-2018.1.1

# where is distribute_setup.py ?
su -c "python distribute_setup.py"
su -c "easy_install numpy"

python2 configure.py --cuda-root=/usr/local/cuda
su -c "make install"

cd test
python2 test_driver.py

cd ../..

 

关注
打赏
1688896170
查看更多评论

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4641博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.1186s