I am looking for a function that count number of core of my cuda device. I know each microprocessor have specific cores, and my cuda device has 2 microprocessors.
I searched a lot to find a property function that count number of cores per microprocessor but I couldn't. I use the code below but I still need number of cores?
- cuda 7.0
- program language C
- visual studio 2013
Code:
void printDevProp(cudaDeviceProp devProp)
{ printf("%s
", devProp.name);
printf("Major revision number: %d
", devProp.major);
printf("Minor revision number: %d
", devProp.minor);
printf("Total global memory: %u", devProp.totalGlobalMem);
printf(" bytes
");
printf("Number of multiprocessors: %d
", devProp.multiProcessorCount);
printf("Total amount of shared memory per block: %u
",devProp.sharedMemPerBlock);
printf("Total registers per block: %d
", devProp.regsPerBlock);
printf("Warp size: %d
", devProp.warpSize);
printf("Maximum memory pitch: %u
", devProp.memPitch);
printf("Total amount of constant memory: %u
", devProp.totalConstMem);
return;
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…