gpu_safe_call.hpp
Go to the documentation of this file.
89 OPM_THROW(std::runtime_error, getCudaErrorMessage(error, expression, filename, functionName, lineNumber));
Definition: autotuner.hpp:29 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: gpu_safe_call.hpp:45 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 GPU expression (function call) and throws an exception if ... Definition: gpu_safe_call.hpp:82 void 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 GPU expression (function call) and issues a warning if ... Definition: gpu_safe_call.hpp:121 |