Giter Site home page Giter Site logo

POWER Supported? about flang HOT 5 CLOSED

AndiH avatar AndiH commented on August 18, 2024
POWER Supported?

from flang.

Comments (5)

sscalpone avatar sscalpone commented on August 18, 2024

You did nothing wrong. We expect POWER to be supported. We are working on upstreaming the changes to support llvm.ppc.vsx.* for POWER. In the meantime, we'll push a change to work around the problem. If you want a quick workaround, you might be able to add -nofma to the compilation options that are used to build libflang.so. (I did not try that workaround.)

from flang.

AndiH avatar AndiH commented on August 18, 2024

Thanks for the info!

I can't find how to add the -nofma flag. By using -DCMAKE_Fortran_FLAGS="-nofma" not. And in the CMakeLists.txt I can't see where the file is created.

from flang.

sscalpone avatar sscalpone commented on August 18, 2024

I just merged a change that disables generation of llvm.ppc.vsx.* for POWER.

from flang.

AndiH avatar AndiH commented on August 18, 2024
$ ./a.out
 hello world

Your changes work! Thank you very much for the quick fix.

Are you planning to eventually support the instructions again at some point?

from flang.

sscalpone avatar sscalpone commented on August 18, 2024

LLVM for OpenPOWER supports fma; flang might generate those now just using its default mechanisms. I don't know. We are preparing to contribute changes to llvm.org; I'm not sure on the timing of those changes.

from flang.

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.