title: How can I get number of Cores in cuda device?
body: <p>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.</p>
  
  <p>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?</p>
  
  <ul>
  <li>cuda 7.0</li>
  <li>program language C</li>
  <li>visual studio 2013</li>
  </ul>
  
  <p>Code:</p>
  
  <pre><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;
  }
  </code></pre>