Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

In CuArrays v2.0, GPU operation takes hours to run for the first time #660

@lihebi

Description

@lihebi

Describe the bug
On CuArrays v2.0.1, Any GPU operation takes hours to finish. More than 3 hours, but finished overnight. Once the first operation finished, it works fine for the rest of this session, as usual. But a new Julia session still suffers.

It works fine on CuArrays v1.7.2.

To Reproduce
The Minimal Working Example (MWE) for this bug:

using CuArrays
cu(randn(10)) .- 1
cu(randn(10)) - cu(randn(10))

Expected behavior
finish instantly, or a few seconds when running for the first time.

Build log
I have a few other packages installed but they should not affect CuArrays.

julia> Pkg.build()
  Building NNlib  `~/.julia/packages/NNlib/FAI3o/deps/build.log`
  Building FFTW  `~/.julia/packages/FFTW/qqcBj/deps/build.log`
  Building GR  `~/.julia/packages/GR/yMV3y/deps/build.log`
  Building Plots  `~/.julia/packages/Plots/cc8wh/deps/build.log`
  Building ImageMagick  `~/.julia/packages/ImageMagick/vMfoS/deps/build.log`
false

Environment details (please complete this section)
Details on Julia:

Julia Version 1.3.1
Commit 2d5741174c (2019-12-30 21:36 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD Ryzen 5 3600 6-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, znver1)

Julia packages:

(v1.3) pkg> status
    Status `~/.julia/environments/v1.3/Project.toml`
  [336ed68f] CSV v0.5.26
  [be33ccc6] CUDAnative v3.0.2
  [3a865a2d] CuArrays v2.0.1
  [a93c6f00] DataFrames v0.20.2
  [864edb3b] DataStructures v0.17.10
  [1d5cc7b8] IntelOpenMP_jll v2018.0.3+0
  [ae8d54c2] Luxor v1.11.0
  [91a5bcdd] Plots v0.29.9
  [f3b207a7] StatsPlots v0.14.3
  [e88e6eb3] Zygote v0.4.12

CUDA: toolkit and driver version
10.2, 440.59, RTX2060Super

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions