Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```