mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-02-14 05:44:36 +00:00
[PR #1487] Update kohonen_som_topology.c #2091
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/TheAlgorithms/C/pull/1487
State: closed
Merged: No
fix: add OpenMP parallel region for proper loop parallelization
Description of Change
Added an OpenMP parallel region for loops marked with #pragma omp for to enable actual parallel execution.
Previously, the loops had #pragma omp for without a surrounding parallel region, so they executed sequentially.
Now, loops in the function are wrapped in #pragma omp parallel for to correctly distribute iterations across threads.
References
Checklist
Notes: