Alienware-17-R4,Ubuntu16.04安装cuda8.0

 InstallingCUDA 8.0 on a fresh installation of Ubuntu 16.0

(tested on Alienware-17-R4i7 7820hkGtx-1080)

1.  Launch [Software& Updates]. Select [Additional Drivers] tab.

2.  In the list, findyour graphic card. Among the drivers that can be used for the card, choose theproprietary driver from NVIDIA. Then press [Apply Changes] button. In my case,under the graphics card name "NVIDIA Corporation: GM107M [Geforce GTX950M]", there were two selections:

·       Using NVIDIAbinary driver - version 375.66 from nvidia-375 (proprietary, tested)

·       Using X.Org Xserver - Nouveau display driver from xserver-xorg-video-nouveau (open source)

3.  Delete defaultinstalled video drivers with $ sudoapt remove xserver-xorg-video*.

4.  Reboot.

5.  Download CUDA8.0 Toolkit from here. Among the installer types, choose "runfile (local)". Thisdownloads cuda_8.0.61_375.26_linux.run.

6.  Run theinstaller with $ sudo shcuda_8.0.61_375.26_linux.run.

·       [Optional] Ifyour currently installed NVIDIA driver version is higher than the driverversion contained in the downloaded installer, you can choose not to installthe driver while installing CUDA. In my case, since I already have driverversion 375.66, which is higher than 375.26contained in the installer, I chose not to install.

7.  After install,config your binary path and library path (You can follow the directions fromthe instller). If you choose to configure ld.so.conf and the following erroroccurs: libEGL.so.1 is not asymbolic link, follow the direction from this link.

8.The laststep of installation CUDA is to add the path of it to source bash file:

sudo gedit~/.bashrc

The the twofollowing line must be added to the file with regard to CUDA 8.0 installation:

exportPATH=/usr/local/cuda-8.0/bin:$PATH

exportLD_LIBRARY_PATH=/usr/local/cuda-8.0/lib64:$LD_LIBRARY_PATH

NOTE: 

Check Instructionsenv               #check environment variable

                    nvcc–V           #check  cuda tools release version

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
您好!要在Ubuntu 16.04上安装CUDA,您可以按照以下步骤进行操作: 1. 首先,确保您的系统满足CUDA的要求。您可以访问NVIDIA的官方文档来查看支持的操作系统版本和硬件要求。 2. 下载CUDA Toolkit。您可以在NVIDIA的官方网站上找到CUDA Toolkit的下载链接。选择适合您系统的版本,并下载相应的.run文件。 3. 在终端中导航到您下载的.run文件所在的目录,并通过以下命令将其设置为可执行文件: ``` chmod +x cuda_*.run ``` 4. 运行.run文件以启动安装程序,通过按照提示进行安装。在安装过程中,您可能需要接受许可协议、选择安装选项和提供管理员密码等。 5. 安装完成后,需要将CUDA的路径添加到系统环境变量中。打开终端并编辑 `~/.bashrc` 文件: ``` nano ~/.bashrc ``` 6. 在文件末尾添加以下行来设置CUDA相关的环境变量: ``` export PATH=/usr/local/cuda/bin:$PATH export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH ``` 7. 保存并关闭文件,然后运行以下命令使环境变量生效: ``` source ~/.bashrc ``` 8. 最后,您可以验证CUDA是否成功安装。在终端中运行以下命令来检查CUDA版本: ``` nvcc --version ``` 如果安装成功,您应该能够看到CUDA的版本信息。 这些是在Ubuntu 16.04上安装CUDA的基本步骤。请注意,具体的安装过程可能因您的系统配置而有所不同。如果遇到任何问题,建议参考NVIDIA的官方文档或寻求社区支持。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值