Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
GPUErrorCheck.hpp File Reference

Throwing error-check function for HIP/CUDA GPU API calls. More...

#include "core/GPUPortability.hpp"
#include <format>
#include <source_location>
#include <stdexcept>
Include dependency graph for GPUErrorCheck.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  correlation::core::gpu::GPUError
 Exception type for GPU runtime errors. More...

Namespaces

namespace  correlation
namespace  correlation::core
namespace  correlation::core::gpu

Functions

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

Detailed Description

Throwing error-check function for HIP/CUDA GPU API calls.

License
SPDX-License-Identifier: AGPL-3.0-only