-
Notifications
You must be signed in to change notification settings - Fork 100
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 limited PR testing #101
base: main
Are you sure you want to change the base?
Conversation
62d1477
to
e67f599
Compare
e67f599
to
ade0355
Compare
bfce071
to
f20433f
Compare
2938d46
to
f48ca12
Compare
a400b14
to
1ed5bf7
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.
I think it is a very good start.
In the future we can remove the scripts (with a global CMake #91). Perhaps these scripts can be relocated in a more hidden place?
The nightly should be run from Kokkos repo using workflow dispatch.
b6f6f75
to
3600d67
Compare
0ca2907
to
7a9c015
Compare
4651bbf
to
dbcc599
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.
I think we cannot run the proposed action while .github/workflows
is empty.
@cwpearson, did you run the PR with a runner like https://github.com/nektos/act ?
If someone with rights can merge this, the next steps would probably be
|
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 as a first step.
cmake -S "${GITHUB_WORKSPACE}"/kokkos -B "${GITHUB_WORKSPACE}"/build-kokkos | ||
-DCMAKE_INSTALL_PREFIX="${GITHUB_WORKSPACE}"/install-kokkos | ||
-DCMAKE_CXX_COMPILER="${GITHUB_WORKSPACE}"/kokkos/bin/nvcc_wrapper | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo |
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.
Fine but noting that it is the default hence unnecessary
EXERCISES+=("$e"/Solution) | ||
done | ||
|
||
export Kokkos_ROOT="$kokkos_root" |
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.
Why do we handle Kokkos and KokkosKernels differently and why don't we just set these environment variable externally?
backend="$6" | ||
|
||
# These are exercises with CMakeLists.txt in Begin and Solution subdirectories | ||
# TODO: advanced_reductions seems broken |
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.
Can you elaborate?
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.
Ah, Begin
doesn't compile.
# TODO: advanced_reductions seems broken | ||
# TODO: hpcbind does not use cmake | ||
# TODO: instances does not use cmake | ||
# TODO: parallel_scan seems broken |
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.
Can you elaborate?
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.
It just means there were compilation errors when I tried to compile it in this framework. I didn't spend more than 30s looking at any of them. I figured fixing them up could be follow-on work.
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.
Yes, see #104.
Co-authored-by: Damien L-G <[email protected]>
Add PR tests a variety of exercises against Kokkos / Kokkos Kernels
master
branches. This only builds the exercises, it does not run their solutions.Since it's a bit clumsy to build every exercise, this CI uses a script to do it (batch for Windows, bash for Linux/macOS).
Many exercises did not immediately build, have certain execution spaces hardcoded, or had other problems. Resolving those is left as future work.