Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

178
Views
Does any C/C++ compiler support OpenMP's task affinity clauses yet?

I am experimenting with OpenMP tasks and want to write an application that runs on a 2-NUMA socket CPU and uses OpenMP's task affinity clauses which can be added to the task creation pragma. They provide a hint for where a task should be executed, by providing a variable close to whose physical location the task should be executed.

An example from the OpenMP 5.0 documentation shows how it could be used:

void task_affinity(double *A, int N)
{
 double * B;
 #pragma omp task depend(out:B) shared(B) affinity(A[0:N])
 {
 B = alloc_init_B(A,N);
 }

 #pragma omp task depend( in:B) shared(B) affinity(A[0:N])
 {
 compute_on_B(B,N);
 }

 #pragma omp taskwait
}

The compiler gcc compiler that I have in version 11.2.0, however, only provides a stub as of now, which as I understand it, means, that the functionality is not actually implemented yet.

  1. Is there any compiler that has OpenMP's task affinities fully implemented yet?

  2. Does the gcc implementation of OpenMP handle tasks in a way that they are assigned to threads that are physically close to the data on which they work even if no affinities are explicitly stated?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!