Giter VIP home page Giter VIP logo

Comments (6)

milancurcic avatar milancurcic commented on July 23, 2024

Thanks! As I understand it #76 doesn't address this, right? We can easily add a default -O3 to the autotools build.

from datetime-fortran.

harshula avatar harshula commented on July 23, 2024

#75 does not address this issue.

from datetime-fortran.

harshula avatar harshula commented on July 23, 2024

Is -O3 preferred over -O2 by the fortran community?

from datetime-fortran.

harshula avatar harshula commented on July 23, 2024

Notes:

$ gfortran --version
GNU Fortran (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10)

$ ar --version
GNU ar version 2.30-113.el8
/bin/f95   -O3 -DNDEBUG -O3 -Jinclude -c [...]/datetime-fortran.git/src/datetime_module.f90 -o CMakeFiles/datetime.dir/src/datetime_module.f90.o
...
/bin/ar qc lib/libdatetime.a CMakeFiles/datetime.dir/src/datetime_module.f90.o
/bin/ranlib lib/libdatetime.a
gfortran -c -Wall datetime_module.f90
...
ar ruv libdatetime.a datetime_module.o
ar: creating libdatetime.a
a - datetime_module.o

from datetime-fortran.

milancurcic avatar milancurcic commented on July 23, 2024

I think -O3 is fine to use as a default.

from datetime-fortran.

scivision avatar scivision commented on July 23, 2024

I haven't seen any problems with -O3 on modern compilers. There are corner cases where -O2 is preferred by certain projects or certain applications, but those users already know that can can apply option cmake -DCMAKE_Fortran_FLAGS=-O2

from datetime-fortran.

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.