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

stack install accelerate-cuda failing #332

Closed
allenj12 opened this issue Oct 17, 2016 · 4 comments
Closed

stack install accelerate-cuda failing #332

allenj12 opened this issue Oct 17, 2016 · 4 comments

Comments

@allenj12
Copy link

allenj12 commented Oct 17, 2016

when trying to install accelerate-cuda through stack I get this error

http://pastebin.com/2xLgZZGc

@tmcdonell
Copy link
Member

You need to:

stack setup --upgrade-cabal

This is because my cuda package has a custom Setup.hs script, but cabal has no way of testing what version of the library you are compiling the Setup.hs file with (although that is changing, so things should improve). This is mentioned in the docs for that package.

@allenj12
Copy link
Author

Alright sorry about that. Now I am getting this however http://pastebin.com/kavbGvUM , I followed the instructions on the wiki. I installed cuda through arch's pacman, and set the paths (which for me is /opt/cuda/...' however for the ld_library_path I only seem to have a 'lib64', no 'lib'.

@tmcdonell
Copy link
Member

Ah, are you using cuda-8? I haven't finished updating the package for that yet. You can try using this branch, which I haven't finished yet but it should at least compile. In the packages section of your stack.yaml something like...

- location:
    git:    https://github.com/tmcdonell/cuda.git
    commit: 5006e0dec15c18e925caf7b8499d657c50f6cb3f
  extra-dep: true

tmcdonell added a commit to tmcdonell/cuda that referenced this issue Oct 21, 2016
This is a compatability release to improve support for older versions of GHC/Cabal, as well as compilation with, but not support for, CUDA-8.

ping: #41
ping: #44
ping: AccelerateHS/accelerate#332
@tmcdonell
Copy link
Member

I made a patch release which should fix your issues.
https://hackage.haskell.org/package/cuda-0.7.5.1

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