MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / rocblas_invoke

Function rocblas_invoke

src/targets/gpu/gemm_impl.cpp:121–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 */
120template <class F, class Pack, class... Ts>
121static auto rocblas_invoke(F f, Pack p, Ts... xs)
122{
123 return p([=](auto... ws) {
124 auto status = f(ws..., xs...);
125 if(status != rocblas_status_success and status != rocblas_status_invalid_value)
126 {
127 if(status == rocblas_status_perf_degraded)
128 {
129 std::cerr << "WARNING: degraded perf. in rocBLAS call" << std::endl;
130 }
131 else
132 MIGRAPHX_THROW("rocblas_invoke: rocBLAS call failed with status " +
133 std::to_string(status));
134 }
135 return status;
136 });
137}
138
139static bool is_transposed(const shape& s)
140{

Callers 3

runMethod · 0.85
validateMethod · 0.85
tuneMethod · 0.85

Calls 1

to_stringFunction · 0.50

Tested by

no test coverage detected