Wednesday, 15 October 2014

WHEN TO USE OPENMP

WHEN TO USE OPENMP
     i.        
         
     i.             Target platform is multicore or multiprocessor
    In these types of cases, if the application is saturating a core or processor, making it into a multithreaded application with OpenMP will almost certainly increase the application's performance

    ii.           Application is cross-platform
  OpenMP is a cross-platform and widely supported API. And since the API is implemented through pragmas, the application can still compile even on a compiler that has no knowledge of the OpenMP standard.

  iii.           Parallelizable loops
   OpenMP is at its best parallelizing loops. If the application has loops which have no loop-carried dependencies, using OpenMP is an ideal choice.

   iv.       Last-minute optimizations needed 
BO       OpenMP does not require re-architecting the application, it is the perfect tool for making small surgical changes to get incremental performance improvements.

No comments:

Post a Comment