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

link error accelerate-blas-0.2.0.1 using ghc-8.6.5 on archlinux #4

Open
yunjuanhuakai opened this issue Aug 31, 2019 · 1 comment
Open

Comments

@yunjuanhuakai
Copy link

I have a link error while installing accelerate-blas:

% nvidia-device-query
CUDA device query (Driver API, statically linked)
CUDA driver version 10.1
CUDA API version 10.1
Detected 1 CUDA capable device

Device 0: GeForce GTX 1080 Ti
  CUDA capability:                          6.1
  CUDA cores:                               3584 cores in 28 multiprocessors (128 cores/MP)
  Global memory:                            11 GB
  Constant memory:                          64 kB
  Shared memory per block:                  48 kB
  Registers per block:                      65536
  Warp size:                                32
  Maximum threads per multiprocessor:       2048
  Maximum threads per block:                1024
  Maximum grid dimensions:                  2147483647 x 65535 x 65535
  Maximum block dimensions:                 1024 x 1024 x 64
  GPU clock rate:                           1.6705 GHz
  Memory clock rate:                        5.505 GHz
  Memory bus width:                         352-bit
  L2 cache size:                            3 MB
  Maximum texture dimensions               
    1D:                                     131072
    2D:                                     131072 x 65536
    3D:                                     16384 x 16384 x 16384
  Texture alignment:                        512 B
  Maximum memory pitch:                     2 GB
  Concurrent kernel execution:              Yes
  Concurrent copy and execution:            Yes, with 2 copy engines
  Runtime limit on kernel execution:        Yes
  Integrated GPU sharing host memory:       No
  Host page-locked memory mapping:          Yes
  ECC memory support:                       No
  Unified addressing (UVA):                 Yes
  Single to double precision performance:   32 : 1
  Supports compute pre-emption:             Yes
  Supports cooperative launch:              Yes
  Supports multi-device cooperative launch: Yes
  PCI bus/location:                         45/0
  Compute mode:                             Default
    Multiple contexts are allowed on the device simultaneously

% cat /proc/version 
Linux version 5.2.11-arch1-1-ARCH (builduser@heftig-107976) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Thu Aug 29 08:09:36 UTC 2019

% ghc --version                                    
The Glorious Glasgow Haskell Compilation System, version 8.6.5
% stack --version              
Version 2.1.3, Git revision 636e3a759d51127df2b62f90772def126cdf6d1f (7735 commits) x86_64 hpack-0.31.2
% stack install accelerate-blas
accelerate-blas> configure
accelerate-blas> Configuring accelerate-blas-0.2.0.1...
accelerate-blas> build
accelerate-blas> Preprocessing library for accelerate-blas-0.2.0.1..
accelerate-blas> Building library for accelerate-blas-0.2.0.1..
accelerate-blas> [ 1 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.Type
accelerate-blas> [ 2 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.LLVM.PTX.Base
accelerate-blas> [ 3 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.LLVM.PTX.Context
accelerate-blas> [ 4 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.LLVM.PTX.Level3
accelerate-blas> [ 5 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.LLVM.PTX.Level2
accelerate-blas> [ 6 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.LLVM.Native.Base
accelerate-blas> [ 7 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.LLVM.Native.Level3
accelerate-blas> [ 8 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.LLVM.Native.Level2
accelerate-blas> [ 9 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.BLAS.Level3
accelerate-blas> [10 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.BLAS.Level2
accelerate-blas> [11 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra.BLAS.Level1
accelerate-blas> [12 of 17] Compiling Data.Array.Accelerate.Numeric.LinearAlgebra
accelerate-blas> [13 of 17] Compiling Data.Array.Accelerate.Numeric.Sum.LLVM.Prim
accelerate-blas> <command line>: can't load .so/.DLL for: /home/makai/.stack/snapshots/x86_64-linux-tinfo6/1b8b79bd69c36a9b8be62f37cea4d99435ba0b755a7bf0aa7d48f4c7ab48dc88/8.6.5/lib/x86_64-linux-ghc-8.6.5/libHScublas-0.5.0.0-FNufv8Dt80A6oN9oYyrLdc-ghc8.6.5.so (/home/makai/.stack/snapshots/x86_64-linux-tinfo6/1b8b79bd69c36a9b8be62f37cea4d99435ba0b755a7bf0aa7d48f4c7ab48dc88/8.6.5/lib/x86_64-linux-ghc-8.6.5/libHScublas-0.5.0.0-FNufv8Dt80A6oN9oYyrLdc-ghc8.6.5.so: undefined symbol: _ZSt7nothrow)

--  While building package accelerate-blas-0.2.0.1 using:
      /home/makai/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build --ghc-options " -fdiagnostics-color=always"
@XinhuaZhang
Copy link

Hello, I have the same problem. Have you solved the problem?

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

2 participants