Skip to content

Commit a3f6041

Browse files
committed
Fix HISTOGRAM FLOPS estimate
1 parent 22c4154 commit a3f6041

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/algorithm/HISTOGRAM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ HISTOGRAM::HISTOGRAM(const RunParams& params)
3838
1*sizeof(Index_type) * getActualProblemSize() );
3939
setBytesWrittenPerRep( 1*sizeof(Data_type) * m_num_bins );
4040
setBytesAtomicModifyWrittenPerRep( 0 );
41-
setFLOPsPerRep(1 * getActualProblemSize());
41+
setFLOPsPerRep( (std::is_floating_point_v<Data_type> ? 1 : 0) * getActualProblemSize() );
4242

4343
setComplexity(Complexity::N);
4444

0 commit comments

Comments
 (0)