Skip to content

Commit

Permalink
Fix issue with unavailable is_constant_evaluated
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Jul 4, 2024
1 parent a5e64cd commit 900a2a9
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ __host__ __device__ constexpr void test()
{
test_default<T>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test_copy_move<T>();
test_size<T>();
Expand All @@ -275,7 +275,7 @@ __host__ __device__ constexpr bool test()
test<ThrowingMoveConstructor>();

// Due to reinterpret_cast within the destructor a on trivially destructible type cannot be constexpr at all
if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivialDestructor>();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ __host__ __device__ constexpr bool test()
{
test<int>();

if (!cuda::std::is_constant_evaluated())
if (!cuda::std::__libcpp_is_constant_evaluated())
{
test<NonTrivial>();
test<NonTrivialDestructor>();
Expand Down

0 comments on commit 900a2a9

Please sign in to comment.