Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bdhu/cuda_device_attribute_generation
Automatically generate a C++ header file including Cuda device-specific parameters
https://github.com/bdhu/cuda_device_attribute_generation
Last synced: 12 days ago
JSON representation
Automatically generate a C++ header file including Cuda device-specific parameters
- Host: GitHub
- URL: https://github.com/bdhu/cuda_device_attribute_generation
- Owner: BDHU
- Created: 2020-06-30T05:20:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T23:50:39.000Z (over 4 years ago)
- Last Synced: 2024-11-07T23:42:07.550Z (2 months ago)
- Language: C++
- Size: 30.3 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CUDA_Device_Attribute_generation
Automatically generate a C++ header file including Cuda device-specific parameters## Getting Started
### Prerequisites
This project is tested on Linux, for Windows users, please refer to [cuda-samples](https://github.com/NVIDIA/cuda-samples) for additional instructions. Download and install the [CUDA Toolkit 11.0](https://developer.nvidia.com/cuda-downloads) for your corresponding platform.
For system requirements and installation instructions of cuda toolkit, please refer to the [Linux Installation Guide](http://docs.nvidia.com/cuda/cuda-installation-guide-linux/), and the [Windows Installation Guide](http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html).### Getting the tool
Using git clone the repository of CUDA_Device_Attribute_Generation using the command below.
```
git clone https://github.com/BDHU/CUDA_Device_Attribute_Generation.git
```
## How to BuildSimply run
```
make
```
It is only tested on Linux. To testing it on Windows, please refer to [cuda-samples](https://github.com/NVIDIA/cuda-samples) for guidances. The Makefile is modified to include header files in current directory instead of the original -I../../Common.## How to Use
Simple run the executable using:
```
./deviceQuery [full path of the file to be generated] [device ID]
```For example, you can run:
```
./deviceQuery ./ 0
```This will generate a C/C++ header file named "cuda_device_attr.h" in the current working directory of the script. For multi_GPU users, simply change the device ID to generate headers for target GPUs in the system.