lib/opencl_ruby_ffi/khr/spir.rb
# Return an Array of String corresponding to the SPIR versions supported by the device
Return an Array of String corresponding to the SPIR versions supported by the device
Return an Array of String corresponding to the SPIR versions supported by the device
def spir_versions
        spir_versions_size = MemoryPointer::new( :size_t )
        error = OpenCL.clGetDeviceInfo( self, SPIR_VERSIONS, 0, nil, spir_versions_size)
        error_check(error)
        vers = MemoryPointer::new( spir_versions_size.read_size_t )
        error = OpenCL.clGetDeviceInfo( self, SPIR_VERSIONS, spir_versions_size.read_size_t, vers, nil)
        error_check(error)
        vers_string = vers.read_string
        return vers_string.split(" ")
      end
def spir_versions spir_versions_size = MemoryPointer :: new ( :size_t ) error = OpenCL . clGetDeviceInfo ( self , SPIR_VERSIONS , 0 , nil , spir_versions_size ) error_check ( error ) vers = MemoryPointer :: new ( spir_versions_size . read_size_t ) error = OpenCL . clGetDeviceInfo ( self , SPIR_VERSIONS , spir_versions_size . read_size_t , vers , nil ) error_check ( error ) vers_string = vers . read_string return vers_string . split ( " " ) end
Return an Array of String corresponding to the SPIR versions supported by the device
Return an Array of String corresponding to the SPIR versions supported by the device