Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
// template<class RealType = double>
// class extreme_value_distribution

// UNSUPPORTED: true

#include <cuda/std/cassert>
#include <cuda/std/cmath>
#include <cuda/std/random>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ __host__ __device__ bool test_eval(const typename D::param_type param, CDF cdf)
{
auto dist_val = d1(g_1, param);
auto dist2_val = d2(g_2);
assert(dist_val == dist2_val);
assert((dist_val == dist2_val) || (cuda::std::isnan(dist_val) && cuda::std::isnan(dist2_val)));
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jrhemstad I investigated with @RAMitchell and it turns out that the extreme value distribution generates NaN on device, which compare unequal

}
}

Expand Down
Loading