15 #ifdef ETL_EGBLAS_MODE 17 #include "etl/impl/cublas/cuda.hpp" 25 #ifdef EGBLAS_HAS_SONE_IF_MAX_SUB 26 static constexpr
bool has_sone_if_max_sub =
true;
28 static constexpr
bool has_sone_if_max_sub =
false;
41 [[maybe_unused]]
size_t n,
42 [[maybe_unused]]
float alpha,
43 [[maybe_unused]]
float* A,
44 [[maybe_unused]]
size_t lda,
45 [[maybe_unused]]
float* B,
46 [[maybe_unused]]
size_t ldb) {
47 #ifdef EGBLAS_HAS_SONE_IF_MAX_SUB 49 egblas_sone_if_max_sub(b, n, alpha, A, lda, B, ldb);
51 cpp_unreachable(
"Invalid call to egblas::one_if_max_sub");
55 #ifdef EGBLAS_HAS_DONE_IF_MAX_SUB 56 static constexpr
bool has_done_if_max_sub =
true;
58 static constexpr
bool has_done_if_max_sub =
false;
71 [[maybe_unused]]
size_t n,
72 [[maybe_unused]]
double alpha,
73 [[maybe_unused]]
double* A,
74 [[maybe_unused]]
size_t lda,
75 [[maybe_unused]]
double* B,
76 [[maybe_unused]]
size_t ldb) {
77 #ifdef EGBLAS_HAS_DONE_IF_MAX_SUB 79 egblas_done_if_max_sub(b, n, alpha, A, lda, B, ldb);
81 cpp_unreachable(
"Invalid call to egblas::one_if_max_sub");
auto one_if_max_sub(const E &value)
Return, for each original position, 1.0 if the value is the max of the sub matrix, 0.0 otherwise.
Definition: expression_builder.hpp:488
void inc_counter([[maybe_unused]] const char *name)
Increase the given counter.
Definition: counters.hpp:25