Ubuntu View installed Cuda Toolkit with its own tools and other installation files

Source: Internet
Author: User
Tags cuda toolkit nvcc

Original works, reproduced please specify the source: http://www.cnblogs.com/shrimp-can/p/5253672.html

1. Viewing tools

The default directory is: local, enter local:cd/usr/local

Input command: LS, view the files in this directory, you can see the installation of Cuda here

Enter Cuda file: CD cuda-7.5 (mine is 7.5), here for the installation of something

Locate the installed tool in the Bin directory, enter the directory where the Cuda file is located, and then go to the Bin directory: CD bin

Input command: LS, you can see the CUDA Toolkit comes with tools, these tools can be used directly.

The above tools, can be used through the terminal command, if you find the input Terminal command, but the display does not have the tool, there may be no added path.

2. Add a path

Input command: Export path=/usr/local/cuda-7.5/bin: $PATH

Export ld_library_path=/usr/local/cuda-7.5/lib64: $LD _library_path (I'm using cuda7.5 here, I need to lose according to my own version)

This way, the path is added, enter the command: NVCC-V checks if the path was added successfully, and if the result has NVCC, it is added successfully. So the toolkit inside the tool can be used directly in the terminal.

Ubuntu View installed Cuda Toolkit with its own tools and other installation files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.