@@ -45,9 +45,9 @@ using namespace ompx;
45
45
46
46
namespace {
47
47
48
- void num_threads_strict_error (int32_t nt_strict, int32_t nt_severity,
49
- const char *nt_message, int32_t requested,
50
- int32_t actual) {
48
+ void numThreadsStrictError (int32_t nt_strict, int32_t nt_severity,
49
+ const char *nt_message, int32_t requested,
50
+ int32_t actual) {
51
51
if (nt_message)
52
52
printf (" %s\n " , nt_message);
53
53
else
@@ -81,8 +81,8 @@ uint32_t determineNumberOfThreads(int32_t NumThreadsClause,
81
81
82
82
if (NumThreadsClause != -1 && nt_strict &&
83
83
NumThreads != static_cast <uint32_t >(NumThreadsClause))
84
- num_threads_strict_error (nt_strict, nt_severity, nt_message,
85
- NumThreadsClause, NumThreads);
84
+ numThreadsStrictError (nt_strict, nt_severity, nt_message, NumThreadsClause ,
85
+ NumThreads);
86
86
87
87
return NumThreads;
88
88
}
@@ -184,8 +184,7 @@ __kmpc_parallel_spmd(IdentTy *ident, int32_t num_threads, void *fn, void **args,
184
184
// effect when parallel execution is disabled by a corresponding if clause
185
185
// attached to the parallel directive.
186
186
if (nt_strict && num_threads > 1 )
187
- num_threads_strict_error (nt_strict, nt_severity, nt_message, num_threads,
188
- 1 );
187
+ numThreadsStrictError (nt_strict, nt_severity, nt_message, num_threads, 1 );
189
188
state::DateEnvironmentRAII DERAII (ident);
190
189
++icv::Level;
191
190
invokeMicrotask (TId, 0 , fn, args, nargs);
0 commit comments