Skip to content

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

Open
wants to merge 69 commits into
base: master
Choose a base branch
from
Open

Conversation

sevenbunu
Copy link

@sevenbunu sevenbunu commented May 4, 2025

  • 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

mitya-y and others added 30 commits October 22, 2024 12:24
@sevenbunu sevenbunu force-pushed the self-hosted-runner branch from 4695301 to 033366a Compare May 5, 2025 21:59
@gsvgit gsvgit requested a review from vkutuev May 14, 2025 10:06
Copy link

@vkutuev vkutuev left a 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 }}
Copy link

Choose a reason for hiding this comment

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

Why source?

Comment on lines +80 to +82
if grep -q "FAILED" ${{ env.unit-test-file }}; then
exit 1
fi
Copy link

Choose a reason for hiding this comment

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

Suggested change
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 }}
Copy link

Choose a reason for hiding this comment

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

Same question

Comment on lines +98 to +100
if grep -q "FAILED" ${{ env.regression-test-file }}; then
exit 1
fi
Copy link

Choose a reason for hiding this comment

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

Suggested change
if grep -q "FAILED" ${{ env.regression-test-file }}; then
exit 1
fi
! grep -q "FAILED" ${{ env.regression-test-file }}

Comment on lines +47 to +49
working-directory: ${{ env.build_dir }}
run: |
cmake --build . --target all --verbose -j `nproc`
Copy link

Choose a reason for hiding this comment

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

Suggested change
working-directory: ${{ env.build_dir }}
run: |
cmake --build . --target all --verbose -j `nproc`
run: |
cmake --build ${{ env.build_dir }} --target all --verbose -j `nproc`

Comment on lines +88 to +90
if grep -q "FAILED" ${{ env.unit-test-file }}; then
exit 1
fi
Copy link

Choose a reason for hiding this comment

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

Suggested change
if grep -q "FAILED" ${{ env.unit-test-file }}; then
exit 1
fi
! grep -q "FAILED" ${{ env.unit-test-file }}

Comment on lines +106 to +108
exit 1
fi
Copy link

Choose a reason for hiding this comment

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

Suggested change
if grep -q "FAILED" ${{ env.regression-test-file }}; then
exit 1
fi
! grep -q "FAILED" ${{ env.regression-test-file }}

Comment on lines +929 to +951
* 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
Copy link

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
Copy link

Choose a reason for hiding this comment

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

Why is shebang omitted?

Copy link

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)

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.

3 participants