GithubHelp home page GithubHelp logo

Comments (6)

RobertPincus avatar RobertPincus commented on July 27, 2024

@MHBalsmeier The project does not support CMake at this time. We are not in a position to debug every individual's setup. If the code itself has reproducible errors we would like to know and are grateful for pull requests that identify and fix them.

That said, looking at your output suggests that you are trying to compile the code with Gnu Fortran 9,3 using OpenMP directives. The compilation failures arise when processing the OpenMP directives for for GPU offloading. It may be that the compiler does not support GPU offloading with OpenMP directives. If you don't plan to use a GPU there is no reason to build the code with OpenMP.

Suggestions for compiler flags are available at https://github.com/earth-system-radiation/rte-rrtmgp/blob/main/Compiler-flags.md. If you have suggestions as to how these might be improved please open a pull request.

from rte-rrtmgp.

MHBalsmeier avatar MHBalsmeier commented on July 27, 2024

Okay, thanks, sorry for asking, I will stick to the old version.

from rte-rrtmgp.

RobertPincus avatar RobertPincus commented on July 27, 2024

@MHBalsmeier If you can convince CMake to compile without using OpenMP this should also work.

from rte-rrtmgp.

MHBalsmeier avatar MHBalsmeier commented on July 27, 2024

Yes but my dynamical core is in C and I have OpenMP in it, it does not seem to be possible to compile the C code with OpenMP and RRTM without OpenMP. I can only compile the whole model with or without OpenMP.

from rte-rrtmgp.

RobertPincus avatar RobertPincus commented on July 27, 2024

@MHBalsmeier You could consider to compile RTE+RRTMGP separately, with its own rules, and link to it as a library. This is an approach other models have taken.

Likely CMake also allows you to specify compiler flags on a per-file or per-collection-of-files basis.

from rte-rrtmgp.

MHBalsmeier avatar MHBalsmeier commented on July 27, 2024

Thanks, I'll try that.

from rte-rrtmgp.

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.