I am looking for a function that counts the number of cells of my cuda device. I know that each microprocessor has specific cores, and my cuda device has 2 microprocessors.
I searched a lot to find a property function that counts the number of cores per microprocessor, but I could not. I use the code below, but do I still need the number of cores?
- cuda 7.0
- C programming language
- visual studio 2013
the code:
void printDevProp(cudaDeviceProp devProp) { printf("%s\n", devProp.name); printf("Major revision number: %d\n", devProp.major); printf("Minor revision number: %d\n", devProp.minor); printf("Total global memory: %u", devProp.totalGlobalMem); printf(" bytes\n"); printf("Number of multiprocessors: %d\n", devProp.multiProcessorCount); printf("Total amount of shared memory per block: %u\n",devProp.sharedMemPerBlock); printf("Total registers per block: %d\n", devProp.regsPerBlock); printf("Warp size: %d\n", devProp.warpSize); printf("Maximum memory pitch: %u\n", devProp.memPitch); printf("Total amount of constant memory: %u\n", devProp.totalConstMem); return; }
c cuda nvidia
Alsphere
source share