Skip to content

Commit

Permalink
compilation fix for gcc 11
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravenwater committed Jan 4, 2024
1 parent 7af781f commit 8d1b501
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion benchmark/accuracy/quantization/mpfma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void QuantizationExperiment(unsigned nrSamples, unsigned vectorSize, double mean
using namespace sw::universal;

std::cout << "Experiment: nrSamples(" << nrSamples << ") vectorSize(" << vectorSize << ") mean(" << mean << ") stddev(" << stddev << ")\n";
int64_t L{ vectorSize }, N{ nrSamples };
long long L{ vectorSize }, N{ nrSamples };
blas::vector<double> reference_data(L);
blas::vector<double> y_data(L);
gaussian_random(y_data, mean, stddev);
Expand Down Expand Up @@ -145,6 +145,8 @@ try {
double mean{ 0.0 }, stddev{ 1.0 };
QuantizationExperiment<RepresentationType, AccumulationType>(nrSamples, 50, mean, stddev);

std::cout << std::setprecision(prec);

return EXIT_SUCCESS;
#else

Expand Down

0 comments on commit 8d1b501

Please sign in to comment.