Skip to content

Commit

Permalink
improve data locality by keeping the thread's working set within a sm…
Browse files Browse the repository at this point in the history
…all region of memory.
  • Loading branch information
Cristy committed Jan 23, 2025
1 parent 6e3fe37 commit c8bb4a6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions magick/compare.c
Original file line number Diff line number Diff line change
Expand Up @@ -2155,9 +2155,8 @@ MagickExport Image *SimilarityMetricImage(Image *image,const Image *reference,
progress=0;
similarity_view=AcquireVirtualCacheView(similarity_image,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(static) \
shared(progress,status,similarity_metric) \
magick_number_threads(image,image,(image->rows-reference->rows+1) << 3,1)
#pragma omp parallel for schedule(static,1) \
shared(progress,status,similarity_metric)
#endif
for (y=0; y < (ssize_t) (image->rows-reference->rows+1); y++)
{
Expand Down

0 comments on commit c8bb4a6

Please sign in to comment.