I am trying to include the cutil.h file.
So I tried the following make file:
BINDIR = ./ # places compiled binary in current directory
EXECUTABLE := test
CCFILES := main.c
CUFILES := cudaFunctions.cu
# an ugly part - setting rootdir for CUDA SDK makefile
# look for common.mk - I don't know where SDK installs it on Linux -
# and change ROOTDIR accordingly
ROOTDIR := /home/dan/NVIDIA_GPU_Computing_SDK/C/common
include $(ROOTDIR)/../common/common.mk
However I get two types of errors when I turn to run it. The first one being permissions:
mkdir: cannot create directory `/release': Permission denied
So I went under su and tried it again and got:
make: *** No rule to make target obj/x86_64/release/cudaFunctions.cu.o', needed by
./'. Stop.
The main.c file was originally a main.cu file. I changed it to follow the example but still same error.
Any ideas why I'm getting this error?