GithubHelp home page GithubHelp logo

Makefile contents about qp2 HOT 5 CLOSED

abigcoder04 avatar abigcoder04 commented on August 29, 2024
Makefile contents

from qp2.

Comments (5)

scemama avatar scemama commented on August 29, 2024

Yes it is normal. QP is compiled with ninja, so make calls ninja.

from qp2.

abigcoder04 avatar abigcoder04 commented on August 29, 2024

@scemama
my bro, If I want to change the statements inside the compiled file, to change some statements that the compiler executes by default, which file should I change?

from qp2.

scemama avatar scemama commented on August 29, 2024

The compiler flags are specified in the files in the config directory. If you need to change compiler flags, you should create your own new file, otherwise it will be overwritten when you make a git pull.

These configuration files are parsed by scripts to produce the config/build.ninja file which is used by ninja to compile the files.
The scripts producing the config/build.ninja file are located in scripts/compilation/.

from qp2.

abigcoder04 avatar abigcoder04 commented on August 29, 2024

If I now install QP under another version of Linux kernel, such as ARM, I have the following error in the make process:

bash -c "source quantum_package.rc ; ninja"
[WARNING] Running as root is not recommended
[1/3] Compiling all modules
[0/138] Create /root/test/qp2/lib/libezfio_irp.a
make[1]: Entering directory '/root/test/qp2/external/ezfio'
make -C src veryclean
make[2]: Entering directory '/root/test/qp2/external/ezfio/src'
mkdir -p IRPF90_temp/
gfortran -ffree-line-length-none -I . -mavx -g -fPIC -fopenmp -c system_f.f90 -o IRPF90_temp/system_f.o && cp system.mod IRPF90_temp/
gfortran: error: unrecognized command line option ‘-mavx’

Now I need to modify the Makefile followed by QP compilation, but since QP is compiled by calling ninja, I need to modify which file to modify:
gfortran: error: unrecognized command line option ‘-mavx’

from qp2.

scemama avatar scemama commented on August 29, 2024

You need to create a new config file where the flag -mavx is absent. But I believe you will have other problems on ARM because we never tested it.

from qp2.

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.