-
Notifications
You must be signed in to change notification settings - Fork 407
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 Spack test support for Kokkos #3753
Conversation
Yeah, I don't think this is the best approach here. I think we should generate a |
I'm similarly confused. What are we hoping to enable with this PR? You can add a test phase to any Spack build. |
We enable spack test run with this PR. The corresponding spack recipe is here - note the changes towards the end. Recipe |
a4a7ecc
to
2e01423
Compare
Removed run shell script in favor of using Cmake test. |
@jrmadsen @masterleinad please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally I am happy with this. The examples used seem appropriate for a smoke test (i.e. it tests containers and algorithms too.)
a06e900
to
efab0d8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Maybe add TIMEOUT
, PROCESSORS
, etc. but that's your call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove that `CMAKE_CXX_COMPILER
scripts/spack_test/CMakeLists.txt.in
Outdated
|
||
set(SRC_NAME_LIST "@SRC_NAME_LIST@") | ||
set(BIN_NAME_LIST "@BIN_NAME_LIST@") | ||
set(CMAKE_CXX_COMPILER ${Kokkos_CXX_COMPILER}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait. This does absolutely nothing. At this point, the CXX
in project already set the C++ compiler, you cannot override it locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved for now on Slack.
scripts/spack_test/CMakeLists.txt.in
Outdated
|
||
set(SRC_NAME_LIST "@SRC_NAME_LIST@") | ||
set(BIN_NAME_LIST "@BIN_NAME_LIST@") | ||
set(CMAKE_CXX_COMPILER ${Kokkos_CXX_COMPILER}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set(CMAKE_CXX_COMPILER ${Kokkos_CXX_COMPILER}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved for now on Slack.
efab0d8
to
cbe00ca
Compare
e00145d
to
d3f5e1d
Compare
Adds Spack test support for Kokkos.