Skip to content

Instantly share code, notes, and snippets.

@rubenfonseca
Created January 23, 2010 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubenfonseca/284691 to your computer and use it in GitHub Desktop.
Save rubenfonseca/284691 to your computer and use it in GitHub Desktop.
OpenCL MacRuby quick experiment
~/luser/MacRuby[master]% macruby -e 'puts OpenCL.devices.map(&:info)'
{:name=>"GeForce 9400 GT", :vendor=>"NVIDIA", :version=>"OpenCL 1.0 ", :type=>:gpu, :max_compute_units=>4, :max_work_item_dimensions=>140733193388035, :max_work_item_sizes=>[512, 512, 64], :max_work_group_size=>512, :max_clock_frequency=>1350, :address_bits=>32, :max_mem_alloc_size=>128, :global_mem_size=>512, :error_correction_support=>false, :local_mem_type=>"local", :local_mem_size=>16, :max_constant_buffer_size=>64, :queue_properties=>[:profiling_enable], :image_support=>true, :max_read_image_args=>128, :max_write_image_args=>8, :image2d_max_width=>8192, :image2d_max_height=>8192, :image3d_max_width=>2048, :image3d_max_height=>2048, :image3d_max_depth=>2048, :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 "}
{:name=>"GeForce 9400 GT", :vendor=>"NVIDIA", :version=>"OpenCL 1.0 ", :type=>:gpu, :max_compute_units=>4, :max_work_item_dimensions=>140733193388035, :max_work_item_sizes=>[512, 512, 64], :max_work_group_size=>512, :max_clock_frequency=>1350, :address_bits=>32, :max_mem_alloc_size=>128, :global_mem_size=>512, :error_correction_support=>false, :local_mem_type=>"local", :local_mem_size=>16, :max_constant_buffer_size=>64, :queue_properties=>[:profiling_enable], :image_support=>true, :max_read_image_args=>128, :max_write_image_args=>8, :image2d_max_width=>8192, :image2d_max_height=>8192, :image3d_max_width=>2048, :image3d_max_height=>2048, :image3d_max_depth=>2048, :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 "}
{:name=>"Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz", :vendor=>"Intel", :version=>"OpenCL 1.0 ", :type=>:cpu, :max_compute_units=>2, :max_work_item_dimensions=>140733193388035, :max_work_item_sizes=>[1, 1, 1], :max_work_group_size=>1, :max_clock_frequency=>3096, :address_bits=>64, :max_mem_alloc_size=>1024, :global_mem_size=>3072, :error_correction_support=>false, :local_mem_type=>"global", :local_mem_size=>16, :max_constant_buffer_size=>64, :queue_properties=>[:profiling_enable], :image_support=>true, :max_read_image_args=>128, :max_write_image_args=>8, :image2d_max_width=>8192, :image2d_max_height=>8192, :image3d_max_width=>2048, :image3d_max_height=>2048, :image3d_max_depth=>2048, :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 "}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment