Mac book pro 2.6, only one device shown?

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;



	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");


				printf("There are %d devices supporting CUDA\n",deviceCount);

//		}



Go to the system preferences, energy saver and set graphics to: “higher performance”. Otherwise, the second video card is disabled/off.
You will have to log out…

Great, that worked, thanks

Great, that worked, thanks