Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dizys/nyu-gpu-lab-1
NYU GPU Lab 1: Implement a vector processor in CUDA.
https://github.com/dizys/nyu-gpu-lab-1
Last synced: 15 days ago
JSON representation
NYU GPU Lab 1: Implement a vector processor in CUDA.
- Host: GitHub
- URL: https://github.com/dizys/nyu-gpu-lab-1
- Owner: dizys
- License: mit
- Created: 2022-10-03T10:58:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-20T02:41:57.000Z (about 2 years ago)
- Last Synced: 2024-12-20T20:03:10.574Z (21 days ago)
- Language: Cuda
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nyu-gpu-lab-1
NYU GPU Lab 1: Implement a vector processor in CUDA.
## Build
Using make to build the project:
```bash
make
```An executable named `vectorprog` will be generated under the project root directory.
## Usage
```bash
./vectorprog
```## Change Number of Blocks & Threads
Open `vectorprog.cu` and change the `BLOCK_NUM` and `BLOCK_SIZE` macros.
For example, to use 4 blocks and 256 threads in a block, change the macros to:
```c++
#define BLOCK_NUM 4
#define BLOCK_SIZE 256
```