The question is already present but i m having the same problems and the answer doesn't resolve it
Cuda __syncthreads undefined. Without it-> random results
When i use __syncthreads() intellisense says it undefined. Is there another was to synchronize threads ?