Coder Social home page Coder Social logo

Comments (5)

jacobwilliams avatar jacobwilliams commented on June 7, 2024

Should be fixed now.

from json-fortran.

szaghi avatar szaghi commented on June 7, 2024

Hi all,

I am not sure why you used "sequence" attribute (I read your developments,
but I miss this specific issue; maybe "sequence" is necessary for C
interoprrability or other peculiar situations), anyhow I would like to
highligth that declaring sequence attribute for derived type components can
compromise the optimizations of the campiler that is prevented to modify
the memory "shape". In some circumstances, the compiler optimizer greatly
improves the memory handling if it is allowed to modify the derived type
components, but the sequence can prevent this.

This is just a reminder, in many case this is not relevant, but I was not
sure that you have evaluated this aspect and I would like to help you, this
project being beatiful!

See you soon.

Il giorno 03:07 gio 08/gen/2015 Jacob Williams [email protected]
ha scritto:

Closed #34 #34.


Reply to this email directly or view it on GitHub
#34 (comment).

from json-fortran.

jacobwilliams avatar jacobwilliams commented on June 7, 2024

The SEQUENCE was because I'm using it an argument in a DLL subroutine. See: https://software.intel.com/en-us/forums/topic/538073 . I'll do some speed tests to see if it is causing a significant performance penalty.

from json-fortran.

zbeekman avatar zbeekman commented on June 7, 2024

I think that if the memory alignment warnings issued by ifort have been addressed this shouldn't be a big issue.

from json-fortran.

szaghi avatar szaghi commented on June 7, 2024

I am not sure, but I think it is more complicated.

For example there are situations where the components of a derived type should be not aligned for memory optimization, thus the compiler use memory padding to optimize the derived type memory handling (for caching/prefetching and similar obscure nerd-details :-) ). Sequence prevent memory padding...

I think that in this case the use of sequence has not relevant consequences on performances, but if there is the time to check it, this is a plus. This is just a remainder due to my paranoiac nature.

See you soon.

from json-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.