JuliaGPU/CUDAnative.jl

test/utils.jl:julia_script should forward --startup-file=no

Closed this issue · 8 comments

As suggested on slack, I am reporting here that the tests are failing for a quite standard installation:

image

I am on Manjaro Linux + KDE, NVIDIA GPU GeForce GTX 1660.

Julia v1.3.0
CUDAnative.jl v2.6.0

Anything else I can report to help fix the tests?

Anything else I can report to help fix the tests?

Better report the actual logs, we can't do much with just an overview of what failed.

The full output is attached below:

(v1.3) pkg> test CUDAnative
   Testing CUDAnative
 Resolving package versions...
    Status `/tmp/jl_zvRsQ6/Manifest.toml`
  [79e6a3ab] Adapt v1.0.0
  [fa961155] CEnum v0.2.0
  [3895d2a7] CUDAapi v2.0.0
  [c5f51814] CUDAdrv v4.0.4
  [be33ccc6] CUDAnative v2.6.0
  [864edb3b] DataStructures v0.17.6
  [929cbde3] LLVM v1.3.2
  [bac558e1] OrderedCollections v1.1.0
  [a759f4b9] TimerOutputs v0.5.3
  [2a0f44e3] Base64  [`@stdlib/Base64`]
  [8ba89e20] Distributed  [`@stdlib/Distributed`]
  [b77e0a4c] InteractiveUtils  [`@stdlib/InteractiveUtils`]
  [8f399da3] Libdl  [`@stdlib/Libdl`]
  [37e2e46d] LinearAlgebra  [`@stdlib/LinearAlgebra`]
  [56ddb016] Logging  [`@stdlib/Logging`]
  [d6f4376e] Markdown  [`@stdlib/Markdown`]
  [de0858da] Printf  [`@stdlib/Printf`]
  [9a3f8284] Random  [`@stdlib/Random`]
  [9e88b42a] Serialization  [`@stdlib/Serialization`]
  [6462fe0b] Sockets  [`@stdlib/Sockets`]
  [8dfed614] Test  [`@stdlib/Test`]
  [4ec0a83e] Unicode  [`@stdlib/Unicode`]
