Skip to content

Commit e7d2360

Browse files
committed
implement feedback
1 parent c559c2b commit e7d2360

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

offload/DeviceRTL/src/Parallelism.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ using namespace ompx;
4545

4646
namespace {
4747

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) {
5151
if (nt_message)
5252
printf("%s\n", nt_message);
5353
else
@@ -81,8 +81,8 @@ uint32_t determineNumberOfThreads(int32_t NumThreadsClause,
8181

8282
if (NumThreadsClause != -1 && nt_strict &&
8383
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);
8686

8787
return NumThreads;
8888
}
@@ -184,8 +184,7 @@ __kmpc_parallel_spmd(IdentTy *ident, int32_t num_threads, void *fn, void **args,
184184
// effect when parallel execution is disabled by a corresponding if clause
185185
// attached to the parallel directive.
186186
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);
189188
state::DateEnvironmentRAII DERAII(ident);
190189
++icv::Level;
191190
invokeMicrotask(TId, 0, fn, args, nargs);

0 commit comments

Comments
 (0)