CC=gcc
NVCC=nvcc
CCFLAGS=
-NVCCFLAGS=
+NVCCFLAGS= -DCUDA_FORCE_API_VERSION=3010
#other flags: -deviceemu -arch=sm_20 --ptxas-options=-v
#These are useful when debugging sometimes.
LINKFLAGS=-lcuda -lm
printf("*****************\n");
parseInput(argc,argv);
-
+
cuInit(0);
printf("Using GPU #%d\n",deviceNum);
if(cudaSetDevice(deviceNum) != cudaSuccess){
//Figure out how much fits into memory
unint memFree, memTot;
+ //size_t memFree, memTot;
cuMemGetInfo(&memFree, &memTot);
memFree = (unint)(((float)memFree)*MEM_USABLE);
/* mem needed per rep: