MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.cuda.DeviceInfo Class Reference
Inheritance diagram for meshlib.cuda.DeviceInfo:

Public Member Functions

 DeviceInfo (java.lang.foreign.MemorySegment ptr, boolean owned, java.lang.Object owner)
 DeviceInfo ()
 DeviceInfo (int driverVersion, int runtimeVersion, int computeMajor, int computeMinor, long totalGlobalMem, java.lang.String name)
 DeviceInfo (meshlib.cuda.DeviceInfo _other)
meshlib.cuda.DeviceInfo assignFromAnother (meshlib.cuda.DeviceInfo _other)
boolean fitForComputations ()
int driverVersion ()
void setDriverVersion (int value)
int runtimeVersion ()
void setRuntimeVersion (int value)
int computeMajor ()
void setComputeMajor (int value)
int computeMinor ()
void setComputeMinor (int value)
long totalGlobalMem ()
void setTotalGlobalMem (long value)
meshlib.std_string name ()
void setName (java.lang.String value)
Public Member Functions inherited from meshlib.CppObject
final java.lang.foreign.MemorySegment rawPointer ()
final boolean isOwned ()
final void close ()
final java.lang.foreign.MemorySegment release ()

Additional Inherited Members

Protected Member Functions inherited from meshlib.CppObject
 CppObject (java.lang.foreign.MemorySegment ptr, java.util.function.Consumer< java.lang.foreign.MemorySegment > destroy, java.lang.Object owner)

Detailed Description

Generated from class MR::Cuda::DeviceInfo.

Instances created here own their C++ objects, see CppObject.

Constructor & Destructor Documentation

◆ DeviceInfo() [1/4]

meshlib.cuda.DeviceInfo.DeviceInfo ( java.lang.foreign.MemorySegment ptr,
boolean owned,
java.lang.Object owner )

Wraps a pointer from the C bindings. If owned, the object is destroyed when the wrapper dies. owner is kept alive as long as this wrapper is. Not for normal use.

◆ DeviceInfo() [2/4]

meshlib.cuda.DeviceInfo.DeviceInfo ( )

Constructs an empty (default-constructed) instance.

Calls MR_Cuda_DeviceInfo_DefaultConstruct().

◆ DeviceInfo() [3/4]

meshlib.cuda.DeviceInfo.DeviceInfo ( int driverVersion,
int runtimeVersion,
int computeMajor,
int computeMinor,
long totalGlobalMem,
java.lang.String name )

Constructs MR::Cuda::DeviceInfo elementwise. 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.

Calls MR_Cuda_DeviceInfo_ConstructFrom().

◆ DeviceInfo() [4/4]

meshlib.cuda.DeviceInfo.DeviceInfo ( meshlib.cuda.DeviceInfo _other)

Generated from constructor MR::Cuda::DeviceInfo::DeviceInfo. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object.

Calls MR_Cuda_DeviceInfo_ConstructFromAnother().

Member Function Documentation

◆ assignFromAnother()

meshlib.cuda.DeviceInfo meshlib.cuda.DeviceInfo.assignFromAnother ( meshlib.cuda.DeviceInfo _other)

Generated from method MR::Cuda::DeviceInfo::operator=. The reference to things referred to by the parameter _other (if any) might be preserved in this object.

Calls MR_Cuda_DeviceInfo_AssignFromAnother().

◆ computeMajor()

int meshlib.cuda.DeviceInfo.computeMajor ( )

compute capability major version Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named computeMajor. The reference to this object might be preserved as the return value.

Calls MR_Cuda_DeviceInfo_Get_computeMajor().

◆ computeMinor()

int meshlib.cuda.DeviceInfo.computeMinor ( )

compute capability minor version Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named computeMinor. The reference to this object might be preserved as the return value.

Calls MR_Cuda_DeviceInfo_Get_computeMinor().

◆ driverVersion()

int meshlib.cuda.DeviceInfo.driverVersion ( )

maximum CUDA version supported by the driver Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named driverVersion. The reference to this object might be preserved as the return value.

Calls MR_Cuda_DeviceInfo_Get_driverVersion().

◆ fitForComputations()

boolean meshlib.cuda.DeviceInfo.fitForComputations ( )

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

Calls MR_Cuda_DeviceInfo_fitForComputations().

◆ name()

meshlib.std_string meshlib.cuda.DeviceInfo.name ( )

name of the device Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named name. The reference to this object might be preserved as the return value.

Calls MR_Cuda_DeviceInfo_Get_name().

◆ runtimeVersion()

int meshlib.cuda.DeviceInfo.runtimeVersion ( )

application's CUDA version Returns a pointer to a member variable of class MR::Cuda::DeviceInfo named runtimeVersion. The reference to this object might be preserved as the return value.

Calls MR_Cuda_DeviceInfo_Get_runtimeVersion().

◆ setComputeMajor()

void meshlib.cuda.DeviceInfo.setComputeMajor ( int value)

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

Calls MR_Cuda_DeviceInfo_Set_computeMajor().

◆ setComputeMinor()

void meshlib.cuda.DeviceInfo.setComputeMinor ( int value)

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

Calls MR_Cuda_DeviceInfo_Set_computeMinor().

◆ setDriverVersion()

void meshlib.cuda.DeviceInfo.setDriverVersion ( int value)

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

Calls MR_Cuda_DeviceInfo_Set_driverVersion().

◆ setName()

void meshlib.cuda.DeviceInfo.setName ( java.lang.String value)

name of the device Modifies a member variable of class MR::Cuda::DeviceInfo named name. The reference to the parameter value might be preserved in this object in element name.

Calls MR_Cuda_DeviceInfo_Set_name().

◆ setRuntimeVersion()

void meshlib.cuda.DeviceInfo.setRuntimeVersion ( int value)

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

Calls MR_Cuda_DeviceInfo_Set_runtimeVersion().

◆ setTotalGlobalMem()

void meshlib.cuda.DeviceInfo.setTotalGlobalMem ( long value)

global memory on device in bytes (not all is available for our process) Modifies a member variable of class MR::Cuda::DeviceInfo named totalGlobalMem. The reference to the parameter value might be preserved in this object in element totalGlobalMem.

Calls MR_Cuda_DeviceInfo_Set_totalGlobalMem().

◆ totalGlobalMem()

long meshlib.cuda.DeviceInfo.totalGlobalMem ( )

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. The reference to this object might be preserved as the return value.

Calls MR_Cuda_DeviceInfo_Get_totalGlobalMem().


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