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

Add an option to disable header self containment tests #3834

Merged
merged 4 commits into from
Mar 10, 2021

Conversation

dalg24
Copy link
Member

@dalg24 dalg24 commented Mar 9, 2021

Default is ON which means the current behavior is unchanged. You may configure with -DKokkos_ENABLE_ HEADER_SELF_CONTAINMENT_TESTS=OFF to opt in.

Motivation for that is in my opinion the header self-containment unit tests are not so helpful while developing. I routinely comment out the add_subdirectory(headers_self_contained) in my local build and I have many times committed that change by accident.

Comment on lines -4 to -8
# Globbing all the header filenames to test for self-containment and presence of header guards
KOKKOS_OPTION(DEFAULT_DEVICE_MEMORY_SPACE "" STRING "Override default device memory space")
KOKKOS_OPTION(DEFAULT_HOST_MEMORY_SPACE "" STRING "Override default host memory space")
KOKKOS_OPTION(DEFAULT_DEVICE_EXECUTION_SPACE "" STRING "Override default device execution space")
KOKKOS_OPTION(DEFAULT_HOST_PARALLEL_EXECUTION_SPACE "" STRING "Override default host parallel execution space")
Copy link
Member Author

Choose a reason for hiding this comment

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

Note that I removed these lines

Copy link
Contributor

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

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

I'm not opposed if people find this helpful.

core/unit_test/CMakeLists.txt Outdated Show resolved Hide resolved
core/unit_test/headers_self_contained/CMakeLists.txt Outdated Show resolved Hide resolved
@dalg24 dalg24 force-pushed the disable_header_self_containment_tests branch from ecaa9cf to 788a947 Compare March 10, 2021 13:59
@crtrott crtrott merged commit 5fdab28 into kokkos:develop Mar 10, 2021
@dalg24 dalg24 deleted the disable_header_self_containment_tests branch March 10, 2021 23:22
masterleinad added a commit to masterleinad/kokkos that referenced this pull request Mar 11, 2021
* Remove misplaced options declarations

* Add option to disable header self containment tests

* Apply suggestions from code review (CMake indentation)

Co-authored-by: Daniel Arndt <arndtd@ornl.gov>

* Move HEADER_SELF_CONTAINMENT_TESTS option declaration

Co-authored-by: Daniel Arndt <arndtd@ornl.gov>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants