Giter Site home page Giter Site logo

phyx installed about phyx HOT 11 OPEN

ChaoShenzjs avatar ChaoShenzjs commented on August 11, 2024
phyx installed

from phyx.

Comments (11)

josephwb avatar josephwb commented on August 11, 2024

Python is only used (as a wrapper) to run the tests. They were updated to python3 syntax, but I thought they were backwards-compatible.

What error are you getting?

from phyx.

ChaoShenzjs avatar ChaoShenzjs commented on August 11, 2024

g++ -g -O2 -O3 -std=c++14 -fopenmp -Wall -DOMP -ffast-math -ftree-vectorize -c -fmessage-length=0 -MMD -MP -MF "utils.d" -o "utils.o" "utils.cpp"
g++: error:unrecognized command line option ‘-std=c++14’

from phyx.

josephwb avatar josephwb commented on August 11, 2024

Sorry you are having problems.

This seems to be an issue with your C++ compiler. What does g++ --version return?

from phyx.

ChaoShenzjs avatar ChaoShenzjs commented on August 11, 2024

from phyx.

ChaoShenzjs avatar ChaoShenzjs commented on August 11, 2024

from phyx.

josephwb avatar josephwb commented on August 11, 2024

Did you do the armadillo installation step? Which OS are you using?

from phyx.

ChaoShenzjs avatar ChaoShenzjs commented on August 11, 2024

from phyx.

josephwb avatar josephwb commented on August 11, 2024

Hrm. Which version of armadillo are you using? You need version >= 5.2. Did it install with no warnings? Do you have all of the dependencies installed?

from phyx.

ChaoShenzjs avatar ChaoShenzjs commented on August 11, 2024

from phyx.

josephwb avatar josephwb commented on August 11, 2024

Phyx doesn't use python code, though; it is C++. The only time python is involved is as a wrapper for testing (and generating manpages), and really that it is for the developers to make sure things are not broken after code pushes.

The Y&S paper is almost 10 years old, so it is not surprising that some things do not work. Python2 was officially deprecated 3 years ago, which was about when we changed the syntax of our phyx tests. If you know python well it would not be too difficult to update Y&S to python3. It may even be as simple as changing the print calls; in fact, that was about the only thing done to our tests to 'upgrade' them to python3.

But the python version issue is really unrelated to building/running phyx. It seems that the compiler cannot find where armadillo is installed. Do you know where it was installed? If so you can 1) add an alias to your .bashrc file or 2) export your library path.

Let me know if that works.

from phyx.

josephwb avatar josephwb commented on August 11, 2024

Can I close this @ChaoShenzjs?

from phyx.

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.