Skip to content

Commit 6788dba

Browse files
committed
Re-enable compute sanitizer testing.
1 parent d57508a commit 6788dba

File tree

2 files changed

+21
-31
lines changed

2 files changed

+21
-31
lines changed

.buildkite/pipeline.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -226,28 +226,26 @@ steps:
226226
!build.pull_request.draft
227227
timeout_in_minutes: 30
228228

229-
# XXX: fails often, and is very slow
230-
#- label: "Compute sanitizer"
231-
# plugins:
232-
# - JuliaCI/julia#v1:
233-
# version: 1.8
234-
# - JuliaCI/julia-test#v1:
235-
# julia_args: "-g2"
236-
# test_args: "--sanitize --quickfail --jobs=2"
237-
# - JuliaCI/julia-coverage#v1:
238-
# dirs:
239-
# - src
240-
# - lib
241-
# - examples
242-
# agents:
243-
# queue: "juliagpu"
244-
# cuda: "*"
245-
# env:
246-
# JULIA_CUDA_USE_COMPAT: 'false' # NVIDIA bug #3418723: injection tools prevent probing libcuda
247-
# commands: |
248-
# julia --project -e 'using CUDA; CUDA.set_runtime_version!(v"11.6")'
249-
# if: build.message !~ /\[skip tests\]/
250-
# timeout_in_minutes: 240
229+
- label: "Compute sanitizer"
230+
plugins:
231+
- JuliaCI/julia#v1:
232+
version: 1.8
233+
- JuliaCI/julia-test#v1:
234+
test_args: "--sanitize core"
235+
- JuliaCI/julia-coverage#v1:
236+
dirs:
237+
- src
238+
- lib
239+
- examples
240+
agents:
241+
queue: "juliagpu"
242+
cuda: "*"
243+
env:
244+
JULIA_CUDA_USE_COMPAT: 'false' # NVIDIA bug #3418723: injection tools prevent probing libcuda
245+
if: build.message !~ /\[skip tests\]/ &&
246+
build.message !~ /\[skip sanitizer\]/ &&
247+
!build.pull_request.draft
248+
timeout_in_minutes: 10
251249

252250
# we want to benchmark every commit on the master branch, even if it failed CI
253251
- wait: ~

test/runtests.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,14 @@ else
144144
# find all GPUs
145145
map(gpu_entry, CUDA.devices())
146146
end
147-
@info("Testing using device(s) " * join(map(gpu->"$(gpu.id) ($(gpu.name))", gpus), ", ", " and ") *
147+
@info("Testing using device " * join(map(gpu->"$(gpu.id) ($(gpu.name))", gpus), ", ", " and ") *
148148
". To change this, specify the `--gpus` argument to the test, or set the `CUDA_VISIBLE_DEVICES` environment variable.")
149149
ENV["CUDA_VISIBLE_DEVICES"] = join(map(gpu->gpu.uuid, gpus), ",")
150150

151151
# determine tests to skip
152152
skip_tests = []
153153
has_cusolvermg() || push!(skip_tests, "libraries/cusolver/multigpu")
154154
has_nvml() || push!(skip_tests, "core/nvml")
155-
if do_sanitize
156-
# XXX: some library tests fail under compute-sanitizer
157-
append!(skip_tests, ["libraries/cutensor"])
158-
# XXX: others take absurdly long
159-
append!(skip_tests, ["libraries/cusolver", "libraries/cusparse"])
160-
# XXX: these hang for some reason
161-
append!(skip_tests, ["base/sorting"])
162-
end
163155
if first(gpus).cap < v"7.0"
164156
push!(skip_tests, "core/device/intrinsics/wmma")
165157
end

0 commit comments

Comments
 (0)