just wrote a lil tool that prints out various opencl infos/features of your supported opencl devices.
see it as a way of checking if your gpu was correctly detected as opencl-capable.
obviously this requires snow leopard
binary and source are included in the attachment.
update 2011/02/25 (still version 0.2):
* still working in 10.7 (added output below)
* nvidia h/w seems to be restricted to opencl 1.0, cpu works with opencl 1.1
update 2010/06/16 (still version 0.2):
* the usual: version 0.2 still works fine with 10.6.4 and no apparent changes
update 2010/03/29 (still version 0.2):
* note: version 0.2 works fine with 10.6.3
* no apparent changes in 10.6.3 (besides some bug fixes)
update 2009/11/10 (still version 0.2):
* note: version 0.2 works fine with 10.6.2
* change in 10.6.2: "# of compute units" on all current nvidia cards is now displayed as "# of cores / 8" which actually reflects the hardware in a better way, since 1 compute unit/sp cluster/multiprocessor == 8 cores.
update 2009/08/26 (version 0.2):
* fixed a dumb bug if a device only supports one extension (-> amd/ati devices should at least print out cl_APPLE_gl_sharing now)
* seperate device lists for opencl-only and shared opencl+opengl contexts
* better cpu/host memory detection
* works with 10A432
* updated cl.hpp
update 2009/06/30:
* prints out platform info
* works with 10A394
* updated cl.hpp
download:
oclinfo_0.2.zip 78.44K
6133 downloadssample output:
mbp/late 2008 (on 10.7):
$ ./oclinfo 1 OpenCL platform found! [Platform 0] Name: Apple Vendor: Apple Version: OpenCL 1.1 (Feb 16 2011 17:04:10) Profile: FULL_PROFILE Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event [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_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics [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_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics [Device 2] Name: Intel® Core2 Duo CPU P8600 @ 2.40GHz Vendor: Intel Type: CPU Device Version: OpenCL 1.1 Driver Version: 1.1 Compute Units: 2 Work Group Size: 1024 Clock: 2400 MHz Global Memory (Total): 4096 MB Global Memory (Host): 4096 MB Global Memory (PCIe): 0 MB Local Memory: 32 KB Cache Size: 0.0625 KB Cache Line Size: 3145728 Bytes Available: Yes Double-Precision: Yes Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event 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_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_APPLE_fp64_basic_ops cl_APPLE_fixed_alpha_channel_orders cl_APPLE_biased_fixed_point_image_formats [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_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics [Device 1] Name: Intel® Core2 Duo CPU P8600 @ 2.40GHz Vendor: Intel Type: CPU Device Version: OpenCL 1.1 Driver Version: 1.1 Compute Units: 2 Work Group Size: 1024 Clock: 2400 MHz Global Memory (Total): 4096 MB Global Memory (Host): 4096 MB Global Memory (PCIe): 0 MB Local Memory: 32 KB Cache Size: 0.0625 KB Cache Line Size: 3145728 Bytes Available: Yes Double-Precision: Yes Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event 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_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_APPLE_fp64_basic_ops cl_APPLE_fixed_alpha_channel_orders cl_APPLE_biased_fixed_point_image_formatsmbp/late 2008 (on 10.6):
$ ./oclinfo -version OpenCL Info 0.2 (Aug 26 2009 20:34:23) 1 OpenCL platform found! [Platform 0] Name: Apple Vendor: Apple Version: OpenCL 1.0 (Feb 10 2010 23:46:58) 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® Core2 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® Core2 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_ContextLoggingFunctionshackintosh:
./oclinfo -version OpenCL Info 0.2 (Aug 26 2009 20:34:23) 1 OpenCL platform found! [Platform 0] Name: Apple Vendor: Apple Version: OpenCL 1.0 (Feb 10 2010 23:46:58) Profile: FULL_PROFILE [OpenCL-only Context] 2 OpenCL devices found! [Device 0] Name: GeForce 8800 GTX Vendor: NVIDIA Type: GPU Device Version: OpenCL 1.0 Driver Version: CLH 1.0 Compute Units: 16 Work Group Size: 512 Clock: 1350 MHz Global Memory: 768 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® Core2 Quad CPU Q9450 @ 2.66GHz Vendor: Intel Type: CPU Device Version: OpenCL 1.0 Driver Version: 1.0 Compute Units: 4 Work Group Size: 1 Clock: 3200 MHz Global Memory (Total): 6144 MB Global Memory (Host): 4608 MB Global Memory (PCIe): 1536 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 8800 GTX Vendor: NVIDIA Type: GPU Device Version: OpenCL 1.0 Driver Version: CLH 1.0 Compute Units: 16 Work Group Size: 512 Clock: 1350 MHz Global Memory: 768 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® Core2 Quad CPU Q9450 @ 2.66GHz Vendor: Intel Type: CPU Device Version: OpenCL 1.0 Driver Version: 1.0 Compute Units: 4 Work Group Size: 1 Clock: 3200 MHz Global Memory (Total): 6144 MB Global Memory (Host): 4608 MB Global Memory (PCIe): 1536 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
oclinfo.zip 61.99K
847 downloads


Sign In
Create Account










