Function opensn::GPUBackendIsCUDAOrHIP

Function Documentation

bool opensn::GPUBackendIsCUDAOrHIP()

Returns whether OpenSn’s GPU backend is CUDA or HIP, whose current device PETSc also sets.