I am not a computer scientist, more of a maths/algorithms man, but I do have some working knowledge of HPC systems, but not great.
My current problem is this:
to use cutil I am currently developing code in a directory NVIDIA_CUDA_SDK2.0/projects/ShockTube. This is because I can’t locate the cutil library in order to refer to it in a simple nvcc compile command in my own makefile, but I am using the common.mk makefile and an amended makefile from one of the other example projects so that I can compile the source code and include cutil.
But when running the exe I am told it is run on the host (device 0) NOT a GPU (devices 1 and 2).
So I added cudaSetDevice(1) as the first statement (after var declarations) but was told the same thing; run on device 0.
- where is the cutil library?
- how do I refer to it in a simple nvcc call (-L -l options)?
- why does cudaSetDevice seem not to work?
All this is so that I can use cutil on the C870 in order to find out what the errors are (if any) from running my CFD code on the GPU.