Enum rustacuda::function::FunctionAttribute[][src]

#[repr(u32)]
pub enum FunctionAttribute {
    MaxThreadsPerBlock,
    SharedMemorySizeBytes,
    ConstSizeBytes,
    LocalSizeBytes,
    NumRegisters,
    PtxVersion,
    BinaryVersion,
    CacheModeCa,
    // some variants omitted
}
Expand description

All supported function attributes for Function::get_attribute

Variants

MaxThreadsPerBlock

The maximum number of threads per block, beyond which a launch would fail. This depends on both the function and the device.

SharedMemorySizeBytes

The size in bytes of the statically-allocated shared memory required by this function.

ConstSizeBytes

The size in bytes of the constant memory required by this function

LocalSizeBytes

The size in bytes of local memory used by each thread of this function

NumRegisters

The number of registers used by each thread of this function

PtxVersion

The PTX virtual architecture version for which the function was compiled. This value is the major PTX version * 10 + the minor PTX version, so version 1.3 would return the value 13.

BinaryVersion

The binary architecture version for which the function was compiled. Encoded the same way as PtxVersion.

CacheModeCa

The attribute to indicate whether the function has been compiled with user specified option “-Xptxas –dlcm=ca” set.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.