-
Notifications
You must be signed in to change notification settings - Fork 4
Configure CI on self-hosted runner #17
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
base: master
Are you sure you want to change the base?
Conversation
sevenbunu
commented
May 4, 2025
•
edited
Loading
edited
- Update build pipeline for GitHub-hosted runner (choose the oldest possible versions of ubuntu, cuda, gcc to maintain backward compatibility with new versions)
- Add build and test pipeline for GPU use case of library
- Update install script for cuda-12.8 on Ubuntu-24.04
- Work is based on Updated supported CUDA verison to 12.8 #16, so all changes that aren't connected with points above are made by @mitya-y
4695301
to
033366a
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
- name: Run unit-tests | ||
working-directory: ${{ env.build_dir }} | ||
run: | | ||
source scripts/run_tests_all.sh | tee ${{ env.unit-test-file }} |
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 source
?
if grep -q "FAILED" ${{ env.unit-test-file }}; then | ||
exit 1 | ||
fi |
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.
if grep -q "FAILED" ${{ env.unit-test-file }}; then | |
exit 1 | |
fi | |
! grep -q "FAILED" ${{ env.unit-test-file }} |
- name: Run regression-tests | ||
working-directory: ${{ env.build_dir }}/python | ||
run: | | ||
source run_tests.sh 2>&1 | tee ${{ env.regression-test-file }} |
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.
Same question
if grep -q "FAILED" ${{ env.regression-test-file }}; then | ||
exit 1 | ||
fi |
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.
if grep -q "FAILED" ${{ env.regression-test-file }}; then | |
exit 1 | |
fi | |
! grep -q "FAILED" ${{ env.regression-test-file }} |
working-directory: ${{ env.build_dir }} | ||
run: | | ||
cmake --build . --target all --verbose -j `nproc` |
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.
working-directory: ${{ env.build_dir }} | |
run: | | |
cmake --build . --target all --verbose -j `nproc` | |
run: | | |
cmake --build ${{ env.build_dir }} --target all --verbose -j `nproc` |
if grep -q "FAILED" ${{ env.unit-test-file }}; then | ||
exit 1 | ||
fi |
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.
if grep -q "FAILED" ${{ env.unit-test-file }}; then | |
exit 1 | |
fi | |
! grep -q "FAILED" ${{ env.unit-test-file }} |
exit 1 | ||
fi |
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.
if grep -q "FAILED" ${{ env.regression-test-file }}; then | |
exit 1 | |
fi | |
! grep -q "FAILED" ${{ env.regression-test-file }} |
* Performs result = left * ~right, where | ||
* '*' is boolean semiring 'and' operation | ||
* '~' is operation for invert matrix (0 swaps to 1 and 1 to 0) | ||
* | ||
* @note To perform this operation matrices must be compatible | ||
* dim(left) = M x T | ||
* dim(right) = T x N | ||
* dim(result) = M x N | ||
* | ||
* @note Pass `CUBOOL_HINT_TIME_CHECK` hint to measure operation time | ||
* | ||
* @param result[out] Destination matrix to store result | ||
* @param left Source matrix to be multiplied | ||
* @param right Source matrix to be inverted and multiplied | ||
* @param hints Hints for the operation | ||
* | ||
* @return Error code on this operation | ||
*/ | ||
CUBOOL_EXPORT CUBOOL_API cuBool_Status cuBool_Matrix_EWiseMulInverted( | ||
cuBool_Matrix result, | ||
cuBool_Matrix matrix, | ||
cuBool_Matrix mask, | ||
cuBool_Hints hints |
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.
The names of the function parameters don't match the names in docs
@@ -1,8 +1,12 @@ | |||
# Original script from https://github.com/ptheywood/cuda-cmake-github-actions |
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 is shebang omitted?
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.
Please verify script with shellcheck (there are a lot of warnings)