Skip to content

Commit

Permalink
Merge pull request karpathy#290 from Ricardicus/ci-dev-cuda
Browse files Browse the repository at this point in the history
Adding the example kernels to CI
  • Loading branch information
karpathy authored Apr 30, 2024
2 parents 2490f78 + 5ad0079 commit 9978649
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
- name: Execute testing program (No OpenMP)
run: ./test_gpt2

build-with-cuda-fp32:
runs-on: ubuntu-latest # Host OS, Docker will run on top of this
build-cuda-fp32:
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.4.1-devel-ubuntu22.04

Expand All @@ -64,8 +64,8 @@ jobs:
- name: Build FP32 precision
run: PRECISION=FP32 make train_gpt2cu test_gpt2cu profile_gpt2cu

build-with-cuda-bf16:
runs-on: ubuntu-latest # Host OS, Docker will run on top of this
build-cuda-bf16:
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.4.1-devel-ubuntu22.04

Expand All @@ -76,8 +76,8 @@ jobs:
- name: Build project
run: PRECISION=BF16 make test_gpt2cu train_gpt2cu profile_gpt2cu

build-with-cuda-fp16:
runs-on: ubuntu-latest # Host OS, Docker will run on top of this
build-cuda-fp16:
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.4.1-devel-ubuntu22.04

Expand All @@ -87,3 +87,18 @@ jobs:

- name: Build project
run: PRECISION=FP16 make test_gpt2cu train_gpt2cu profile_gpt2cu

build-cuda-kernels:
runs-on: ubuntu-latest
container:
image: nvidia/cuda:12.4.1-devel-ubuntu22.04

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install OpenMP and OpenMPI
run: apt-get update && apt-get install -y libomp-dev libopenmpi-dev

- name: Build project
run: make -j4 -C dev/cuda

0 comments on commit 9978649

Please sign in to comment.