10.6.2, OpenCL and Nvidia 9400M

Discussion in 'macOS' started by royger, Nov 10, 2009.

  1. royger macrumors newbie

    Joined:
    Jan 31, 2009
    #1
    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?
     
  2. J the Ninja macrumors 68000

    Joined:
    Jul 14, 2008
    #2
    *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
    
     

    Attached Files:

  3. iBookG4user macrumors 604

    iBookG4user

    Joined:
    Jun 27, 2006
    Location:
    Seattle, WA
    #3
    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
    
     
  4. royger thread starter macrumors newbie

    Joined:
    Jan 31, 2009
    #4
    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?
     
  5. darkwing macrumors 65816

    Joined:
    Jan 6, 2004
    #5
    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.
     

Share This Page