Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove C++03 compatability from unit tests #378

Merged
merged 3 commits into from
Sep 18, 2023

Conversation

Blonck
Copy link
Contributor

@Blonck Blonck commented Aug 28, 2023

As part of #127, code for unsupported compilation modes/platforms will be removed. In alignment with this goal, the present patch remove all checks against C++03 and the corresponding code from the unit test located under .upstream-test/.

This patch relates to #127

Checklist

@Blonck Blonck requested review from a team as code owners August 28, 2023 12:22
@Blonck Blonck requested review from miscco and elstehle and removed request for a team August 28, 2023 12:22
@rapids-bot
Copy link

rapids-bot bot commented Aug 28, 2023

Pull requests from external contributors require approval from a NVIDIA organization member with write permissions or greater before CI can begin.

@Blonck
Copy link
Contributor Author

Blonck commented Aug 28, 2023

To reduce the size of this PR, I would remove the test macros like TEST_ALIGNOF, TEST_CONSTEXPR, or ASSERT_NOEXCEPT in a different PR and remove C++03 from the tests under libcudacxx/test in a third one.

@miscco
Copy link
Collaborator

miscco commented Aug 29, 2023

/ok to test

As part of NVIDIA#127, code for unsupported compilation modes/platforms will
be removed. In alignment with this goal, the present patch remove all
checks against C++03 and the corresponding code from the unit test
located under `.upstream-test/`.

This patch relates to NVIDIA#127.
@copy-pr-bot
Copy link

copy-pr-bot bot commented Aug 31, 2023

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@miscco
Copy link
Collaborator

miscco commented Aug 31, 2023

/ok to test

Copy link
Collaborator

@miscco miscco left a comment

Choose a reason for hiding this comment

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

Awesome, I think I found one incorrect conditional but otherwise this looks great 🚀

Comment on lines 262 to 263
#if !(defined(TEST_COMPILER_MSVC) && defined(_LIBCUDACXX_USE_IS_CONVERTIBLE_FALLBACK)) && \
(TEST_STD_VER >= 11 || !defined(_LIBCUDACXX_USE_IS_CONVERTIBLE_FALLBACK))
(!defined(_LIBCUDACXX_USE_IS_CONVERTIBLE_FALLBACK))
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe that is not correct. The condition was || so it was always true

@miscco
Copy link
Collaborator

miscco commented Sep 18, 2023

/ok to test

@miscco miscco merged commit 54f75d4 into NVIDIA:main Sep 18, 2023
464 checks passed
Blonck added a commit to Blonck/cccl that referenced this pull request Dec 15, 2023
As part of NVIDIA#127, code for unsupported compilation modes/platforms will
be removed. This patch removes all remaining checks against C++03 which
were left after NVIDIA#378.

This patch relates to NVIDIA#127 and NVIDIA#378.
Blonck added a commit to Blonck/cccl that referenced this pull request Dec 18, 2023
As part of NVIDIA#127, code for unsupported compilation modes/platforms will
be removed. This patch removes all remaining checks against C++03 which
were left after NVIDIA#378.

This patch relates to NVIDIA#127 and NVIDIA#378.
miscco added a commit that referenced this pull request Jan 18, 2024
* Remove remaining C++03 compatibility from unit tests

As part of #127, code for unsupported compilation modes/platforms will
be removed. This patch removes all remaining checks against C++03 which
were left after #378.

This patch relates to #127 and #378.

---------

Co-authored-by: Michael Schellenberger Costa <miscco@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants