Giter Site home page Giter Site logo

CPU usage issue about fgsl HOT 6 CLOSED

reinh-bader avatar reinh-bader commented on May 30, 2024
CPU usage issue

from fgsl.

Comments (6)

tschoonj avatar tschoonj commented on May 30, 2024

That's a pretty big matrix so I am not surprised it eats into your CPU usage.

FGSL is really just a thin wrapper around GSL, so any performance issues will be due to the underlying GSL methods that are being called. You can confirm this by rewriting your program into C and use GSL directly.

from fgsl.

OakleyYoung avatar OakleyYoung commented on May 30, 2024

Thank you for the quick response! Sorry, I should have said that the CPU usage is over multiple CPUs. I have run the same program in c and it uses 100% of 1 CPU, but when I write the same code in Fortran with fgsl it starts using nearly 100% of multiple CPUs.

from fgsl.

tschoonj avatar tschoonj commented on May 30, 2024

Oh I understand now.

You seem to be using a for loop in your Fortran code that calls fgsl_splinalg_itersolve_iterate . Given that the top-level for loop iterations look independent to me, perhaps the Fortran compiler parallellized them out? Did you use some aggressive optimisation option while compiling? Perhaps try with all optimisations turned off (-O0) and see if the multithreading persists.

Either way, I am not convinced that FGSL could be responsible for this.

from fgsl.

OakleyYoung avatar OakleyYoung commented on May 30, 2024

Thank you! Unfortunately turning off the optimizations seems to not work either. I am going to do a bit of research and see if other FORTRAN flags could be anyway related to multi-threading. Again thanks so much for the help and quick responses. Hopefully, I will be able to get it working!

from fgsl.

reinh-bader avatar reinh-bader commented on May 30, 2024

I am closing this issue as not directly related to the FGSL implementation.

from fgsl.

reinh-bader avatar reinh-bader commented on May 30, 2024

Question on usage was answered.

from fgsl.

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.