-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'rapidsai/main' into ltoir-reqs
- Loading branch information
Showing
17 changed files
with
199 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# Copyright (c) 2023, NVIDIA CORPORATION. | ||
name: pr | ||
|
||
on: | ||
push: | ||
branches: | ||
- "pull-request/[0-9]+" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
pr-builder: | ||
needs: | ||
- checks | ||
- wheel-build-amd64 | ||
- wheel-build-arm64 | ||
- wheel-test-amd64 | ||
- wheel-test-arm64 | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/pr-builder.yaml@branch-23.12 | ||
checks: | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/checks.yaml@branch-23.12 | ||
with: | ||
enable_check_generated_files: false | ||
wheel-build-amd64: | ||
runs-on: linux-amd64-cpu4 | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
container: | ||
image: "rapidsai/ci-wheel:cuda12.0.1-centos7-py${{ matrix.python-version }}" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get PR Info | ||
id: get-pr-info | ||
uses: rapidsai/shared-actions/get-pr-info@main | ||
- name: Run build_wheel.sh | ||
run: ci/build_wheel.sh | ||
- name: Upload Python Wheel | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheel-build | ||
wheel-build-arm64: | ||
runs-on: linux-arm64-cpu4 | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
container: | ||
image: "rapidsai/ci-wheel:cuda12.0.1-rockylinux8-py${{ matrix.python-version }}" | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get PR Info | ||
id: get-pr-info | ||
uses: rapidsai/shared-actions/get-pr-info@main | ||
- name: Run build_wheel.sh | ||
run: ci/build_wheel.sh | ||
- name: Upload Python Wheel | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: ./wheel-build | ||
wheel-test-amd64: | ||
needs: | ||
- wheel-build-amd64 | ||
runs-on: linux-amd64-gpu-v100-latest-1 | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
linux-version: ["ubuntu20.04", "ubuntu18.04"] | ||
container: | ||
image: "rapidsai/citestwheel:cuda12.0.1-${{ matrix.linux-version }}-py${{ matrix.python-version }}" | ||
env: | ||
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get PR Info | ||
id: get-pr-info | ||
uses: rapidsai/shared-actions/get-pr-info@main | ||
- name: Download Python Wheel | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: ./ | ||
- name: Run test_wheel.sh | ||
run: ci/test_wheel.sh | ||
wheel-test-arm64: | ||
needs: | ||
- wheel-build-arm64 | ||
runs-on: linux-arm64-gpu-a100-latest-1 | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
container: | ||
image: "rapidsai/citestwheel:cuda12.0.1-ubuntu20.04-py${{ matrix.python-version }}" | ||
env: | ||
NVIDIA_VISIBLE_DEVICES: ${{ env.NVIDIA_VISIBLE_DEVICES }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Get PR Info | ||
id: get-pr-info | ||
uses: rapidsai/shared-actions/get-pr-info@main | ||
- name: Download Python Wheel | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: ./ | ||
- name: run test_wheel.sh | ||
run: ci/test_wheel.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2023, NVIDIA CORPORATION | ||
|
||
|
||
rapids-logger "Install CUDA Toolkit" | ||
yum update | ||
yum install -y epel-release | ||
yum install -y nvidia-driver-latest-dkms | ||
yum install -y cuda-toolkit-12-3 | ||
|
||
rapids-logger "Check conda environment" | ||
conda list | ||
|
||
rapids-logger "Build wheel" | ||
export SCCACHE_S3_NO_CREDENTIALS=1 | ||
mkdir -p ./wheel-build | ||
pip wheel . --wheel-dir=./wheel-build -vvv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2023, NVIDIA CORPORATION | ||
|
||
set -euo pipefail | ||
|
||
pip install pre-commit | ||
|
||
# Run pre-commit checks | ||
pre-commit run --all-files --show-diff-on-failure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2023, NVIDIA CORPORATION | ||
|
||
set -e | ||
|
||
rapids-logger "Search artifact directory" | ||
ls ./artifact | ||
|
||
rapids-logger "Install wheel" | ||
pip install --find-links ./artifact pynvjitlink | ||
|
||
rapids-logger "Build Tests" | ||
cd test_binary_generation && make | ||
|
||
rapids-logger "Run Tests" | ||
cd .. | ||
pip install pytest | ||
pytest pynvjitlink/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.1.0 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.