[ Info: Testing using device GeForce GTX 1660
stack traces at different debug levels: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:540
  Expression: occursin("ERROR: KernelException: exception thrown during kernel execution on device", err)
   Evaluated: occursin("ERROR: KernelException: exception thrown during kernel execution on device", "ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:\n- Run `import Pkg; Pkg.add(\"OhMyREPL\")` to install the OhMyREPL package.\n\nStacktrace:\n [1] require(::Module, ::Symbol) at ./loading.jl:887\n [2] include at ./boot.jl:328 [inlined]\n [3] include_relative(::Module, ::String) at ./loading.jl:1105\n [4] include at ./Base.jl:31 [inlined]\n [5] include_ifexists at ./client.jl:211 [inlined]\n [6] load_julia_startup() at ./client.jl:319\n [7] exec_options(::Base.JLOptions) at ./client.jl:258\n [8] _start() at ./client.jl:460\nin expression starting at /home/juliohm/.julia/config/startup.jl:1\n")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:540
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:525
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
stack traces at different debug levels: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:546
  Expression: occursin("ERROR: KernelException: exception thrown during kernel execution on device", err)
   Evaluated: occursin("ERROR: KernelException: exception thrown during kernel execution on device", "ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:\n- Run `import Pkg; Pkg.add(\"OhMyREPL\")` to install the OhMyREPL package.\n\nStacktrace:\n [1] require(::Module, ::Symbol) at ./loading.jl:887\n [2] include at ./boot.jl:328 [inlined]\n [3] include_relative(::Module, ::String) at ./loading.jl:1105\n [4] include at ./Base.jl:31 [inlined]\n [5] include_ifexists at ./client.jl:211 [inlined]\n [6] load_julia_startup() at ./client.jl:319\n [7] exec_options(::Base.JLOptions) at ./client.jl:258\n [8] _start() at ./client.jl:460\nin expression starting at /home/juliohm/.julia/config/startup.jl:1\n")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:546
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:525
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
stack traces at different debug levels: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:547
  Expression: occursin("ERROR: a exception was thrown during kernel execution", out)
   Evaluated: occursin("ERROR: a exception was thrown during kernel execution", "")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:547
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:525
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
stack traces at different debug levels: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:548
  Expression: occursin("Run Julia on debug level 2 for device stack traces", out)
   Evaluated: occursin("Run Julia on debug level 2 for device stack traces", "")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:548
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:525
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
stack traces at different debug levels: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:553
  Expression: occursin("ERROR: KernelException: exception thrown during kernel execution on device", err)
   Evaluated: occursin("ERROR: KernelException: exception thrown during kernel execution on device", "ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:\n- Run `import Pkg; Pkg.add(\"OhMyREPL\")` to install the OhMyREPL package.\n\nStacktrace:\n [1] require(::Module, ::Symbol) at ./loading.jl:887\n [2] include at ./boot.jl:328 [inlined]\n [3] include_relative(::Module, ::String) at ./loading.jl:1105\n [4] include at ./Base.jl:31 [inlined]\n [5] include_ifexists at ./client.jl:211 [inlined]\n [6] load_julia_startup() at ./client.jl:319\n [7] exec_options(::Base.JLOptions) at ./client.jl:258\n [8] _start() at ./client.jl:460\nin expression starting at /home/juliohm/.julia/config/startup.jl:1\n")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:553
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:525
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
stack traces at different debug levels: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:554
  Expression: occursin("ERROR: a exception was thrown during kernel execution", out)
   Evaluated: occursin("ERROR: a exception was thrown during kernel execution", "")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:554
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:525
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
stack traces at different debug levels: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:558
  Expression: occursin("[1] Int64 at float.jl", out)
   Evaluated: occursin("[1] Int64 at float.jl", "")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:558
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:525
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
stack traces at different debug levels: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:560
  Expression: occursin("[2] kernel at none:2", out)
   Evaluated: occursin("[2] kernel at none:2", "")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:560
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:525
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
#329: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:580
  Expression: occursin("ERROR: KernelException: exception thrown during kernel execution on device", err)
   Evaluated: occursin("ERROR: KernelException: exception thrown during kernel execution on device", "ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:\n- Run `import Pkg; Pkg.add(\"OhMyREPL\")` to install the OhMyREPL package.\n\nStacktrace:\n [1] require(::Module, ::Symbol) at ./loading.jl:887\n [2] include at ./boot.jl:328 [inlined]\n [3] include_relative(::Module, ::String) at ./loading.jl:1105\n [4] include at ./Base.jl:31 [inlined]\n [5] include_ifexists at ./client.jl:211 [inlined]\n [6] load_julia_startup() at ./client.jl:319\n [7] exec_options(::Base.JLOptions) at ./client.jl:258\n [8] _start() at ./client.jl:460\nin expression starting at /home/juliohm/.julia/config/startup.jl:1\n")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:580
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:567
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
#329: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:581
  Expression: occursin("ERROR: a exception was thrown during kernel execution", out)
   Evaluated: occursin("ERROR: a exception was thrown during kernel execution", "")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:581
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:567
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
#329: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:582
  Expression: occursin("foo at none:1", out)
   Evaluated: occursin("foo at none:1", "")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:582
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:567
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
#329: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:583
  Expression: occursin("bar at none:2", out)
   Evaluated: occursin("bar at none:2", "")
Stacktrace:
 [1] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:583
 [2] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:567
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:523
 [6] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [7] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:5
ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:
- Run `import Pkg; Pkg.add("OhMyREPL")` to install the OhMyREPL package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:887
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include at ./Base.jl:31 [inlined]
 [5] include_ifexists at ./client.jl:211 [inlined]
 [6] load_julia_startup() at ./client.jl:319
 [7] exec_options(::Base.JLOptions) at ./client.jl:258
 [8] _start() at ./client.jl:460
in expression starting at /home/juliohm/.julia/config/startup.jl:1
example = hello_world.jl: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
  Expression: rv
Stacktrace:
 [1] (::var"#605#608"{String})() at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
 [2] cd(::var"#605#608"{String}, ::String) at ./file.jl:104
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:18
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:3
ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:
- Run `import Pkg; Pkg.add("OhMyREPL")` to install the OhMyREPL package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:887
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include at ./Base.jl:31 [inlined]
 [5] include_ifexists at ./client.jl:211 [inlined]
 [6] load_julia_startup() at ./client.jl:319
 [7] exec_options(::Base.JLOptions) at ./client.jl:258
 [8] _start() at ./client.jl:460
in expression starting at /home/juliohm/.julia/config/startup.jl:1
example = pairwise.jl: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
  Expression: rv
Stacktrace:
 [1] (::var"#605#608"{String})() at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
 [2] cd(::var"#605#608"{String}, ::String) at ./file.jl:104
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:18
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:3
ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:
- Run `import Pkg; Pkg.add("OhMyREPL")` to install the OhMyREPL package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:887
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include at ./Base.jl:31 [inlined]
 [5] include_ifexists at ./client.jl:211 [inlined]
 [6] load_julia_startup() at ./client.jl:319
 [7] exec_options(::Base.JLOptions) at ./client.jl:258
 [8] _start() at ./client.jl:460
in expression starting at /home/juliohm/.julia/config/startup.jl:1
example = peakflops.jl: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
  Expression: rv
Stacktrace:
 [1] (::var"#605#608"{String})() at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
 [2] cd(::var"#605#608"{String}, ::String) at ./file.jl:104
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:18
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:3
ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:
- Run `import Pkg; Pkg.add("OhMyREPL")` to install the OhMyREPL package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:887
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include at ./Base.jl:31 [inlined]
 [5] include_ifexists at ./client.jl:211 [inlined]
 [6] load_julia_startup() at ./client.jl:319
 [7] exec_options(::Base.JLOptions) at ./client.jl:258
 [8] _start() at ./client.jl:460
in expression starting at /home/juliohm/.julia/config/startup.jl:1
example = reduce/verify.jl: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
  Expression: rv
Stacktrace:
 [1] (::var"#605#608"{String})() at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
 [2] cd(::var"#605#608"{String}, ::String) at ./file.jl:104
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:18
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:3
ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:
- Run `import Pkg; Pkg.add("OhMyREPL")` to install the OhMyREPL package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:887
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include at ./Base.jl:31 [inlined]
 [5] include_ifexists at ./client.jl:211 [inlined]
 [6] load_julia_startup() at ./client.jl:319
 [7] exec_options(::Base.JLOptions) at ./client.jl:258
 [8] _start() at ./client.jl:460
in expression starting at /home/juliohm/.julia/config/startup.jl:1
example = scan.jl: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
  Expression: rv
Stacktrace:
 [1] (::var"#605#608"{String})() at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
 [2] cd(::var"#605#608"{String}, ::String) at ./file.jl:104
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:18
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:3
ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:
- Run `import Pkg; Pkg.add("OhMyREPL")` to install the OhMyREPL package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:887
 [2] include at ./boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1105
 [4] include at ./Base.jl:31 [inlined]
 [5] include_ifexists at ./client.jl:211 [inlined]
 [6] load_julia_startup() at ./client.jl:319
 [7] exec_options(::Base.JLOptions) at ./client.jl:258
 [8] _start() at ./client.jl:460
in expression starting at /home/juliohm/.julia/config/startup.jl:1
example = vadd.jl: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
  Expression: rv
Stacktrace:
 [1] (::var"#605#608"{String})() at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:34
 [2] cd(::var"#605#608"{String}, ::String) at ./file.jl:104
 [3] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:18
 [4] top-level scope at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.3/Test/src/Test.jl:1107
 [5] top-level scope at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/examples.jl:3
 ────────────────────────────────────────────────────────────────────────────────────
                                             Time                   Allocations      
                                     ──────────────────────   ───────────────────────
          Tot / % measured:               94.7s / 11.9%           10.4GiB / 12.6%    

 Section                     ncalls     time   %tot     avg     alloc   %tot      avg
 ────────────────────────────────────────────────────────────────────────────────────
 LLVM middle-end                372    6.48s  57.4%  17.4ms    661MiB  49.4%  1.78MiB
   IR generation                372    3.72s  33.0%  10.0ms    598MiB  44.7%  1.61MiB
     emission                   372    2.30s  20.4%  6.19ms    443MiB  33.1%  1.19MiB
     rewrite                    371    1.37s  12.2%  3.70ms    153MiB  11.4%   422KiB
       lower throw              371    361ms  3.20%   973μs   44.8MiB  3.35%   124KiB
       hide unreachable       1.52k    309ms  2.74%   203μs   17.5MiB  1.31%  11.8KiB
         find                 1.52k    173ms  1.53%   114μs    498KiB  0.04%     336B
         predecessors         1.52k   98.9ms  0.88%  65.0μs   10.7MiB  0.80%  7.18KiB
         replace              1.52k   32.6ms  0.29%  21.4μs   2.41MiB  0.18%  1.62KiB
       hide trap                371   34.2ms  0.30%  92.2μs   3.16MiB  0.24%  8.72KiB
     linking                    371   15.0ms  0.13%  40.4μs    486KiB  0.04%  1.31KiB
     clean-up                   371   3.26ms  0.03%  8.78μs    677KiB  0.05%  1.82KiB
   device library                32    1.39s  12.3%  43.5ms   45.9KiB  0.00%  1.43KiB
   optimization                 366    1.19s  10.6%  3.26ms   56.5MiB  4.22%   158KiB
   runtime library               66   47.5ms  0.42%   719μs   60.4KiB  0.00%     936B
 validation                     671    4.02s  35.7%  6.00ms    664MiB  49.6%  0.99MiB
 LLVM back-end                  313    468ms  4.15%  1.50ms   4.26MiB  0.32%  13.9KiB
   machine-code generation      313    410ms  3.63%  1.31ms   1.00MiB  0.07%  3.26KiB
   preparation                  313   57.8ms  0.51%   185μs   3.25MiB  0.24%  10.6KiB
 device runtime library           9    313ms  2.77%  34.7ms   9.01MiB  0.67%  1.00MiB
 Julia front-end                373   2.69ms  0.02%  7.21μs   78.8KiB  0.01%     216B
 strip debug info                70    208μs  0.00%  2.97μs     0.00B  0.00%    0.00B
 ────────────────────────────────────────────────────────────────────────────────────
Test Summary:                                | Pass  Fail  Total
CUDAnative                                   |  462    18    480
  base interface                             |             No tests
  pointer                                    |   20           20
  code generation                            |   90           90
  code generation (relying on a device)      |    8            8
  execution                                  |   64    12     76
    @cuda                                    |   12           12
    argument passing                         |   28           28
    exceptions                               |    5    12     17
      stack traces at different debug levels |    4     8     12
      #329                                   |    1     4      5
    shmem divergence bug                     |    7            7
    dynamic parallelism                      |   11           11
    cooperative groups                       |    1            1
  pointer                                    |   41           41
  device arrays                              |   20           20
  CUDA functionality                         |  213          213
  examples                                   |          6      6
    example = hello_world.jl                 |          1      1
    example = pairwise.jl                    |          1      1
    example = peakflops.jl                   |          1      1
    example = reduce/verify.jl               |          1      1
    example = scan.jl                        |          1      1
    example = vadd.jl                        |          1      1
ERROR: LoadError: Some tests did not pass: 462 passed, 18 failed, 0 errored, 0 broken.
in expression starting at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/runtests.jl:10
ERROR: Package CUDAnative errored during testing
#329: Test Failed at /home/juliohm/.julia/packages/CUDAnative/RhbZ0/test/device/execution.jl:580
  Expression: occursin("ERROR: KernelException: exception thrown during kernel execution on device", err)
   Evaluated: occursin("ERROR: KernelException: exception thrown during kernel execution on device", "ERROR: LoadError: ArgumentError: Package OhMyREPL not found in current path:\n- Run `import Pkg; Pkg.add(\"OhMyREPL\")` to install the OhMyREPL package.\n\nStacktrace:\n [1] require(::Module, ::Symbol) at ./loading.jl:887\n [2] include at ./boot.jl:328 [inlined]\n [3] include_relative(::Module, ::String) at ./loading.jl:1105\n [4] include at ./Base.jl:31 [inlined]\n [5] include_ifexists at ./client.jl:211 [inlined]\n [6] load_julia_startup() at ./client.jl:319\n [7] exec_options(::Base.JLOptions) at ./client.jl:258\n [8] _start() at ./client.jl:460\nin expression starting at /home/juliohm/.julia/config/startup.jl:1\n")

Your set-up is broken, see the OhMyREPL bit in there, CUDAnative doesn't rely on that package.

Interesting. I didn't know that my startup.jl could affect test behavior? Is it reasonable?

Why OhMyREPL interferes with CUDAnative.jl tests? I cleared my startup.jl and the tests passed.

CUDAnative does nothing out of the ordinary, probably there's some bad interaction between the test environment and/or your startup file. Are you running tests with Pkg? It should pass --startup-file=no.

Oh wait, CUDAnative tests do spawn other Julia processes, probably we don't forward that flag correctly.

function julia_script(code, args=``)
# FIXME: this doesn't work when the compute mode is set to exclusive
script = "using CUDAnative; import CUDAdrv; $code"
out = Pipe()
err = Pipe()
cmd = `$(Base.julia_cmd()) -e $script`
if Base.JLOptions().project != C_NULL
# --project isn't preserved by julia_cmd()
cmd = `$cmd --project=$(unsafe_string(Base.JLOptions().project))`
end
cmd = `$cmd $args`
proc = run(pipeline(cmd, stdout=out, stderr=err), wait=false)
close(out.in)
close(err.in)
wait(proc)
proc.exitcode, read(out, String), read(err, String)
end

I am doing the standard "] test CUDAnative" in a fresh session. Glad you found the source of the problem. 👍