Skip to content
Browse files

CUDA: Update the C layout of CudaDeviceProp for CUDA 4.2

Signed-off-by: Shin Yee <shinyee@speedgocomputing.com>
  • Loading branch information...
1 parent 2eac1d2 commit 1e601dda0fcb661d8879a3c8a4715c7189ca9c77 @xman committed May 10, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 lib/cuda/runtime/ffi-cuda.rb
View
13 lib/cuda/runtime/ffi-cuda.rb
@@ -300,17 +300,30 @@ class CudaDeviceProp < FFI::PrettyStruct
:major, :int,
:minor, :int,
:texture_alignment, :size_t,
+ :texture_pitch_alignment, :size_t,
:device_overlap, :int, # Deprecated. Use :async_engine_count.
:multi_processor_count, :int,
:kernel_exec_timeout_enabled, :int,
:integrated, :int,
:can_map_host_memory, :int,
:compute_mode, :int,
:max_texture1d, :int,
+ :max_texture1d_linear, :int,
:max_texture2d, [:int, 2],
+ :max_texture2d_linear, [:int, 3],
+ :max_texture2d_gather, [:int, 2],
:max_texture3d, [:int, 3],
+ :max_texture_cubemap, :int,
:max_texture1d_layered, [:int, 2],
:max_texture2d_layered, [:int, 3],
+ :max_texture_cubemap_layered, [:int, 2],
+ :max_surface1d, :int,
+ :max_surface2d, [:int, 2],
+ :max_surface3d, [:int, 3],
+ :max_surface1d_layered, [:int, 2],
+ :max_surface2d_layered, [:int, 3],
+ :max_surface_cubemap, :int,
+ :max_surface_cubemap_layered, [:int, 2],
:surface_alignment, :size_t,
:concurrent_kernels, :int,
:ecc_enabled, :int,

0 comments on commit 1e601dd

Please sign in to comment.
Something went wrong with that request. Please try again.