Can't load CUDA.jl when I launch julia under Nsight compute

When I launch julia with Nsight Compute 2023.1.1 as follows,

ncu --mode=launch julia

I get stalled when I try to load CUDA.jl at the command:

using CUDA

Anyone has the idea to solve it? Thanks in advance.

That’s exactly how NSight Compute works; upon the first API call you need to use the GUI to continue execution. See Profiling · CUDA.jl (it used to hang on the first operation, but now we initialize CUDA already during module init).

Thanks a lot! I didn’t notice changing some default parameters in my pop-up.