This may be a very introductory question, but I can’t seem to find a solution online.
I have a C project that I’m looking to speed up using CUDA. The problem seems to be that the compiler does not understand the <<< >>> brackets for the CUDA kernel call with in the .CU file. I’m not sure if this is a C vs C++ issue, but I get a “expression must have integral type” at the kernel call. Converting this project to C++ is not feasible as the portion I am working on is a small part of a much larger (and C) project. I am not familiar with C, as opposed to using C++.
What I have done so far
- Updated VS2013 Professional to support CUDA 7.5
- Added CUDA 7.5 to the project dependencies
- Linked the cudart.lib in the C/C++ linker
Doing simple things within the .C and .CU files like allocating and freeing GPU memory works. Defining host/device function works. It’s the calling of them such as,
that causes the build to fail.