15 #ifdef ETL_EGBLAS_MODE 17 #include "etl/impl/cublas/cuda.hpp" 25 #ifdef EGBLAS_HAS_SCALAR_SSET 27 static constexpr
bool has_scalar_sset =
true;
36 inline void scalar_set(
float* x,
size_t n,
size_t s,
const float beta) {
38 egblas_scalar_sset(x, n, s, beta);
43 static constexpr
bool has_scalar_sset =
false;
47 #ifdef EGBLAS_HAS_SCALAR_DSET 49 static constexpr
bool has_scalar_dset =
true;
58 inline void scalar_set(
double* x,
size_t n,
size_t s,
const double beta) {
60 egblas_scalar_dset(x, n, s, beta);
65 static constexpr
bool has_scalar_dset =
false;
69 #ifndef ETL_EGBLAS_MODE 79 inline void scalar_set([[maybe_unused]] T* x, [[maybe_unused]]
size_t n, [[maybe_unused]]
size_t s, [[maybe_unused]]
const T beta) {
80 cpp_unreachable(
"Invalid call to egblas::scalar_set");
auto s(T &&value)
Force the evaluation of the given expression.
Definition: stop.hpp:18
void scalar_set([[maybe_unused]] T *x, [[maybe_unused]] size_t n, [[maybe_unused]] size_t s, [[maybe_unused]] const T beta)
sets the scalar beta to each element of the single-precision vector x
Definition: scalar_set.hpp:79
void inc_counter([[maybe_unused]] const char *name)
Increase the given counter.
Definition: counters.hpp:25