Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weiyu0824/cuda-programs
Learn cuda programming
https://github.com/weiyu0824/cuda-programs
Last synced: 11 days ago
JSON representation
Learn cuda programming
- Host: GitHub
- URL: https://github.com/weiyu0824/cuda-programs
- Owner: weiyu0824
- Created: 2024-06-07T22:55:42.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-23T19:19:10.000Z (5 months ago)
- Last Synced: 2024-06-24T04:08:09.274Z (5 months ago)
- Language: Cuda
- Size: 1.47 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cuda-programs
## Prerequistes
1. Install Nvidia Driver
2. Install Nvcc## Run
Take mp1 for example.
```bash
cd mp1_vector_add/
bash compile.sh
bash bench.sh # check correctness & time for each testcases.
```Example outout:
```
-------BENCH---------
Case 0
[o] Data size:64, Time spent:39msCase 1
[o] Data size:128, Time spent:45msCase 2
[o] Data size:56, Time spent:40msCase 3
[o] Data size:100, Time spent:39msCase 4
[o] Data size:256, Time spent:45msCase 5
[o] Data size:130, Time spent:40msCase 6
[o] Data size:90, Time spent:48msCase 7
[o] Data size:512, Time spent:42msCase 8
[o] Data size:90, Time spent:39msCase 9
[o] Data size:123, Time spent:45ms
```