JuliaGPU / CUDA.jl

CUDA programming in Julia.
https://juliagpu.org/cuda/
Other
1.16k stars 206 forks source link

precompile gives "waiting for IO to finish" error #2415

Open oscardssmith opened 2 weeks ago

oscardssmith commented 2 weeks ago
julia> using CUDA
 │ Package CUDA not found, but a package named CUDA is available from a registry. 
 │ Install package?
 │   (docs) pkg> add CUDA 
 └ (y/n/o) [y]: y
   Resolving package versions...
   Installed CUDA_Runtime_Discovery ─ v0.3.3
   Installed SentinelArrays ───────── v1.4.3
   Installed LLVM ─────────────────── v7.2.1
   Installed UnsafeAtomicsLLVM ────── v0.1.4
   Installed CUDA_Driver_jll ──────── v0.9.0+0
   Installed GPUArrays ────────────── v10.2.0
   Installed KernelAbstractions ───── v0.9.20
   Installed CUDA_Runtime_jll ─────── v0.14.0+1
   Installed PrettyTables ─────────── v2.3.2
   Installed GPUCompiler ──────────── v0.26.5
   Installed CUDA ─────────────────── v5.4.2
    Updating `~/.julia/dev/Ferrite/docs/Project.toml`
  [052768ef] + CUDA v5.4.2
    Updating `~/.julia/dev/Ferrite/docs/Manifest.toml`
  Downloaded artifact: CUDA_Driver

[pid 611155] waiting for IO to finish:
 Handle type        uv_handle_t->data
 timer              0x1631cf0->0x7f50886d75b0
This means that a package has started a background task or event source that has not finished running. For precompilation to complete successfully, the event source needs to be closed explicitly. See the developer documentation on fixing precompilation hangs for more help.

it looks like something here is missing a wait call.

maleadt commented 2 weeks ago

You'll have to debug this, as I've never encountered this, not locally or on any CI job.

KSepetanc commented 1 day ago

The error is definitely there. Getting it every time locally. Simple pkg> add CUDA should reproduce it. What info do you need?

KSepetanc commented 17 hours ago

Please see log of issue 2428. You will find there waiting for IO to finish too.

maleadt commented 13 hours ago

This is just a warning, right? Are you experiencing any issues because of it?

There's a section in the docs on this warning: https://docs.julialang.org/en/v1/devdocs/precompile_hang/

KSepetanc commented 12 hours ago

AFAIK it is only warning. I am not aware if any issue is actually caused by this.

maleadt commented 9 hours ago

OK, that's good. I thought I didn't encounter this, but testing in a fresh environment it does appear. I guess it only happens when precompiling CUDA_Driver_jll or so, which is not frequently recompiled, and because it doesn't cause a hang it slipped through the cracks.