Skip to content

Commit

Permalink
c'mon
Browse files Browse the repository at this point in the history
  • Loading branch information
TysonRayJones committed Feb 1, 2024
1 parent ccf60b9 commit 021fbd3
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ jobs:
- name: checking CUDA vars in another format
run: |
echo "${{join(steps.run_tests.outputs.*, ' ')}}"
echo "${{join(steps.cuda-vars.outputs.*, ' ')}}"
- name: compile backend
run: |
nvcc -c src/core.cu ${{ env.CUDA_FLAGS }} ${{ steps.cuda-vars.outputs.* }}
nvcc -c src/core.cu ${{ env.CUDA_FLAGS }} ${{join(steps.cuda-vars.outputs.*, ' ')}}
cl -c src/alts.cpp ${{ env.CPP_FLAGS }}
- name: compile main
Expand All @@ -86,7 +86,7 @@ jobs:
- name: link
run: |
nvcc -o main.exe main.obj core.obj alts.obj ${{ env.CUDA_FLAGS }} ${{ steps.cuda-vars.outputs.* }}
nvcc -o main.exe main.obj core.obj alts.obj ${{ env.CUDA_FLAGS }} ${{join(steps.cuda-vars.outputs.*, ' ')}}
c_cpu:
name: C (CPU)
Expand Down Expand Up @@ -121,13 +121,26 @@ jobs:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- uses: Jimver/cuda-toolkit@v0.2.14
id: cuda-toolkit
with:
sub-packages: '["nvcc", "cudart", "visual_studio_integration"]'
method: 'network'

- name: saving CUDA vars
id: cuda-vars
run: |
echo '\
-I"${{ steps.cuda-toolkit.outputs.CUDA_PATH }}" \
-I"${{ steps.cuda-toolkit.outputs.CUDA_PATH }}\bin" \
-I"${{ steps.cuda-toolkit.outputs.CUDA_PATH }}\include" \
-L"${{ steps.cuda-toolkit.outputs.CUDA_PATH }}" \
-L"${{ steps.cuda-toolkit.outputs.CUDA_PATH }}\bin" \
-L"${{ steps.cuda-toolkit.outputs.CUDA_PATH }}\include" \
' >> $GITHUB_OUTPUT
- name: compile backend
run: |
nvcc -c src/core.cu ${{ env.CUDA_FLAGS }} ${{ steps.cuda-vars.outputs.* }}
nvcc -c src/core.cu ${{ env.CUDA_FLAGS }} ${{join(steps.cuda-vars.outputs.*, ' ')}}
cl -c src/alts.cpp ${{ env.CPP_FLAGS }}
- name: compile main
Expand All @@ -136,4 +149,4 @@ jobs:
- name: link
run: |
nvcc -o main.exe main.obj core.obj alts.obj ${{ env.CUDA_FLAGS }}
nvcc -o main.exe main.obj core.obj alts.obj ${{ env.CUDA_FLAGS }} ${{join(steps.cuda-vars.outputs.*, ' ')}}

0 comments on commit 021fbd3

Please sign in to comment.