-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
factored out run_cuda_eval, so it can be used independently of modal (#…
…120) * factored out run_cuda_eval, so it can be used independently of modal * refactoring based on discord discussion * use the test script also for a simple github test
- Loading branch information
Showing
5 changed files
with
234 additions
and
163 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,28 @@ | ||
name: CUDA Test | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
check-identity: | ||
runs-on: [gpumode-nvidia-arc] | ||
timeout-minutes: 10 | ||
container: | ||
image: nvidia/cuda:12.4.0-devel-ubuntu22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Run script | ||
shell: bash | ||
run: python3 scripts/local-test.py | ||
|
||
env: | ||
CUDA_VISIBLE_DEVICES: 0 |
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,15 @@ | ||
import sys | ||
from pathlib import Path | ||
|
||
sys.path.append("src/discord-cluster-manager") | ||
|
||
from leaderboard_eval import cu_eval | ||
from run_eval import run_cuda_script | ||
|
||
ref = Path("examples/identity_cuda/reference.cuh") | ||
sub = Path("examples/identity_cuda/submission.cuh") | ||
|
||
cout, score = run_cuda_script(cu_eval, ref.read_text(), sub.read_text(), arch=None) | ||
print(cout) | ||
print(score) | ||
exit(0 if score > 0 else 1) |
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
Oops, something went wrong.