Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

royger

macrumors newbie
Original poster
Jan 31, 2009
5
0
Hello,

I've been programming in OpenCL for some time now, and after I applied the 10.6.2 update today I've realized that now my Nvidia 9400M only shows as having 2 Compute Units, when it reported as 16 in the past. Has anyone experimented the same issue?
 
*checks*

Yep. Same thing. 9600M GT shows the same pattern. Apparently, 1 compute unit = 8 shaders now, instead of 1 like before. Probably something changed in the drivers. Anyone with a different Nvidia card want to chime in? I attached a little tool for checking, you should be able to just double click it to run it.

Code:
1 OpenCL platform found!

[Platform 0]
	Name: 		Apple
	Vendor: 	Apple
	Version: 	OpenCL 1.0 (Oct 16 2009 04:12:08)
	Profile: 	FULL_PROFILE


[OpenCL-only Context]
3 OpenCL devices found!

[Device 0]
	Name: 			GeForce 9600M GT
	Vendor: 		NVIDIA
	Type: 			GPU 
	Device Version: 	OpenCL 1.0 
	Driver Version: 	CLH 1.0
	Compute Units: 		4
	Work Group Size: 	512
	Clock: 			1250 MHz
	Global Memory: 		256 MB
	Local Memory: 		16 KB
	Cache Size: 		0 KB
	Cache Line Size: 	0 Bytes
	Available: 		Yes
	Double-Precision: 	No
	Extensions: 
				cl_khr_byte_addressable_store
				cl_khr_global_int32_base_atomics
				cl_khr_global_int32_extended_atomics
				cl_APPLE_gl_sharing
				cl_APPLE_SetMemObjectDestructor
				cl_APPLE_ContextLoggingFunctions

[Device 1]
	Name: 			GeForce 9400M
	Vendor: 		NVIDIA
	Type: 			GPU 
	Device Version: 	OpenCL 1.0 
	Driver Version: 	CLH 1.0
	Compute Units: 		2
	Work Group Size: 	512
	Clock: 			1100 MHz
	Global Memory: 		256 MB
	Local Memory: 		16 KB
	Cache Size: 		0 KB
	Cache Line Size: 	0 Bytes
	Available: 		Yes
	Double-Precision: 	No
	Extensions: 
				cl_khr_byte_addressable_store
				cl_khr_global_int32_base_atomics
				cl_khr_global_int32_extended_atomics
				cl_APPLE_gl_sharing
				cl_APPLE_SetMemObjectDestructor
				cl_APPLE_ContextLoggingFunctions

[Device 2]
	Name: 			Intel(R) Core(TM)2 Duo CPU     P8600  @ 2.40GHz
	Vendor: 		Intel
	Type: 			CPU 
	Device Version: 	OpenCL 1.0 
	Driver Version: 	1.0
	Compute Units: 		2
	Work Group Size: 	1
	Clock: 			2400 MHz
	Global Memory (Total): 	4096 MB
	Global Memory (Host): 	3072 MB
	Global Memory (PCIe): 	1024 MB
	Local Memory: 		16 KB
	Cache Size: 		3072 KB
	Cache Line Size: 	64 Bytes
	Available: 		Yes
	Double-Precision: 	Yes
	Extensions: 
				cl_khr_fp64
				cl_khr_global_int32_base_atomics
				cl_khr_global_int32_extended_atomics
				cl_khr_local_int32_base_atomics
				cl_khr_local_int32_extended_atomics
				cl_khr_byte_addressable_store
				cl_APPLE_gl_sharing
				cl_APPLE_SetMemObjectDestructor
				cl_APPLE_ContextLoggingFunctions

[shared OpenCL+OpenGL Context]
2 OpenCL devices found!

[Device 0]
	Name: 			GeForce 9600M GT
	Vendor: 		NVIDIA
	Type: 			GPU 
	Device Version: 	OpenCL 1.0 
	Driver Version: 	CLH 1.0
	Compute Units: 		4
	Work Group Size: 	512
	Clock: 			1250 MHz
	Global Memory: 		256 MB
	Local Memory: 		16 KB
	Cache Size: 		0 KB
	Cache Line Size: 	0 Bytes
	Available: 		Yes
	Double-Precision: 	No
	Extensions: 
				cl_khr_byte_addressable_store
				cl_khr_global_int32_base_atomics
				cl_khr_global_int32_extended_atomics
				cl_APPLE_gl_sharing
				cl_APPLE_SetMemObjectDestructor
				cl_APPLE_ContextLoggingFunctions

[Device 1]
	Name: 			Intel(R) Core(TM)2 Duo CPU     P8600  @ 2.40GHz
	Vendor: 		Intel
	Type: 			CPU 
	Device Version: 	OpenCL 1.0 
	Driver Version: 	1.0
	Compute Units: 		2
	Work Group Size: 	1
	Clock: 			2400 MHz
	Global Memory (Total): 	4096 MB
	Global Memory (Host): 	3072 MB
	Global Memory (PCIe): 	1024 MB
	Local Memory: 		16 KB
	Cache Size: 		3072 KB
	Cache Line Size: 	64 Bytes
	Available: 		Yes
	Double-Precision: 	Yes
	Extensions: 
				cl_khr_fp64
				cl_khr_global_int32_base_atomics
				cl_khr_global_int32_extended_atomics
				cl_khr_local_int32_base_atomics
				cl_khr_local_int32_extended_atomics
				cl_khr_byte_addressable_store
				cl_APPLE_gl_sharing
				cl_APPLE_SetMemObjectDestructor
				cl_APPLE_ContextLoggingFunctions
 

