Coder Social home page Coder Social logo

Comments (12)

tmcdonell avatar tmcdonell commented on July 22, 2024

I am going to put this down to a Jenkins configuration issue, since installing on the machine interactively works fine. Please reopen though if you find further information.

from cuda.

amigalemming avatar amigalemming commented on July 22, 2024

I got this error, too, with accelerate-cuda-0.15.0.0 from github/head.

from cuda.

amigalemming avatar amigalemming commented on July 22, 2024

However, when compiling with 'cabal configure --enable-executable-dynamic' the linker errors disappear.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

@amigalemming @svenssonjoel what version of ghc are you using? I am wondering now if this is an issue introduced with 7.8, which started using dynamic linking.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

(and I would like to say "does it happen with 7.6", but I don't think getting HEAD to work with 7.6 will be straightforward for you... I'll see if I can dig up a linux box to try it on)

from cuda.

amigalemming avatar amigalemming commented on July 22, 2024

This custom 'configure' stuff usually seems to be quite fragile. I have much better experience with Cabal's support of pkg-config. Unfortunately, not all packages support that, e.g. llvm. Currently I try to generate my own '.pc' file for 'llvm'. Maybe this approach is also reasonable for 'cuda'?

from cuda.

svenssonjoel avatar svenssonjoel commented on July 22, 2024

I can confirm that I still have the same problem. Just tried it fresh in a sandbox locally on my laptop with accelerate and accelerate-cuda from HEAD. Using GHC 7.8.2 (with the patch - not that it influences this).

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

@amigalemming I've never tried writing my own pgk-config scripts. Could you provide an example script demonstrating what you mean? To my naive eyes, it would just seem like shifting the problem somewhere else...?

@svenssonjoel okay, thanks for the update.

Since I can't reproduce this on my machine, I'm going to need you both to try and provide more information so we can narrow down the problem. Since there are two of you now experiencing this problem, hopefully the differential diagnosis will be easier! For a start, please grab the latest github version of the package and try installing with verbose options enabled, and just copy/paste that into a gist for me.

It might also be good to make sure you have the latest cabal installed, and maybe a clean ~/.cabal/config.

from cuda.

amigalemming avatar amigalemming commented on July 22, 2024

@tmcdonell The pkg-config pc files are simple configuration text files, no scripts, i.e. no running programs. Creating such configuration files certainly shifts the problem - in the long run, we can hopefully shift that to the CUDA maintainers. :-)
Here is an example for a pc file generator for LLVM, unfortunately only tested on Linux:
http://hackage.haskell.org/package/llvm-pkg-config
http://hackage.haskell.org/package/llvm-pkg-config-0.0/src/make-pkg-config.sh
http://llvm.org/bugs/show_bug.cgi?id=9405

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

To clarify, are you getting this on git HEAD?

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

@amigalemming I just noticed that my CUDA-6.0 install includes pkg-config files. I'm not sure if they were also there in 5.5, but they are not there with 5.0. It appears that they aren't installed into a default PKG_CONFIG_PATH, however. They also have names prefixed by version, which is a bit annoying (cuda-6.0.pc instead of cuda.pc). Anyway, not sure if this will be useful right now, but perhaps future versions will have better integration with pkg-config, and we can transition to that at that time.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

I'm closing this because it's been quiet for so long, and the configuration process is now completely rewritten. Please open a new ticket if you still have problems!

from cuda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.