Skip to content

Commit

Permalink
Removing unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Jun 26, 2023
1 parent 830b813 commit bf7347f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/apex/apex_ompt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ extern "C" void apex_target (
// save a copy of the task wrapper
Globals::insert_timer(target_id, tw);
static bool doOnce{Globals::set_delta_base()};
APEX_UNUSED(doOnce);
} else {
{
std::unique_lock<std::mutex> l(target_lock);
Expand Down Expand Up @@ -1193,6 +1194,7 @@ static uint64_t apex_ompt_translate_time(int index, ompt_device_time_t time) {
/* oh no. we can't get a timestamp. */
/* take an offset from the first host-side GPU call */
static bool doOnce{Globals::set_delta(time)};
APEX_UNUSED(doOnce);
return (uint64_t)(time + Globals::delta());
}
static std::map<int, int64_t> deltas;
Expand Down Expand Up @@ -1415,34 +1417,34 @@ extern "C" void apex_ompt_work (
static const char * sections_type = "Sections";
static const char * units_type = "Units of Work";
static const char * single_type = "Single";
char * count_type = const_cast<char*>(iterations_type);
//char * count_type = const_cast<char*>(iterations_type);

switch(wstype) {
case ompt_work_loop:
tmp_str = const_cast<char*>(loop_str);
break;
case ompt_work_sections:
tmp_str = const_cast<char*>(sections_str);
count_type = const_cast<char*>(sections_type);
//count_type = const_cast<char*>(sections_type);
break;
case ompt_work_single_executor:
tmp_str = const_cast<char*>(single_executor_str);
count_type = const_cast<char*>(single_type);
//count_type = const_cast<char*>(single_type);
break;
case ompt_work_single_other:
tmp_str = const_cast<char*>(single_other_str);
count_type = const_cast<char*>(single_type);
//count_type = const_cast<char*>(single_type);
break;
case ompt_work_workshare:
tmp_str = const_cast<char*>(workshare_str);
count_type = const_cast<char*>(units_type);
//count_type = const_cast<char*>(units_type);
break;
case ompt_work_distribute:
tmp_str = const_cast<char*>(distribute_str);
break;
case ompt_work_taskloop:
tmp_str = const_cast<char*>(taskloop_str);
count_type = const_cast<char*>(collapsed_type);
//count_type = const_cast<char*>(collapsed_type);
break;
default:
tmp_str = const_cast<char*>(unknown_str);
Expand Down

0 comments on commit bf7347f

Please sign in to comment.