GithubHelp home page GithubHelp logo

Comments (7)

ceblanton avatar ceblanton commented on July 21, 2024

More details from @nikizadehgfdl:

-march=core-avx2 is the needed update

-qno-opt-dynamic-align might not be needed or wanted. It appears to disable a potential optimization (Intel docs)

Do we want this option, and if so, should it be removed from the ISA definition and added elsewhere? (As it is not related to instruction sets)

-qopt-report-phase=vec and -qopt-report=2 increase the verbosity only (do not affect results).

Do we want this additional verbosity all the time? There are some additional verbose flags that are not used normally in the templates:

https://github.com/NOAA-GFDL/mkmf/blob/master/templates/ncrc-intel.mk#L169-L173

If users want the additional verbosity all the time, these can be added to the CFLAGS and FFLAGS but probably should be removed from the ISA definition as they are not instruction set-related.

If users want the additional verbosity rarely, they can be added to CFLAGS_VERBOSE and FLAGS_VERBOSE.

from mkmf.

ceblanton avatar ceblanton commented on July 21, 2024

Hi @bensonr, could you provide some feedback on the proposed changes to ncrc-intel.mk by @nikizadehgfdl ?

Specifically, whether -qno-opt-dynamic-align is needed and if so, should it be moved from ISA for clarity?

And then for the two others that increase verbosity, should they be used all the time, or only if the VERBOSE macro is set? (They shouldn't be part of the ISA macro for clarity, I think)

from mkmf.

nikizadehgfdl avatar nikizadehgfdl commented on July 21, 2024

I just started compiling on t5 login node. With intel-oneapi/2022.0.2 I get the following warnings

ifx: command line warning #10148: option '-sox' not supported
ifx: command line warning #10148: option '-qno-opt-dynamic-align' not supported
ifx: command line warning #10121: overriding '-march=core-avx2' with '-march=core-avx2'

So, -qno-opt-dynamic-align is not even supported and there is no point putting it in the c5 template, neither is -sox.
And -march=core-avx2 seems to be the default.

from mkmf.

bensonr avatar bensonr commented on July 21, 2024

@nikizadehgfdl - this template is for intel classic ifort and not for use with ifx. The -qno-opt-dynamic-align is necessary for run-to-run reproducibility when using vector ISAs. Without this option, the runtime environment is free to change data alignment, which changes what data can be pipelined.

from mkmf.

bensonr avatar bensonr commented on July 21, 2024

I should also add that any C/C++ options will probably need to change with icx/icpcx due to it being a Clang-based front-end. I think that will make it hard to maintain a single intel.mk file in favor of a classic version and a new oneapi.mk version.

from mkmf.

ceblanton avatar ceblanton commented on July 21, 2024

Since -qno-opt-dynamic-align is required for intel-classic and not supported in intel-oneapi, I agree with @bensonr's suggestion to maintain a classic version and a new intel-oneapi.mk version. We could support both in Bronx-20.

What about the options that increase verbosity (-qopt-report-phase=vec -qopt-report=2)? I suggest they be used only when the VERBOSE macro is set.

from mkmf.

ceblanton avatar ceblanton commented on July 21, 2024

done, in #44

from mkmf.

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.