Skip to content

Commit

Permalink
[software] Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sant0s12 committed Jun 13, 2024
1 parent 2fbe8eb commit b239306
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions software/runtime/kmp/entrypoints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ int __kmpc_dispatch_next_8u(ident_t * /*loc*/, kmp_int64 /*gtid*/,

void __kmpc_push_num_threads(ident_t * /*loc*/, kmp_int32 /*global_tid*/,
kmp_int32 num_threads) {
kmp::runtime::getCurrentThread().requestNumThreads(num_threads);
kmp::runtime::getCurrentThread().requestNumThreads(
static_cast<kmp_uint32>(num_threads));
};

// Critical sections
Expand Down Expand Up @@ -220,7 +221,7 @@ void __kmpc_fork_teams(ident_t * /*loc*/, kmp_int32 argc, kmpc_micro microtask,
// cppcoreguidelines-pro-type-reinterpret-cast)
}

void __kmpc_push_num_teams(ident_t * /*loc*/, kmp_int32 global_tid,
void __kmpc_push_num_teams(ident_t * /*loc*/, kmp_int32 /*global_tid*/,
kmp_int32 num_teams, kmp_int32 num_threads) {
DEBUG_PRINT("num_teams: %d, num_threads: %d\n", num_teams, num_threads);
if (num_teams > 0) {
Expand Down

0 comments on commit b239306

Please sign in to comment.