Code Monkey home page Code Monkey logo

Comments (6)

sharvil avatar sharvil commented on May 29, 2024

This is a bug in the version of gcc you're using. I've implemented a workaround which should sidestep the bug, but it would be nice if you could verify the fix for me since I don't have access to an older gcc.

from haste.

huangmeng123 avatar huangmeng123 commented on May 29, 2024

It passed the previous error, but now I got the following one:

pytorch/layer_norm_lstm.cc:16:35: fatal error: ATen/cuda/CUDAContext.h: No such file or directory
 #include <ATen/cuda/CUDAContext.h>
                                   ^
compilation terminated.
error: command 'gcc' failed with exit status 1
make: *** [Makefile:71: haste_pytorch] Error 1

and a warning like this:

                               !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (g++ 4.8) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 4.9 and above.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.

See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
for instructions on how to install GCC 4.9 or higher.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                              !! WARNING !!

I guess I can switch to a higher version of gcc to fix the warning (and the original error as well), but not sure what causes the missing file one.

from haste.

sharvil avatar sharvil commented on May 29, 2024

Which version of PyTorch are you using?

from haste.

huangmeng123 avatar huangmeng123 commented on May 29, 2024

0.4.1

from haste.

sharvil avatar sharvil commented on May 29, 2024

Yeah, that's quite an old version of PyTorch without a stable API. You'll need a newer version to use Haste. I've confirmed that Haste builds and runs successfully with PyTorch 1.4 and 1.5, but there's a good chance it'll work with 1.2 and 1.3 as well.

from haste.

huangmeng123 avatar huangmeng123 commented on May 29, 2024

Oh, yea, PyTorch was required to be v1.2+ for this project. Good to know. Thanks!

from haste.

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.