cuda_safe_call.hpp
Go to the documentation of this file.
89 OPM_THROW(std::runtime_error, getCudaErrorMessage(error, expression, filename, functionName, lineNumber));
Definition: cublas_safe_call.hpp:32 void cudaSafeCall(cudaError_t error, const std::string_view &expression, const std::string_view &filename, const std::string_view &functionName, size_t lineNumber) cudaSafeCall checks the return type of the CUDA expression (function call) and throws an exception if... Definition: cuda_safe_call.hpp:82 std::string getCudaErrorMessage(cudaError_t error, const std::string_view &expression, const std::string_view &filename, const std::string_view &functionName, size_t lineNumber) getCudaErrorMessage generates the error message to display for a given error. Definition: cuda_safe_call.hpp:45 cudaError_t cudaWarnIfError(cudaError_t error, const std::string_view &expression, const std::string_view &filename, const std::string_view &functionName, size_t lineNumber) cudaWarnIfError checks the return type of the CUDA expression (function call) and issues a warning if... Definition: cuda_safe_call.hpp:123 |