@@ -2,7 +2,6 @@ using Distributed
2
2
using Dates
3
3
import REPL
4
4
using Printf: @sprintf
5
- using TimerOutputs
6
5
7
6
# work around JuliaLang/Pkg.jl#2500
8
7
if VERSION < v " 1.8"
@@ -47,14 +46,12 @@ if do_help
47
46
--jobs=N Launch `N` processes to perform tests (default: Sys.CPU_THREADS).
48
47
--gpus=N Expose `N` GPUs to test processes (default: 1).
49
48
--sanitize[=tool] Run the tests under `compute-sanitizer`.
50
- --snoop=FILE Snoop on compiled methods and save to `FILE`.
51
49
52
50
Remaining arguments filter the tests that will be executed.""" )
53
51
exit (0 )
54
52
end
55
53
set_jobs, jobs = extract_flag! (ARGS , " --jobs" ; typ= Int)
56
54
do_sanitize, sanitize_tool = extract_flag! (ARGS , " --sanitize" , " memcheck" )
57
- do_snoop, snoop_path = extract_flag! (ARGS , " --snoop" )
58
55
do_thorough, _ = extract_flag! (ARGS , " --thorough" )
59
56
do_quickfail, _ = extract_flag! (ARGS , " --quickfail" )
60
57
@@ -240,12 +237,6 @@ function addworker(X; kwargs...)
240
237
end
241
238
addworker (min (jobs, length (tests)))
242
239
243
- # prepare to snoop on the compiler
244
- if do_snoop
245
- @info " Writing trace of compiled methods to '$snoop_path '"
246
- snoop_io = open (snoop_path, " w" )
247
- end
248
-
249
240
# pretty print information about gc and mem usage
250
241
testgroupheader = " Test"
251
242
workerheader = " (Worker)"
327
318
t0 = now ()
328
319
results = []
329
320
all_tasks = Task[]
330
- timings = TimerOutput[]
331
321
try
332
322
# Monitor stdin and kill this task on ^C
333
323
# but don't do this on Windows, because it may deadlock in the kernel
385
375
wrkr = p
386
376
387
377
local resp
388
- snoop = do_snoop ? mktemp () : (nothing , nothing )
389
378
390
379
# tests that muck with the context should not be timed with CUDA events,
391
380
# since they won't be valid at the end of the test anymore.
394
383
# run the test
395
384
running_tests[test] = now ()
396
385
try
397
- resp = remotecall_fetch (runtests, wrkr, test_runners[test], test, time_source, snoop[ 1 ] )
386
+ resp = remotecall_fetch (runtests, wrkr, test_runners[test], test, time_source)
398
387
catch e
399
388
isa (e, InterruptException) && return
400
389
resp = Any[e]
413
402
else
414
403
print_testworker_stats (test, wrkr, resp)
415
404
end
416
-
417
- # aggregate the snooped compiler invocations
418
- if do_snoop
419
- for line in eachline (snoop[2 ])
420
- println (snoop_io, line)
421
- end
422
- close (snoop[2 ])
423
- rm (snoop[1 ])
424
- end
425
405
end
426
406
427
407
if p != = nothing
@@ -461,17 +441,6 @@ t1 = now()
461
441
elapsed = canonicalize (Dates. CompoundPeriod (t1- t0))
462
442
println (" Testing finished in $elapsed " )
463
443
464
- # report work timings
465
- if isdefined (CUDA, :to )
466
- println ()
467
- for to in timings
468
- TimerOutputs. merge! (CUDA. to, to)
469
- end
470
- TimerOutputs. complement! (CUDA. to)
471
- show (CUDA. to, sortby= :name )
472
- println ()
473
- end
474
-
475
444
# construct a testset to render the test results
476
445
o_ts = Test. DefaultTestSet (" Overall" )
477
446
Test. push_testset (o_ts)
0 commit comments