Alsvinn  0.5.3
The fast FVM simulator with UQ support
Functions
alsutils::cuda Namespace Reference

Functions

int getCurrentGPUId ()
 Returns the current active GPU id, or -1 if cuda is disabled. More...
 
boost::property_tree::ptree getDeviceProperties ()
 

Function Documentation

◆ getCurrentGPUId()

int alsutils::cuda::getCurrentGPUId ( )
inline

Returns the current active GPU id, or -1 if cuda is disabled.

◆ getDeviceProperties()

boost::property_tree::ptree alsutils::cuda::getDeviceProperties ( )
inline

Returns the information of cudaGetDeviceProperties for the current device See https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__DEVICE.html#group__CUDART__DEVICE_1g1bf9d625a931d657e08db2b4391170f0 for more information