Attachments

  • oclinfo.zip
    26 KB · Views: 247
It does appear to be the case for my MacBook Air with 9400M as well.

Code:
1 OpenCL platform found!

[Platform 0]
	Name: 		Apple
	Vendor: 	Apple
	Version: 	OpenCL 1.0 (Oct 16 2009 04:12:08)
	Profile: 	FULL_PROFILE


[OpenCL-only Context]
2 OpenCL devices found!

[Device 0]
	Name: 			GeForce 9400M
	Vendor: 		NVIDIA
	Type: 			GPU 
	Device Version: 	OpenCL 1.0 
	Driver Version: 	CLH 1.0
	Compute Units: 		2
	Work Group Size: 	512
	Clock: 			800 MHz
	Global Memory: 		256 MB
	Local Memory: 		16 KB
	Cache Size: 		0 KB
	Cache Line Size: 	0 Bytes
	Available: 		Yes
	Double-Precision: 	No
	Extensions: 
				cl_khr_byte_addressable_store
				cl_khr_global_int32_base_atomics
				cl_khr_global_int32_extended_atomics
				cl_APPLE_gl_sharing
				cl_APPLE_SetMemObjectDestructor
				cl_APPLE_ContextLoggingFunctions

[Device 1]
	Name: 			Intel(R) Core(TM)2 Duo CPU     L9400  @ 1.86GHz
	Vendor: 		Intel
	Type: 			CPU 
	Device Version: 	OpenCL 1.0 
	Driver Version: 	1.0
	Compute Units: 		2
	Work Group Size: 	1
	Clock: 			1860 MHz
	Global Memory (Total): 	2048 MB
	Global Memory (Host): 	1536 MB
	Global Memory (PCIe): 	512 MB
	Local Memory: 		16 KB
	Cache Size: 		6144 KB
	Cache Line Size: 	64 Bytes
	Available: 		Yes
	Double-Precision: 	Yes
	Extensions: 
				cl_khr_fp64
				cl_khr_global_int32_base_atomics
				cl_khr_global_int32_extended_atomics
				cl_khr_local_int32_base_atomics
				cl_khr_local_int32_extended_atomics
				cl_khr_byte_addressable_store
				cl_APPLE_gl_sharing
				cl_APPLE_SetMemObjectDestructor
				cl_APPLE_ContextLoggingFunctions

[shared OpenCL+OpenGL Context]
2 OpenCL devices found!

[Device 0]
	Name: 			GeForce 9400M
	Vendor: 		NVIDIA
	Type: 			GPU 
	Device Version: 	OpenCL 1.0 
	Driver Version: 	CLH 1.0
	Compute Units: 		2
	Work Group Size: 	512
	Clock: 			800 MHz
	Global Memory: 		256 MB
	Local Memory: 		16 KB
	Cache Size: 		0 KB
	Cache Line Size: 	0 Bytes
	Available: 		Yes
	Double-Precision: 	No
	Extensions: 
				cl_khr_byte_addressable_store
				cl_khr_global_int32_base_atomics
				cl_khr_global_int32_extended_atomics
				cl_APPLE_gl_sharing
				cl_APPLE_SetMemObjectDestructor
				cl_APPLE_ContextLoggingFunctions

[Device 1]
	Name: 			Intel(R) Core(TM)2 Duo CPU     L9400  @ 1.86GHz
	Vendor: 		Intel
	Type: 			CPU 
	Device Version: 	OpenCL 1.0 
	Driver Version: 	1.0
	Compute Units: 		2
	Work Group Size: 	1
	Clock: 			1860 MHz
	Global Memory (Total): 	2048 MB
	Global Memory (Host): 	1536 MB
	Global Memory (PCIe): 	512 MB
	Local Memory: 		16 KB
	Cache Size: 		6144 KB
	Cache Line Size: 	64 Bytes
	Available: 		Yes
	Double-Precision: 	Yes
	Extensions: 
				cl_khr_fp64
				cl_khr_global_int32_base_atomics
				cl_khr_global_int32_extended_atomics
				cl_khr_local_int32_base_atomics
				cl_khr_local_int32_extended_atomics
				cl_khr_byte_addressable_store
				cl_APPLE_gl_sharing
				cl_APPLE_SetMemObjectDestructor
				cl_APPLE_ContextLoggingFunctions
 
Apart from the fact that now my card profile shows different, my OpenCL programs sometime work and sometimes don't, it's really strange and I think it's relate to this update. Anyone else experiencing problems with their OpenCL code?
 
I haven't used OpenCL yet. Trying to juggle my time between a Java (ick) project for the imperial federal government and an iphone game.

I don't show any opencl devices. It says that there's 1, but device 0 and 1 are both "Intel Core 2 CPU"

Guess it isn't supported on a late 2006 MBP.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.