Skip to content

Commit

Permalink
We are missing explicit qualification of pow in two instances (#1784)
Browse files Browse the repository at this point in the history
This might lead to ambiguous overload resolution and breaks some builds.

Fixes nvbug4480737
  • Loading branch information
miscco authored May 28, 2024
1 parent 79f7ae4 commit 259887a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thrust/testing/shuffle.cu
Original file line number Diff line number Diff line change
Expand Up @@ -673,8 +673,8 @@ void TestShuffleEvenDistribution()
{
auto count_pos = counts.at(i * shuffle_size + j);
auto count_num = counts.at(j * shuffle_size + i);
chi_squared_pos += pow((double) count_pos - expected_occurances, 2) / expected_occurances;
chi_squared_num += pow((double) count_num - expected_occurances, 2) / expected_occurances;
chi_squared_pos += std::pow((double) count_pos - expected_occurances, 2) / expected_occurances;
chi_squared_num += std::pow((double) count_num - expected_occurances, 2) / expected_occurances;
}

double p_score_pos = CephesFunctions::cephes_igamc((double) (shuffle_size - 1) / 2.0, chi_squared_pos / 2.0);
Expand Down

0 comments on commit 259887a

Please sign in to comment.