batchlas::device_error Class Reference

Overview

The device or its vendor runtime failed.

A cuBLAS/cuSOLVER/cuSPARSE/rocBLAS/rocSPARSE status code, a CUDA launch failure, a handle that would not initialise, a sycl::malloc_device/malloc_host that returned null, no device of the requested type, or a host BLAS this machine ships broken.

Sometimes retryable, and the only class where a retry can be right: a transient launch failure or an allocation lost to another process may clear. A status code that repeats is a real fault; do not loop.

Definition at line 138 of file error.hh.

#include <batchlas/error.hh>

Inheritance diagram for batchlas::device_error:

Constructors

◆ device_error() [1/2]

batchlas::device_error::device_error ( const std::string & what_arg)
inlineexplicit

Definition at line 140 of file error.hh.

◆ device_error() [2/2]

batchlas::device_error::device_error ( const char * what_arg)
inlineexplicit

Definition at line 141 of file error.hh.