Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sahil-rajwar-2004/vector-cuda
vector calculation with GPU acceleration using CUDA
https://github.com/sahil-rajwar-2004/vector-cuda
c cpp11 cuda cuda-kernels cuda-programming nvcc
Last synced: 3 months ago
JSON representation
vector calculation with GPU acceleration using CUDA
- Host: GitHub
- URL: https://github.com/sahil-rajwar-2004/vector-cuda
- Owner: Sahil-Rajwar-2004
- Created: 2024-06-23T20:07:17.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-06-24T15:10:55.000Z (8 months ago)
- Last Synced: 2024-10-12T16:41:01.113Z (4 months ago)
- Topics: c, cpp11, cuda, cuda-kernels, cuda-programming, nvcc
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vector calculation in C++ with GPU acceleration using CUDA
## Requirements
- GPU (obvious)
- nvcc compiler
- C++/C compiler```cu
#include
#include
using namespace std;int main(){
Vector vec1(1,2,3);
Vector vec2(2,3,4);Vector add = vec1.add(vec2);
Vector sub = vec1.sub(vec2);add.print();
sub.print();
}
``````bash
vector: (3, 5, 7)
vector: (-1, -1, -1)
```