欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

cuda测试

程序员文章站 2022-07-12 20:28:36
...

1.安装cuda

wget https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_10.1.105_418.39_linux.run

sudo bash cuda_10.1.105_418.39_linux.run --silent --samples --toolkit
echo 'export PATH=$PATH:/usr/local/cuda/bin' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/cuda/lib64' >>~/.bashrc
source ~/.bashrc

2.测试cuda

~/NVIDIA_CUDA-10.1_Samples/5_Simulations/nbody
./nbody -benchmark -device=0 -numbodies=1000192
相关标签: cuda