Próbuję skonfigurować VS'a do pracy z Cuda wg. instrukcji z pod linku:
http://blog.norture.com/2012/10/gpu-parallel-programming-in-vs2012-with-nvidia-cuda/#ixzz2DrXA9Ic3
Niestety po wykonaniu wszystkich kroków nadal nie mogę skompilować projektu. :
1>------ Build started: Project: ConsoleApplication7, Configuration: Debug Win32 ------
1> Source.cpp
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(5): error C2144: syntax error : 'void' should be preceded by ';'
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(5): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(7): error C2065: 'blockIdx' : undeclared identifier
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(7): error C2228: left of '.x' must have class/struct/union
1> type isunknown-type
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(7): error C2065: 'blockDim' : undeclared identifier
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(7): error C2065: 'threadIdx' : undeclared identifier
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(18): error C3861: 'cudaMalloc': identifier not found
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(19): error C3861: 'cudaMalloc': identifier not found
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(26): error C2065: 'cudaMemcpyHostToDevice' : undeclared identifier
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(26): error C3861: 'cudaMemcpy': identifier not found
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(27): error C2065: 'cudaMemcpyHostToDevice' : undeclared identifier
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(27): error C3861: 'cudaMemcpy': identifier not found
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(30): error C2059: syntax error : '<'
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(32): error C2065: 'cudaMemcpyDeviceToHost' : undeclared identifier
1>b:\projects\c++\consoleapplication7\consoleapplication7\source.cpp(32): error C3861: 'cudaMemcpy': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Będę wdzięczny za wszelkie sugestie pozwalające naprawić ten problem.
Z góry dzięki!