Coder Social home page Coder Social logo

Comments (5)

tmcdonell avatar tmcdonell commented on July 22, 2024

@mchakravarty ghc bug?

from cuda.

mchakravarty avatar mchakravarty commented on July 22, 2024

@tmcdonell May be a change in how GHC interprets the package info, but I'm not sure it is a GHC bug. Maybe we where just lucky that it used to work with the old GHC (as we arguably should have always put the C libraries into extra-libraries).

I guess, the culprit is

cuda_ldflags="$LDFLAGS $LIBS "

in configure.ac. The $LIBS need to go into a separate variable that is substituted into the extra-libraries.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Ah, good catch.

I was thinking that it is probably simpler to do away with the configure script and just put the default library paths etc. into the cabal file, rather than trying to search for them based on the location of nvcc. This might also help the situation on windows.

from cuda.

mchakravarty avatar mchakravarty commented on July 22, 2024

I don't think, this is going to work for OS X. We put quite a bit of extra stuff into the LD flags on that platform.

from cuda.

mchakravarty avatar mchakravarty commented on July 22, 2024

(So, I'd suggest to only change the Linux setup conditionally to fix this.)

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.