We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22c4154 commit a3f6041Copy full SHA for a3f6041
1 file changed
src/algorithm/HISTOGRAM.cpp
@@ -38,7 +38,7 @@ HISTOGRAM::HISTOGRAM(const RunParams& params)
38
1*sizeof(Index_type) * getActualProblemSize() );
39
setBytesWrittenPerRep( 1*sizeof(Data_type) * m_num_bins );
40
setBytesAtomicModifyWrittenPerRep( 0 );
41
- setFLOPsPerRep(1 * getActualProblemSize());
+ setFLOPsPerRep( (std::is_floating_point_v<Data_type> ? 1 : 0) * getActualProblemSize() );
42
43
setComplexity(Complexity::N);
44
0 commit comments