Skip to content

Commit

Permalink
xe: ocl: gemm_with_po: fix crash in verbose mode
Browse files Browse the repository at this point in the history
  • Loading branch information
petercad committed Jul 5, 2024
1 parent beb35b9 commit e884636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu/intel/ocl/gemm/gemm_with_post_ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ status_t gemm_with_post_ops_t::pd_t::init(impl::engine_t *engine) {
gemm_pd_ = *(++it_gemm_without_po);
VDISPATCH_GEMM(
!(!gemm_pd_ || strstr(gemm_pd_->name(), skip_impl) != nullptr),
VERBOSE_PRIMITIVE_CREATION_FAIL, gemm_pd_->name());
VERBOSE_PRIMITIVE_CREATION_FAIL, gemm_pd_ ? gemm_pd_->name() : "");

//set tags for end user
desc_.a_desc = *gemm_pd_->arg_md(DNNL_ARG_SRC_0);
Expand Down

0 comments on commit e884636

Please sign in to comment.