Ive got a big problem, cause my MS Visual Studio 2010 dont recognise __syncthreads();
Here’s a screenshot from my PC, keep in mind that ive opened mine first program on the list,
it doesent matter what does it do, its completely relevant. I just put a standart __syncthreads();
to show You all whats seems to be a problem. In everyone case ive go same result, its reports me,
that __syncthreads(); is undefined.
Im using MS Visual Studio Ultimate 2010, with Paralel Nsight 2.1, and ofcourse CUDA Tollkit 4.1.
All other things, commands, includes seems to work, except this one. I cant do much without thread synchronistaion,
and this is really annoying. Ive already tried to manualy include aditional path of includes from CUDA Toolkit 4.1 directory,
but still got the same problem. Please, help me.
@tera yes you are right, cuda_runtime_api.h is in fact unnesesary while cuda.h is included, the other header is helping to read the correct device parameters, while using PC with different graphic cards.
@txbob is right. I am using only #include “cuda_runtime.h” #include “device_launch_parameters.h”
and it still compiles although the Intellisense says it’s wrong.
If you’re going to work this hard to get rid of the red underlines that you want to define CUDACC, I would suggest wrapping it in an INTELLISENSE ifdef as discussed here: