MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::cuda::DeviceInfo Struct Reference
Inheritance diagram for meshlib::cuda::DeviceInfo:

Public Member Functions

auto assign_from_another (_other:&meshlib::cuda::DeviceInfo) -> &mut meshlib::cuda::DeviceInfo
auto fit_for_computations () const -> bool
auto driver_version () const -> &core::ffi::c_int
auto driver_version_mut () -> &mut core::ffi::c_int
void set_driver_version (value:core::ffi::c_int)
auto runtime_version () const -> &core::ffi::c_int
auto runtime_version_mut () -> &mut core::ffi::c_int
void set_runtime_version (value:core::ffi::c_int)
auto compute_major () const -> &core::ffi::c_int
auto compute_major_mut () -> &mut core::ffi::c_int
void set_compute_major (value:core::ffi::c_int)
auto compute_minor () const -> &core::ffi::c_int
auto compute_minor_mut () -> &mut core::ffi::c_int
void set_compute_minor (value:core::ffi::c_int)
auto total_global_mem () const -> &usize
auto total_global_mem_mut () -> &mut usize
void set_total_global_mem (value:usize)
auto name () const -> &meshlib::std_string
auto name_mut () -> &mut meshlib::std_string
void set_name (value:&str)

Static Public Member Functions

static auto new () -> meshlib::Owned< meshlib::cuda::DeviceInfo >
static auto construct_from (driverVersion:core::ffi::c_int, runtimeVersion:core::ffi::c_int, computeMajor:core::ffi::c_int, computeMinor:core::ffi::c_int, totalGlobalMem:usize, name:&str) -> meshlib::Owned< meshlib::cuda::DeviceInfo >
static auto construct_from_another (_other:&meshlib::cuda::DeviceInfo) -> meshlib::Owned< meshlib::cuda::DeviceInfo >
Static Public Member Functions inherited from meshlib::CppClass
static void destroy (ptr:*mut Self)
Static Public Member Functions inherited from meshlib::CppCopy
static auto copy (ptr:*const Self) -> *mut Self

Detailed Description

Generated from class MR::Cuda::DeviceInfo.

Generated from class MR::Cuda::DeviceInfo. Heap-allocated instances are held in Owned<DeviceInfo>.

Member Function Documentation

◆ assign_from_another()

auto meshlib::cuda::DeviceInfo::assign_from_another ( _other:&meshlib::cuda::DeviceInfo ) -> &mut meshlib::cuda::DeviceInfo

Generated from method MR::Cuda::DeviceInfo::operator=.

Calls MR_Cuda_DeviceInfo_AssignFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in this object.

◆ compute_major()

auto meshlib::cuda::DeviceInfo::compute_major ( ) const -> &core::ffi::c_int

compute capability major version Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named computeMajor.

Calls MR_Cuda_DeviceInfo_Get_computeMajor(). The reference to this object might be preserved as the return value.

◆ compute_major_mut()

auto meshlib::cuda::DeviceInfo::compute_major_mut ( ) -> &mut core::ffi::c_int

compute capability major version Returns a mutable pointer to a member variable of class MR::Cuda::DeviceInfo named computeMajor.

Calls MR_Cuda_DeviceInfo_GetMutable_computeMajor(). The reference to this object might be preserved as the return value.

◆ compute_minor()

auto meshlib::cuda::DeviceInfo::compute_minor ( ) const -> &core::ffi::c_int

compute capability minor version Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named computeMinor.

Calls MR_Cuda_DeviceInfo_Get_computeMinor(). The reference to this object might be preserved as the return value.

◆ compute_minor_mut()

auto meshlib::cuda::DeviceInfo::compute_minor_mut ( ) -> &mut core::ffi::c_int

compute capability minor version Returns a mutable pointer to a member variable of class MR::Cuda::DeviceInfo named computeMinor.

Calls MR_Cuda_DeviceInfo_GetMutable_computeMinor(). The reference to this object might be preserved as the return value.

◆ construct_from()

auto meshlib::cuda::DeviceInfo::construct_from ( driverVersion:core::ffi::c_int ,
runtimeVersion:core::ffi::c_int ,
computeMajor:core::ffi::c_int ,
computeMinor:core::ffi::c_int ,
totalGlobalMem:usize ,
name:& str ) -> meshlib::Owned< meshlib::cuda::DeviceInfo >
static

Constructs MR::Cuda::DeviceInfo elementwise.

Calls MR_Cuda_DeviceInfo_ConstructFrom(). The reference to the parameter totalGlobalMem might be preserved in the constructed object. The reference to the parameter name might be preserved in the constructed object.

◆ construct_from_another()

auto meshlib::cuda::DeviceInfo::construct_from_another ( _other:&meshlib::cuda::DeviceInfo ) -> meshlib::Owned< meshlib::cuda::DeviceInfo >
static

Generated from constructor MR::Cuda::DeviceInfo::DeviceInfo.

Calls MR_Cuda_DeviceInfo_ConstructFromAnother(). The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

◆ driver_version()

auto meshlib::cuda::DeviceInfo::driver_version ( ) const -> &core::ffi::c_int

maximum CUDA version supported by the driver Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named driverVersion.

Calls MR_Cuda_DeviceInfo_Get_driverVersion(). The reference to this object might be preserved as the return value.

◆ driver_version_mut()

auto meshlib::cuda::DeviceInfo::driver_version_mut ( ) -> &mut core::ffi::c_int

maximum CUDA version supported by the driver Returns a mutable pointer to a member variable of class MR::Cuda::DeviceInfo named driverVersion.

Calls MR_Cuda_DeviceInfo_GetMutable_driverVersion(). The reference to this object might be preserved as the return value.

◆ fit_for_computations()

auto meshlib::cuda::DeviceInfo::fit_for_computations ( ) const -> bool

returns true if all versions pass the checks Generated from method MR::Cuda::DeviceInfo::fitForComputations.

Calls MR_Cuda_DeviceInfo_fitForComputations().

◆ name()

auto meshlib::cuda::DeviceInfo::name ( ) const -> &meshlib::std_string

name of the device Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named name.

Calls MR_Cuda_DeviceInfo_Get_name(). The reference to this object might be preserved as the return value.

◆ name_mut()

auto meshlib::cuda::DeviceInfo::name_mut ( ) -> &mut meshlib::std_string

name of the device Returns a mutable pointer to a member variable of class MR::Cuda::DeviceInfo named name.

Calls MR_Cuda_DeviceInfo_GetMutable_name(). The reference to this object might be preserved as the return value.

◆ new()

auto meshlib::cuda::DeviceInfo::new ( ) -> meshlib::Owned< meshlib::cuda::DeviceInfo >
static

Constructs an empty (default-constructed) instance.

Calls MR_Cuda_DeviceInfo_DefaultConstruct().

◆ runtime_version()

auto meshlib::cuda::DeviceInfo::runtime_version ( ) const -> &core::ffi::c_int

application's CUDA version Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named runtimeVersion.

Calls MR_Cuda_DeviceInfo_Get_runtimeVersion(). The reference to this object might be preserved as the return value.

◆ runtime_version_mut()

auto meshlib::cuda::DeviceInfo::runtime_version_mut ( ) -> &mut core::ffi::c_int

application's CUDA version Returns a mutable pointer to a member variable of class MR::Cuda::DeviceInfo named runtimeVersion.

Calls MR_Cuda_DeviceInfo_GetMutable_runtimeVersion(). The reference to this object might be preserved as the return value.

◆ set_compute_major()

void meshlib::cuda::DeviceInfo::set_compute_major ( value:core::ffi::c_int )

compute capability major version Modifies a member variable of class MR::Cuda::DeviceInfo named computeMajor.

Calls MR_Cuda_DeviceInfo_Set_computeMajor().

◆ set_compute_minor()

void meshlib::cuda::DeviceInfo::set_compute_minor ( value:core::ffi::c_int )

compute capability minor version Modifies a member variable of class MR::Cuda::DeviceInfo named computeMinor.

Calls MR_Cuda_DeviceInfo_Set_computeMinor().

◆ set_driver_version()

void meshlib::cuda::DeviceInfo::set_driver_version ( value:core::ffi::c_int )

maximum CUDA version supported by the driver Modifies a member variable of class MR::Cuda::DeviceInfo named driverVersion.

Calls MR_Cuda_DeviceInfo_Set_driverVersion().

◆ set_name()

void meshlib::cuda::DeviceInfo::set_name ( value:& str)

name of the device Modifies a member variable of class MR::Cuda::DeviceInfo named name.

Calls MR_Cuda_DeviceInfo_Set_name(). The reference to the parameter value might be preserved in this object in element name.

◆ set_runtime_version()

void meshlib::cuda::DeviceInfo::set_runtime_version ( value:core::ffi::c_int )

application's CUDA version Modifies a member variable of class MR::Cuda::DeviceInfo named runtimeVersion.

Calls MR_Cuda_DeviceInfo_Set_runtimeVersion().

◆ set_total_global_mem()

void meshlib::cuda::DeviceInfo::set_total_global_mem ( value:usize )

global memory on device in bytes (not all is available for our process) Modifies a member variable of class MR::Cuda::DeviceInfo named totalGlobalMem.

Calls MR_Cuda_DeviceInfo_Set_totalGlobalMem(). The reference to the parameter value might be preserved in this object in element totalGlobalMem.

◆ total_global_mem()

auto meshlib::cuda::DeviceInfo::total_global_mem ( ) const -> &usize

global memory on device in bytes (not all is available for our process) Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named totalGlobalMem.

Calls MR_Cuda_DeviceInfo_Get_totalGlobalMem(). The reference to this object might be preserved as the return value.

◆ total_global_mem_mut()

auto meshlib::cuda::DeviceInfo::total_global_mem_mut ( ) -> &mut usize

global memory on device in bytes (not all is available for our process) Returns a mutable pointer to a member variable of class MR::Cuda::DeviceInfo named totalGlobalMem.

Calls MR_Cuda_DeviceInfo_GetMutable_totalGlobalMem(). The reference to this object might be preserved as the return value.


The documentation for this struct was generated from the following file: