pub(super) struct GpuTlbLatency {
    module: Module,
    _context: Context,
    device_id: u32,
    template: DataPoint,
    nvml: NVML,
}

Fields

module: Module_context: Contextdevice_id: u32template: DataPointnvml: NVML

Implementations

Measures the overhead of get_clock() in cycles

get_clock() is implemented as a native special register on each architecture. See the documentation in the CUDA module for details.

Initializes a slice with strides

After initialization, each element of the slice contains the position of its successor. For example, element 4 points to element 8 if the stride is 4 (as measured in size_of::<Position>()).

If the slice is being resized without changing the stride, then old_len may be set to specify the previous slice length to reduce initialization time.

Flushes the CPU’s TLB

The flush is atomic and system-wide. The flush also includes the IOTLB.

For a high-level description, refer to the book Gorman “Understanding the Linux Virtual Memory Manager” p. 44, Table 3.2“

For the code, see the Linux kernel: https://code.woboq.org/linux/linux/mm/hugetlb.c.html#hugetlb_change_protection

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.