any body with any idea …
bibrak@biebo-laptop:/media/Academics/Academic/Research/HPC/CUDA/Iam new to CUDA/test/fence$ make
nvcc -run -I/home/bibrak/NVIDIA_CUDA_SDK/common/inc -I/usr/local/cuda/include -L/home/bibrak/NVIDIA_CUDA_SDK/lib -lcutil -L/usr/local/cuda/lib -lcudart -lcuda test.cu
test.cu(81): error: identifier “atomicInc” is undefined
1 error detected in the compilation of “/tmp/tmpxft_0000230e_00000000-4_test.cpp1.ii”.
by the way i am attaching the whole code as well
— my makefile
SDK_ROOT = /home/bibrak/NVIDIA_CUDA_SDK
CUDA_LIB_PATH = /usr/local/cuda/lib
INLCUDE = -I$(SDK_ROOT)/common/inc -I/usr/local/cuda/include
LIBS = -L$(SDK_ROOT)/lib -lcutil
LIBS += -L$(CUDA_LIB_PATH) -lcudart -lcuda
SRC_CU = test.cu
SRC_CXX =
all:
nvcc -run $(INLCUDE) $(LIBS) $(SRC_CU) $(SRC_CXX)
test.cu (5.48 KB)