Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example doesn't work in 0.6/OS X #15

Closed
dlfivefifty opened this issue Apr 12, 2017 · 7 comments
Closed

Example doesn't work in 0.6/OS X #15

dlfivefifty opened this issue Apr 12, 2017 · 7 comments

Comments

@dlfivefifty
Copy link
Contributor

I tried running the example but get:

julia> c = a * b # calls to BLAS
ERROR: MethodError: no method matching blas_module(::GPUArrays.CLBackend.CLContext)
Closest candidates are:
  blas_module(::GPUArrays.JLBackend.JLContext) at /Users/solver/.julia/v0.6/GPUArrays/src/backends/julia/julia.jl:81
  blas_module(::Union{GPUArrays.AbstractAccArray{T,1}, GPUArrays.AbstractAccArray{T,2}} where T) at /Users/solver/.julia/v0.6/GPUArrays/src/backends/blas.jl:4
Stacktrace:
 [1] gemm! at /Users/solver/.julia/v0.6/GPUArrays/src/backends/blas.jl:20 [inlined]
 [2] gemm_wrapper!(::GPUArrays.GPUArray{Float32,2,OpenCL.cl.Buffer{Float32},GPUArrays.CLBackend.CLContext}, ::Char, ::Char, ::GPUArrays.GPUArray{Float32,2,OpenCL.cl.Buffer{Float32},GPUArrays.CLBackend.CLContext}, ::GPUArrays.GPUArray{Float32,2,OpenCL.cl.Buffer{Float32},GPUArrays.CLBackend.CLContext}) at ./linalg/matmul.jl:369
 [3] *(::GPUArrays.GPUArray{Float32,2,OpenCL.cl.Buffer{Float32},GPUArrays.CLBackend.CLContext}, ::GPUArrays.GPUArray{Float32,2,OpenCL.cl.Buffer{Float32},GPUArrays.CLBackend.CLContext}) at ./linalg/matmul.jl:148
julia> versioninfo()
Julia Version 0.6.0-pre.beta.9
Commit ceb06740e3 (2017-04-02 01:04 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin16.4.0)
  CPU: Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libgfortblas
  LAPACK: liblapack
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, ivybridge)
@dlfivefifty
Copy link
Contributor Author

There were build errors for CLART.jl which may be causing this....

@SimonDanisch
Copy link
Member

CLBLAS you mean? CLBLAS on osx doesn't have precompiled binaries, so you need to compile it yourself :( checkout: https://github.com/clMathLibraries/clBLAS
Maybe we can set up a compile script with bindeps for CLBLAS though!

@vchuravy
Copy link
Member

vchuravy commented Apr 12, 2017

I think we could use Bindeps with brew clMathLibraries/clBLAS#123, but I don't have access to a Mac.

@SimonDanisch
Copy link
Member

Even easier :)

@dlfivefifty
Copy link
Contributor Author

Hmm, I have brew install clblas, but I still get:

julia> Pkg.build("CLBLAS")
INFO: Building CLBLAS
===============================[ ERROR: CLBLAS ]================================

LoadError:     OSX not oficially supported.
    Find manual build instructions on: https://github.com/clMathLibraries/clBLAS/wiki/Build

while loading /Users/solver/.julia/v0.6/CLBLAS/deps/build.jl, in expression starting on line 38

Also, the website link is not right...

@vchuravy
Copy link
Member

Can you open an issue with https://github.com/JuliaGPU/CLBLAS.jl?

@dlfivefifty
Copy link
Contributor Author

JuliaGPU/CLBLAS.jl#33

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

No branches or pull requests

3 participants