java-romp / jromp

Java Runtime implementation of OpenMP.
https://java-romp.github.io/jromp/
MIT License
5 stars 0 forks source link

Remove `Section` record since it is not useful #40

Closed scastd closed 2 months ago

scastd commented 2 months ago

Describe the feature

Variables cannot be passed directly to a specific section in the OpenMP standard; they can only be passed within the "global" construct.

❌ Disallowed:

#pragma omp parallel sections
{
    #pragma omp section shared(x, y)
    {
        printf("Task 1. Running thread %d\n", omp_get_thread_num());
    }
}

✅ Allowed:

#pragma omp parallel sections shared(x, y)
{
    #pragma omp section
    {
        printf("Task 1. Running thread %d\n", omp_get_thread_num());
    }
}

Additional information

Final checks