- GPU (obvious)
- nvcc compiler
- C++/C compiler
#include <iostream>
#include <vector_cuda.cu>
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();
}
vector: (3, 5, 7)
vector: (-1, -1, -1)