This utility provides a comprehensive and detailed analysis of CUDA-capable devices in your system. It offers an in-depth look at the hardware properties and capabilities of each CUDA device, presented in a user-friendly, color-coded format.
- Multi-Device Support: Automatically detects and displays information for all CUDA devices in the system.
- Color-Coded Output: Enhances readability with a visually appealing, color-coded display.
- Comprehensive Device Analysis: Covers a wide spectrum of device properties, including:
- Core device specifications
- Memory architecture and capabilities
- Thread and block characteristics
- Texture and surface memory details
- Advanced hardware features
- Kernel execution properties
- PCI bus information
- Performance metrics
- CUDA-capable GPU
- CUDA Toolkit (version 11.0 or later recommended for full feature support)
- C++11 compatible compiler
Compilation (if you don't want to install nvidia-cuda-toolkit(it's really large!7GB!),you can run the executable file directly)
Compile the program using the following command:
nvcc -std=c++11 cuda_device_info.cu -o cuda_device_infoRun the compiled executable:
./cuda_device_infoThe utility will automatically scan for CUDA devices and display their information.
The utility generates a comprehensive report for each CUDA device, organized into the following sections:
- Basic Device Information
- Memory Architecture
- Advanced Memory Properties
- Thread and Block Specifications
- Clock Frequencies
- Texture Memory Capabilities
- Surface Memory Features
- Advanced Hardware Features
- Kernel Execution Properties
- Hardware-Specific Features
- PCI Bus Information
- Persisting L2 Cache Properties (CUDA 11.0+)
- Performance Metrics and Bandwidth Calculations
Some advanced properties may not be available on older CUDA versions or hardware. The program employs conditional compilation to ensure compatibility across different CUDA versions.
For more information on CUDA programming and GPU computing, visit NVIDIA's CUDA Zone.
