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

Package is not loadable if e.g. CUBLAS cannot be opened #255

Closed
KristofferC opened this issue Jan 15, 2019 · 2 comments · Fixed by #328
Closed

Package is not loadable if e.g. CUBLAS cannot be opened #255

KristofferC opened this issue Jan 15, 2019 · 2 comments · Fixed by #328

Comments

@KristofferC
Copy link
Contributor

KristofferC commented Jan 15, 2019

The comment at

# default (non-functional) values for critical variables,
# making it possible to _load_ the package at all times.

seems to indicate that we want the package to be loadable even if certain functionality is missing. However, if the CUBLAS library cannot be called, we will not define the CUBLAS module and subsequently error here:

@deprecate_binding BLAS CUBLAS

@hack1nt0
Copy link

hack1nt0 commented Mar 1, 2019

Had a related problem.

julia> using CuArrays
ERROR: LoadError: LoadError: UndefVarError: CUBLAS not defined
Stacktrace:
 [1] top-level scope at none:0 (repeats 2 times)
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1044
 [4] include at ./sysimg.jl:29 [inlined]
 [5] include(::String) at /home/dy/.julia/packages/CuArrays/PD3UJ/src/CuArrays.jl:3
 [6] top-level scope at none:0
 [7] top-level scope at none:2
in expression starting at /home/dy/.julia/packages/CuArrays/PD3UJ/src/deprecated.jl:5
in expression starting at /home/dy/.julia/packages/CuArrays/PD3UJ/src/CuArrays.jl:53

julia> versioninfo()
Julia Version 1.0.3
Commit 099e826241 (2018-12-18 01:34 UTC)
Platform Info:
  OS: Linux (x86_64-redhat-linux)
  CPU: Intel(R) Pentium(R) CPU G4400 @ 3.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)

But I have cublas installed, and samples passed. As below:

$ dnf list --installed | grep blas
libcublas-devel.x86_64                               10.1.0.105-1                           @cuda-10-1-local-10.1.105-418.39
libcublas10.x86_64                                   10.1.0.105-1                           @cuda-10-1-local-10.1.105-418.39
openblas.x86_64                                      0.3.5-1.fc29                           @updates                        
openblas-serial.x86_64                               0.3.5-1.fc29                           @updates                        
openblas-srpm-macros.noarch                          2-4.fc29                               @fedora                         
openblas-threads64_.x86_64                           0.3.5-1.fc29                           @updates     

@maleadt
Copy link
Member

maleadt commented Mar 10, 2019

CUBLAS should always be detected; please open a new issue with the output of Pkg.build() (run with JULIA_DEBUG="CUDAapi") and the contents of CuArrays/deps/ext.jl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants