Coder Social home page Coder Social logo

cuda 0.6.5.0 fails to install about cuda HOT 19 CLOSED

tmcdonell avatar tmcdonell commented on July 22, 2024
cuda 0.6.5.0 fails to install

from cuda.

Comments (19)

tmcdonell avatar tmcdonell commented on July 22, 2024

I have not encountered this before. What version of c2hs are you using?

from cuda.

 avatar commented on July 22, 2024

Right, I knew I forgot something! :)

-bash-4.1$ c2hs --version
C->Haskell Compiler, version 0.18.2 The shapeless maps, 31 Oct 2014
build platform is "x86_64-linux" <1, True, True, 1>

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Okay, I was using c2hs-0.17.2. It appears something changed with the newer c2hs. I'll see if I can get a workaround/fix.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

By the way what platform are you running on?

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

I would suggest just using the older 1.17.2 version of c2hs so that you can continue working until we sort this problem out.

Thanks for bringing the issue to my attention!

from cuda.

 avatar commented on July 22, 2024

Thanks Trevor, that fixed the problem.
I'm not really running on platform... I partly installed the newest one and just used cabal to install whatever I needed.

I'll shoot you an email by the early next week with some results from our benchmarks and thoughts on Accelerate.
Keep up the good work :)

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Thanks! Yes, please do let us know how we can improve Accelerate in any way (and sorry the installation was not as smooth as it should have been).

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Submitted as NV Bug ID #1557230

from cuda.

vjeranc avatar vjeranc commented on July 22, 2024

I'll just say that I had similar problems installing accelerate-cuda, where cuda-0.5.1.1 couldn't finish installing. Depending on the c2hs version I would get the OP's error or

c2hs: Errors during expansion of binding hooks:

./Foreign/CUDA/Driver/Marshal.chs:151: (column 15) [ERROR] >>> Unknown identifier!
Cannot find a definition for `cuMemHostRegister' in the header file.

After seeing the nvcc --version line up there, by installing nvidia-cuda-toolkit everything started working fine.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

@vjeranc Do you happen to know which version of nvcc you had installed when you got the error you posted? I try to keep the bindings mostly backwards compatible with old CUDA releases.

from cuda.

vjeranc avatar vjeranc commented on July 22, 2024

@tmcdonell 331.38 was the version of the binary driver I was using, I'm not sure which version of nvcc was present then, currently it's 340.29. nvcc --> 5.5.
I'll try to recreate the issue again.
I hit a wall somewhere and didn't manage to resolve the dependency issues surrounding the accelerate package, so, I'll try again soon.

Although, if it is possible that these errors show up if there's no presence of the nvcc (be it missing installation or missing path) that also might be the reason.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

The oldest version of the CUDA toolkit I have on hand is 4.2, which includes cuMemHostRegister. This is already pretty old, so I wouldn't worry too much about installing very old versions in order to get this information, unless you actually need to use them.

Certainly we should fix the accelerate issues though.

from cuda.

pnutus avatar pnutus commented on July 22, 2024

When I use c2hs 0.18.2 I get the error

Preprocessing library cuda-0.6.5.0...
In file included from <built-in>:170:
<command line>:5:29: error: expected comma in macro parameter list
#define C2HS_MIN_VERSION(mj 1
                            ^
<command line>:7:11: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]
#define rv) (mj<=0&&mn<=18&&rv<=2)
          ^
1 warning and 1 error generated.
c2hs: Error during preprocessing custom header file

When I use c2hs 0.17.2 I get the error

Preprocessing library cuda-0.6.5.0...
c2hs: C header contains errors:

/usr/include/stdlib.h:177: (column 46) [ERROR]  >>> Syntax error !
  The symbol `__OSX_AVAILABLE_BUT_DEPRECATED_MSG' does not fit here.

cabal: Error: some packages failed to install:
cuda-0.6.5.0 failed during the building phase. The exception was:
ExitFailure 1

I am running OS X 10.10 and CUDA 6.5.14.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

I haven't upgraded to Yosemite yet.
If you can find the definition of the __OSX_AVAILABLE_BUT_DEPRECATED_MSG macro that would help. Presumably it has changed since 10.9 and we need to update the dummy implementation here: https://github.com/tmcdonell/cuda/blob/master/cbits/stubs.h#L21

from cuda.

pnutus avatar pnutus commented on July 22, 2024

Can't really find a definition, the closest is this (look at the bottom of the file): http://www.opensource.apple.com/source/xnu/xnu-2422.1.72/EXTERNAL_HEADERS/Availability.h

There is a newer Availability.h on my local computer, but I can't find it online. It looks the same in terms of __OSX_AVAILABLE_BUT_DEPRECATED_MSG, though.

It seems like what's needed is just a message argument. I am not confident enough with compiler macros to make a pull request, though.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Okay, thanks for chasing that! I should get a change to upgrade to yosemite in the next few days and try it out (hopefully).

from cuda.

aesadde avatar aesadde commented on July 22, 2024

Hi,

any progress on this issue yet?
I'm having the same problem as @pnutus.
/usr/include/stdlib.h:177: (column 46) [ERROR] >>> Syntax error ! The symbol __OSX_AVAILABLE_BUT_DEPRECATED_MSG' does not fit here.`

I'm running osx 10.10, nvcc 6.5, and c2hs 0.17.2.

Thanks,

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Hi all,

Sorry I haven't gotten around to this yet, lots of deadlines recently. I'm downloading the Yosemite installer as we speak though, so hopefully will have a fix soon.

from cuda.

tmcdonell avatar tmcdonell commented on July 22, 2024

Version 0.6.5.1 has been uploaded that fixes compilation on Yosemite.

c2hs has been fixed so that this package will compile c2hs HEAD; that version is currently unreleased, but I can edit the comment on Hackage later. For the time being, the documentation header still advises to use version 0.17.

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.