Skip to content

Commit

Permalink
Use new GEMM throughout.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Aug 15, 2024
1 parent 5728976 commit 785cf57
Show file tree
Hide file tree
Showing 8 changed files with 175 additions and 244 deletions.
4 changes: 4 additions & 0 deletions lib/nnc/mfa/ccv_nnc_mfa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ mfa::context* ccv_nnc_init_mfa_context(MTL::Device* device) {
return new mfa::context(device);
}

void ccv_nnc_mfa_clear_pipeline_cache(ccv_nnc_mfa_context_t* context) {
context->v2_cache.evict();
}

void ccv_nnc_deinit_mfa_context(mfa::context* context) {
delete context;
}
Expand Down
1 change: 1 addition & 0 deletions lib/nnc/mfa/ccv_nnc_mfa.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ extern "C" {
#endif // __cplusplus

ccv_nnc_mfa_context_t* ccv_nnc_init_mfa_context(mtl_device_t* context);
void ccv_nnc_mfa_clear_pipeline_cache(ccv_nnc_mfa_context_t* context);
void ccv_nnc_deinit_mfa_context(ccv_nnc_mfa_context_t* context);
uint8_t ccv_nnc_mfa_context_supported(ccv_nnc_mfa_context_t* context);
uint16_t ccv_nnc_mfa_context_log_level(ccv_nnc_mfa_context_t* context);
Expand Down
Loading

0 comments on commit 785cf57

Please sign in to comment.