Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

im not sure what im doing wrong #18

Open
techdrag0n opened this issue Sep 26, 2021 · 1 comment
Open

im not sure what im doing wrong #18

techdrag0n opened this issue Sep 26, 2021 · 1 comment

Comments

@techdrag0n
Copy link

I'm trying to get a sample working, Im using VS2019, Cuda 11.4,windows 10,
I created a new google test project
added cuda 11.4 build dependancy
added the include folders to C++ general
copied the code from samle_01_add/add.cu into test.cpp
still had a lot of errors showing
added

#include "device_launch_parameters.h"
#include <cuda_runtime_api.h>

just before #include <cuda.h>
all errors seem to be gone except one.
kernel_add << <(INSTANCES + 3) / 4, 128 >> > (report, gpuInstances, INSTANCES);
the single < is underlined and says expected an expression.

any suggestions are welcome, thank you

@techdrag0n
Copy link
Author

Is it an incompatibly problem or am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant