Skip to content

Commit

Permalink
fix: oss just support sm>=75 (#48731)
Browse files Browse the repository at this point in the history
  • Loading branch information
feng_shuai authored Dec 7, 2022
1 parent 1787904 commit 87fbc5e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ class MultiheadMatMulOpConverter : public OpConverter {
}
} else {
if (input_dims.d[1] <= 384 && !bias_qk_attr &&
engine_->precision() != AnalysisConfig::Precision::kFloat32) {
engine_->precision() != AnalysisConfig::Precision::kFloat32 &&
platform::GetGPUComputeCapability(0) >= 75) {
/*
* input_dims.d[0]: batch(-1)
* input_dims.d[1]: length:256
Expand Down

0 comments on commit 87fbc5e

Please sign in to comment.