Sorry, you have been blocked
This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
What can I do to resolve this?
You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.
Cloudflare Ray ID: 7a6cecbabcdc248b • Your IP: Click to reveal 88.135.219.175 • Performance & security by Cloudflare
Как узнать версию cuda
CUDA is generally installed under the path /usr/local/cuda/, there is a version.txt file under this path, which records the version information of CUDA
How to check the CUDA version of windows
What is CUDA?
CUDA (Compute Unified Device Architecture) is a graphics card manufacturerNVIDIAIntroduced computing platform. CUDA™ is a universalParallel ComputingArchitecture that enablesGPUAble to solve complex calculation problems. It contains CUDAInstruction set architecture(ISA) And the parallel computing engine inside the GPU. (The above explanation comes from Baidu entry)
Knowing what CUDA is, what is my CUDA version number?
(1) Open the control panel and click the NVIDIA control panel:
Click Help on the NVIDIA control panel, and click System Information in the lower left corner:

Click on the component: Your CUDA information is displayed here! ! !

(2) The second way is:
Open CMD, enter nvcc —version
If it is reported that nvcc is not an internal or external command, nor an executable program or batch file, then the path is not added to the path. The path of the general file is C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA
How to check which CUDA version is installed on Linux

There are several ways and steps you could check which CUDA version is installed on your Linux box.
Check if CUDA is installed and it’s location with NVCC
Run which nvcc to find if nvcc is installed properly.
You should see something like /usr/bin/nvcc. If that appears, your NVCC is installed in the standard directory.
If you have installed the CUDA toolkit but which nvcc returns no results, you might need to add the directory to your path.
You can check nvcc --version to get the CUDA compiler version, which matches the toolkit version:
This means that we have CUDA version 8.0.61 installed.
Note that if the nvcc version doesn’t match the driver version, you may have multiple nvcc s in your PATH . Figure out which one is the relevant one for you, and modify the environment variables to match, or get rid of the older versions.
Get CUDA version from CUDA code
When you’re writing your own code, figuring out how to check the CUDA version, including capabilities is often accomplished with the cudaDriverGetVersion () API call.
The API call gets the CUDA version from the active driver, currently loaded in Linux or Windows.
Identifying which CUDA driver version is installed and active in the kernel
You can also use the kernel to run a CUDA version check:
Identifying which GPU card is installed and what version
In many cases, I just use nvidia-smi to check the CUDA version on CentOS and Ubuntu.
For me, nvidia-smi is the most straight-forward and simplest way to get a holistic view of everything – both GPU card model and driver version, as well as some additional information like the topology of the cards on the PCIe bus, temperatures, memory utilization, and more.
The driver version is 367.48 as seen below, and the cards are two Tesla K40m.
Troubleshooting
After installing a new version of CUDA, there are some situations that require rebooting the machine to have the driver versions load properly. It is my recommendation to reboot after performing the kernel-headers upgrade/install process, and after installing CUDA – to verify that everything is loaded correctly.
How to Check CUDA Version Easily

You can see similar output in the screenshot below. The last line shows you version of CUDA. The version here is 10.1. Yours may vary, and can be either 10.0, 10.1, 10.2 or even older versions such as 9.0, 9.1 and 9.2. After the screenshot you will find the full text output too.

What is nvcc?
nvcc is the NVIDIA CUDA Compiler, thus the name. It is the key wrapper for the CUDA compiler suite. For other usage of nvcc , you can use it to compile and link both host and GPU code.
Check out nvcc ‘s manpage for more information.
Method 2 — Check CUDA version by nvidia-smi from NVIDIA Linux driver
The second way to check CUDA version is to run nvidia-smi, which comes from downloading the NVIDIA driver, specifically the NVIDIA-utils package. You can install either Nvidia driver from the official repositories of Ubuntu, or from the NVIDIA website.

To check CUDA version with nvidia-smi , directly run
You can see similar output in the screenshot below. The version is at the top right of the output. Here’s my version is CUDA 10.2. You may have 10.0, 10.1 or even the older version 9.0 or 9.1 or 9.2 installed.
Importantly, except for CUDA version. There are more details in the nvidia-smi output, driver version (440.100), GPU name, GPU fan percentage, power consumption/capability, memory usage, can also be found here. You can also find the processes which use the GPU at the moment. This is helpful if you want to see if your model or system is using GPU such as PyTorch or TensorFlow.

Here is the full text output:
What is nvidia-smi?
nvidia-smi (NVSMI) is NVIDIA System Management Interface program. It is also known as NVSMI. nvidia-smi provides monitoring and maintenance capabilities for all of tje Fermi’s Tesla, Quadro, GRID and GeForce NVIDIA GPUs and higher architecture families. For most functions, GeForce Titan Series products are supported with only little detail given for the rest of the Geforce range.
NVSMI is also a cross-platform application that supports both common NVIDIA driver-supported Linux distros and 64-bit versions of Windows starting with Windows Server 2008 R2. Metrics may be used directly by users via stdout, or stored via CSV and XML formats for scripting purposes.
For more information, check out the man page of nvidia-smi .
Method 3 — cat /usr/local/cuda/version.txt
Note that if you install Nvidia driver and CUDA from Ubuntu 20.04’s own official repository this approach may not work.

3 ways to check CUDA version
Time Needed : 5 minutes
There are basically three ways to check CUDA version. One must work if not the other.
-
Perhaps the easiest way to check a file
Run cat /usr/local/cuda/version.txt

Note: this may not work on Ubuntu 20.04
Simple run nvcc —version . The cuda version is in the last line of the output.
Simply run nvidia-smi . The version is in the header of the table printed.