Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. OpenMp

OpenMp

Scheduled Pinned Locked Moved C / C++ / MFC
performancequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yoaz
    wrote on last edited by
    #1

    Hi all. I've been trying to use openmp directives to boost preformance. I've managed to make it work, by using stuff like #pragma omp parallel for. But it doesn't work correctly: instead of improving performance, i get better results without it. I've tried different scenarios without results. Has anyone encountered such problems, or used OpenMP successfully so I may get some tips ?

    there are no facts, only interpretations

    L 1 Reply Last reply
    0
    • Y yoaz

      Hi all. I've been trying to use openmp directives to boost preformance. I've managed to make it work, by using stuff like #pragma omp parallel for. But it doesn't work correctly: instead of improving performance, i get better results without it. I've tried different scenarios without results. Has anyone encountered such problems, or used OpenMP successfully so I may get some tips ?

      there are no facts, only interpretations

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Maybe your parallelization strategy for this specific loop is causing cache misses. Try redesigning the loop and see if you can improve cache hits. Its very important to test several variations of the critical loop. Also test both shared and privatization clauses on some variables, you may get better performance through selective privatization. Keep in mind not all nested loops benefit from parallelization. Best Wishes, -David Delaune

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups