File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -7702,6 +7702,15 @@ bool G4_InstDpas::isInt() const {
7702
7702
return false ;
7703
7703
}
7704
7704
7705
+ bool G4_InstDpas::isInt8 () const {
7706
+ if (Src1Precision == GenPrecision::S8 || Src1Precision == GenPrecision::U8 ||
7707
+ Src2Precision == GenPrecision::S8 || Src2Precision == GenPrecision::U8) {
7708
+ return true ;
7709
+ }
7710
+
7711
+ return false ;
7712
+ }
7713
+
7705
7714
bool G4_InstDpas::is2xInt8 () const {
7706
7715
if ((Src1Precision == GenPrecision::S4 || Src1Precision == GenPrecision::U4 ||
7707
7716
Src1Precision == GenPrecision::S2 ||
Original file line number Diff line number Diff line change @@ -1006,6 +1006,7 @@ class G4_InstDpas : public G4_INST {
1006
1006
bool isFP16 () const { return Src1Precision == GenPrecision::FP16; }
1007
1007
bool isTF32 () const { return Src1Precision == GenPrecision::TF32; }
1008
1008
bool isInt () const ;
1009
+ bool isInt8 () const ;
1009
1010
bool is2xInt8 () const ; // true if it is 2xint8 dpas
1010
1011
1011
1012
uint8_t getOpsPerChan () const ;
Original file line number Diff line number Diff line change @@ -306,9 +306,10 @@ LatencyTableXe<PlatformGen::XE>::getMathLatency(const G4_INST *Inst) const {
306
306
return value_of (LI::MATH) + value_of (LI::DELTA_MATH) * Scale;
307
307
}
308
308
309
- template <>
310
- uint16_t LatencyTableXe<PlatformGen::XE>::getDPASLatency(
311
- const G4_InstDpas *dpas) const {
309
+ template <>
310
+ uint16_t
311
+ LatencyTableXe<PlatformGen::XE>::getDPASLatency(const G4_InstDpas *dpas) const {
312
+
312
313
return getDPASLatency (dpas->getRepeatCount ());
313
314
}
314
315
You can’t perform that action at this time.
0 commit comments