Hey, I got an example code, something like this:
void addWithCuda(int* arr1, int *arr2, int size) {
addKernal << <size, 1 >> > (arr1, arr2, size);
}
Now I want to build a unit test to my code. But the unit test project is not a cuda project so I get this error:
How can I configure the unit test project with cuda?
those are the properties of my project:
And those are the properties of my unit test:
As you can see, I don’t have the cuda properties in the unit test.
how can I fix it?