mirror of
https://github.com/TheAlgorithms/C.git
synced 2026-04-24 14:29:38 +00:00
[PR #1487] [CLOSED] Update kohonen_som_topology.c #2088
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?
📋 Pull Request Information
Original PR: https://github.com/TheAlgorithms/C/pull/1487
Author: @shahrinf
Created: 9/29/2025
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
2c4fd16Update kohonen_som_topology.c📊 Changes
1 file changed (+3 additions, -5 deletions)
View changed files
📝
machine_learning/kohonen_som_topology.c(+3 -5)📄 Description
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:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.