MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / is_available

Method is_available

dnn/src/cuda/batched_matrix_mul/brute_force.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool BatchedMatrixMulForwardImpl::AlgoBruteForce::is_available(
52 const SizeArgs& args) const {
53 auto config = prepare_sub_opr(args);
54
55 return get_algorithm(
56 static_cast<MatrixMulForwardImpl*>(config.second.get()), config.first[0],
57 config.first[1], config.first[2]);
58}
59size_t BatchedMatrixMulForwardImpl::AlgoBruteForce::get_workspace_in_bytes(
60 const SizeArgs& args) const {
61 auto config = prepare_sub_opr(args);

Callers

nothing calls this directly

Calls 3

get_algorithmFunction · 0.85
prepare_sub_oprFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected