Skip to content

Commit 5a7fdc3

Browse files
committed
fix(ci): exclude metal and pjrt from go vet
These packages use unsafe.Pointer for GPU/accelerator runtime bindings via purego/dlopen, same as cuda/hip/opencl. The pjrt package was added after the initial CI exclusion list.
1 parent 70f8fd5 commit 5a7fdc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
# Run go vet on all packages except those with intentional
1919
# unsafe.Pointer usage for GPU runtime bindings via purego/dlopen.
2020
# These warnings are expected and documented in docs/QUALITY.md.
21-
go vet $(go list ./... | grep -v '/internal/cuda$' | grep -v '/internal/hip$' | grep -v '/internal/opencl$' | grep -v '/internal/cudnn$' | grep -v '/internal/tensorrt$' | grep -v '/internal/fpga$' | grep -v '/internal/sycl$')
21+
go vet $(go list ./... | grep -v '/internal/cuda$' | grep -v '/internal/hip$' | grep -v '/internal/opencl$' | grep -v '/internal/cudnn$' | grep -v '/internal/tensorrt$' | grep -v '/internal/fpga$' | grep -v '/internal/sycl$' | grep -v '/internal/metal$' | grep -v '/internal/pjrt$')
2222
- run: go test -race -timeout 300s ./...

0 commit comments

Comments
 (0)