Skip to content

Add support for CI testing #124

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

Merged
merged 58 commits into from
Dec 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
c626b95
Adding support for CI testing.
sandeepd-nv Sep 23, 2024
5467b52
Supply python-version.
sandeepd-nv Nov 26, 2024
c78ebfd
Update test driver to test bindings and core separately.
sandeepd-nv Nov 26, 2024
e5bf104
Adding support for CI testing.
sandeepd-nv Sep 23, 2024
360e1b2
Adding support for CI testing. Attempt 2.
sandeepd-nv Sep 23, 2024
67b7aed
Adding support for CI testing. Attempt 3.
sandeepd-nv Sep 23, 2024
6fab977
Use container for tests on the GPU runner.
sandeepd-nv Sep 23, 2024
f2a0939
Use container for tests on the GPU runner. Attempt 2.
sandeepd-nv Sep 23, 2024
508a83c
Remove build caching.
sandeepd-nv Nov 15, 2024
72062aa
Hard select Build (without container).
sandeepd-nv Nov 15, 2024
32ca908
Use container with preinstalled conda for build.
sandeepd-nv Nov 15, 2024
970a8e5
Use container with preinstalled conda for build. Attempt 2.
sandeepd-nv Nov 15, 2024
be969e5
Use container with preinstalled conda for build. Attempt 3.
sandeepd-nv Nov 15, 2024
3382d68
Updated paths.
sandeepd-nv Nov 29, 2024
a9ed0c6
Removed duplicate tests section.
sandeepd-nv Nov 29, 2024
84124b5
Run cuda_core tests before cuda_binding.
sandeepd-nv Dec 4, 2024
47a7235
Merge branch 'main' into add_ci_test
leofang Dec 7, 2024
aeebaf7
skip testing on win; remove mac
leofang Dec 7, 2024
76a8822
fix typo
leofang Dec 7, 2024
c23467f
skip setup if build stage was called
leofang Dec 7, 2024
3d892ad
set build output
leofang Dec 7, 2024
ae0a994
pass output from build to test
leofang Dec 7, 2024
c3fe6a1
wrong place
leofang Dec 7, 2024
0bbc706
it's the build workflow, not action, that should have outputs
leofang Dec 7, 2024
ba0bbde
fix indentation
leofang Dec 7, 2024
aed5bb6
try to take output as a string
leofang Dec 7, 2024
330251d
fix logic
leofang Dec 7, 2024
076104b
multiple fixes
leofang Dec 7, 2024
7c6fba0
merge build & test workflows to allow passing env vars; further simpl…
leofang Dec 8, 2024
ca7b437
no need to pass secrets as we don't have reusable workflows anymore
leofang Dec 8, 2024
5d0b014
pass job outputs explicitly...
leofang Dec 8, 2024
7350965
try changing the order
leofang Dec 8, 2024
eedffd9
fix syntax
leofang Dec 8, 2024
c7d3e03
fix workflow merge error
leofang Dec 8, 2024
35c244f
allow mini-ctk to be cached & reused in tests
leofang Dec 8, 2024
5615d54
fix typo
leofang Dec 8, 2024
bb5fed3
try to escape | and > ...
leofang Dec 8, 2024
9d6e69b
switch to gz for simplicity
leofang Dec 8, 2024
8ec6090
fix artifact parallel upload & lack of cache key
leofang Dec 8, 2024
9456177
fix download path
leofang Dec 8, 2024
2f2046d
fix extract
leofang Dec 8, 2024
c361ad8
propagate cuda-version
leofang Dec 8, 2024
37a3bb1
install binding test deps
leofang Dec 8, 2024
54707dc
fix paths
leofang Dec 8, 2024
3faf8a3
include nvjitlink to mini CTK for testing
leofang Dec 8, 2024
e35706a
ensure cupy is an optional test dependency
leofang Dec 8, 2024
e0c610e
per arch ctk
leofang Dec 8, 2024
fb487d0
fix arg passing
leofang Dec 8, 2024
c01e015
fix invalid context during test teardown
leofang Dec 8, 2024
f1d0e40
WAR: mark PTX test xfail due to CI condition
leofang Dec 8, 2024
a08fbc9
debug
leofang Dec 8, 2024
f36393e
also detect if CUDA is ever initialized
leofang Dec 8, 2024
7f623a0
Merge branch 'add_ci_test' of https://github.com/sandeepd-nv/cuda-pyt…
leofang Dec 8, 2024
f3cc6bd
ensure CUDA is init'd at test start time
leofang Dec 8, 2024
b1f07a3
enforce the right CC is passed to NVRTC
leofang Dec 8, 2024
8a6738b
fix xfail mark
leofang Dec 8, 2024
ed0386a
switch to use github cache to improve reuse
leofang Dec 8, 2024
7b074f0
clean up legacy CI scripts
leofang Dec 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix extract
  • Loading branch information
leofang committed Dec 8, 2024
commit 2f2046d1e5f7f149fa756e7dbcc6468c81cfe98f
5 changes: 2 additions & 3 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,9 @@ runs:
if: ${{ steps.ctk-get-cache.outcome == 'success' }}
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
CUDA_PATH="./cuda_toolkit"
mkdir $CUDA_PATH
ls -l
tar -xzvf $CTK_CACHE_FILENAME -C $CUDA_PATH --strip-components=1
CUDA_PATH="./cuda_toolkit"
tar -xzvf $CTK_CACHE_FILENAME
ls -l $CUDA_PATH
if [ ! -d "$CUDA_PATH/include" ]; then
exit 1
Expand Down
5 changes: 2 additions & 3 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ runs:
- name: Restore CTK cache
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
CUDA_PATH="./cuda_toolkit"
mkdir $CUDA_PATH
ls -l
tar -xzvf $CTK_CACHE_FILENAME -C $CUDA_PATH --strip-components=1
CUDA_PATH="./cuda_toolkit"
tar -xzvf $CTK_CACHE_FILENAME
ls -l $CUDA_PATH
if [ ! -d "$CUDA_PATH/include" ]; then
exit 1
Expand Down
Loading