Skip to content

Commit fd9b4a5

Browse files
author
Volker Waurich
committed
- removed flag NUM_PROC in the codegen for hpcom
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18350 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 23687d1 commit fd9b4a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Compiler/Template/CodegenC.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,7 @@ template functionXXX_system0_HPCOM_Level(list<SimEqSystem> derivativEquations, S
21082108
//let odeEqs = "#pragma omp parallel sections\n{"
21092109
let odeEqs = eqsOfLevel |> eq => equationNamesHPCOM_(eq,derivativEquations,contextSimulationNonDiscrete); separator="\n"
21102110
<<
2111-
#pragma omp parallel sections num_threads(<%getConfigInt(NUM_PROC)%>)
2111+
#pragma omp parallel sections
21122112
{
21132113
<%odeEqs%>
21142114
}
@@ -2121,7 +2121,7 @@ template functionXXX_system0_HPCOM_Thread(list<SimEqSystem> derivativEquations,
21212121
match iType
21222122
case ("openmp") then
21232123
<<
2124-
#pragma omp parallel sections num_threads(<%getConfigInt(NUM_PROC)%>)
2124+
#pragma omp parallel sections num_threads(<%listLength(threadTasks)%>)
21252125
{
21262126
<%odeEqs%>
21272127
}

0 commit comments

Comments
 (0)