Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::core::gpu Namespace Reference

Classes

class  DeviceBuffer
 RAII wrapper for a typed GPU device allocation. More...
class  GPUError
 Exception type for GPU runtime errors. More...

Functions

void hipCheck (hipError_t result, std::source_location loc=std::source_location::current())
 Validates a HIP/CUDA runtime call result and throws GPUError on failure.

Function Documentation

◆ hipCheck()

void correlation::core::gpu::hipCheck ( hipError_t result,
std::source_location loc = std::source_location::current() )
inline

Validates a HIP/CUDA runtime call result and throws GPUError on failure.

Parameters
[in]resultThe error code returned by the GPU runtime call.
[in]locThe source location where the check was invoked.
Exceptions
GPUErrorIf result is not equal to hipSuccess.
Here is the call graph for this function:
Here is the caller graph for this function: