I’m using a new macbook pro which has 2 graphics cards, an NVIDIA GeForce 9400M + 9600M GT with 256MB so why when I run the following code does it only report 1 device present?
#include <stdio.h>
int main()
{
int deviceCount;
cudaGetDeviceCount(&deviceCount);
for (int device = 0; device < deviceCount; ++device) {
cudaDeviceProp deviceProp;
cudaGetDeviceProperties(&deviceProp, device);
// if (dev == 0) {
if (deviceProp.major == 9999 && deviceProp.minor == 9999)
printf("There is no device supporting CUDA.\n");
else if (deviceCount == 1)
printf("There is 1 device supporting CUDA\n");
else
printf("There are %d devices supporting CUDA\n",deviceCount);
// }
}
}