Skip to main content

cudaDeviceGetAttribute

Function cudaDeviceGetAttribute 

Source
pub unsafe extern "C" fn cudaDeviceGetAttribute(
    value: *mut c_int,
    attr: cudaDeviceAttr,
    device: c_int,
) -> cudaError_t
Expand description

Returns information about the device.

Returns in *value the integer value of the attribute attr on device device.

ยงParameters

  • value: Returned device attribute value.
  • attr: Device attribute to query.
  • device: Device number to query.