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 2da7935
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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
4 changes: 3 additions & 1 deletion software/runtime/kmp/omp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ uint32_t omp_get_thread_num(void) {
};

uint32_t omp_get_num_teams(void) { return kmp::runtime::numTeams; }
uint32_t omp_get_team_num(void) { return kmp::runtime::getCurrentThread().getCurrentTeam()->getTeamId(); }
uint32_t omp_get_team_num(void) {
return kmp::runtime::getCurrentThread().getCurrentTeam()->getTeamId();
}
4 changes: 1 addition & 3 deletions software/runtime/kmp/team.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@
#include "kmp/runtime.hpp"
#include "printf.h"

namespace kmp {

} // namespace kmp
namespace kmp {} // namespace kmp

0 comments on commit 2da7935

Please sign in to comment.