Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
cublas_error_presentation.hpp
Go to the documentation of this file.
1#pragma once
2
11
12#include <fmt/core.h>
13
14namespace uni20::cublas
15{
16
19{
21 report.status(presentation::semantic_glyph::failure, fmt::format("cuBLAS '{}' failed", error.operation()));
22 report.field("Status", error.error_name());
23 report.field("Device", error.device());
24 return report;
25}
26
27} // namespace uni20::cublas
Exception carrying a failed cuBLAS operation and device identity.
Definition cublas_error.hpp:24
Builder for simple terminal reports with headings, status lines, fields, and tables.
Definition presentation.hpp:602
report_builder & field(std::string key, std::string value)
Add a labeled field to the report header.
Definition presentation.cpp:1459
report_builder & status(semantic_glyph glyph, std::string label)
Add a semantic status line such as ✓ converged.
Definition presentation.cpp:1453
Structured cuBLAS failures and checked-call helpers.
Definition cublas_error.cpp:11
presentation::report_builder diagnostic_report(CublasError const &error)
Build a presentation report for a cuBLAS provider failure.
Definition cublas_error_presentation.hpp:18