Skip to content

Commit

Permalink
.github/workflows/ci.yml: test-build the Go bridge.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Jul 30, 2024
1 parent 3510853 commit 3c53944
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
~/.cargo/registry
**/Cargo.lock
**/target
go/pkg
key: ${{ runner.os }}-cargo-${{ steps.get-date.outputs.date }}

- name: Environment
Expand Down Expand Up @@ -97,6 +98,15 @@ jobs:
cargo clean -p msm-cuda --release
)
- name: Test-build Go bridge with cuda-12.3
shell: bash
run: |
go version
export PATH=$PATH:/usr/local/cuda-12.3/bin
( cd poc/go
env CGO_CFLAGS="-O2 -D__SPPARK_CGO_DEBUG__" go test
)
- name: Install cuda-minimal-build-11-8
shell: bash
run: |
Expand Down
4 changes: 3 additions & 1 deletion poc/go/poc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ import (
)

func TestInit(t *testing.T) {
CudaFunc()
if sppark.IsCudaAvailable() {
CudaFunc()
}
if err := sppark.Exfiltrate("."); err != nil {
t.Error(err)
}
Expand Down

0 comments on commit 3c53944

Please sign in to comment.