Skip to content

Commit

Permalink
Removing all commented code
Browse files Browse the repository at this point in the history
Removing all commented code (which is no longer needed) as requested.
  • Loading branch information
vlkale authored Jul 21, 2023
1 parent 20e5a30 commit 758f3f9
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions common/kokkos-sampler/kp_sampler_skip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,15 @@
#include <cstdlib>
#include <cstring>
#include <dlfcn.h>
// #include <impl/Kokkos_Profiling_Interface.hpp>
#include "../../profiling/all/kp_core.hpp"
#include "kp_config.hpp"

// using Kokkos::Tools::Experimental;
// using mytpi_type = Kokkos::Tools::Experimental::ToolProgrammingInterface;
namespace KokkosTools {
namespace Sampler {
static uint64_t uniqID = 0;
static uint64_t kernelSampleSkip = 101;
static int tool_verbosity = 0;
static int tool_globFence = 0;
// mytpi_type mytpi;

typedef void (*initFunction)(const int, const uint64_t, const uint32_t, void*);
typedef void (*finalizeFunction)();
Expand All @@ -40,17 +36,11 @@ void get_global_fence_choice() {
// tool_globFence = 0;
}

// void kokkosp_tool_invoked_fence(const uint32_t, Kokkos_Tools_SpaceHandle*
// myspchandle, Kokkos_Tools_toolInvokedFenceFunction tool_fence)
//{
//(*tool_fence)(myspchandle, );
// }

// set of functions from Kokkos ToolProgrammingInterface (includes fence)
Kokkos::Tools::Experimental::ToolProgrammingInterface tpi_funcs;

void invoke_ktools_fence(uint32_t devID) {
// assert( tpi_funcs ! = NULL)
if (tpi_funcs.fence != nullptr) {
tpi_funcs.fence(devID);
} else
Expand Down Expand Up @@ -303,7 +293,7 @@ void kokkosp_end_parallel_reduce(const uint64_t kID) {
if (kID > 0) {
getGlobFenceChoice(); // re-read environment variable to get most accurate
// value
if (0 < tool_globFence) { // Todo: see if this is a performance bottleneck
if (0 < tool_globFence) {
invoke_ktools_fence(0);
}
if (tool_verbosity > 0) {
Expand Down

0 comments on commit 758f3f9

Please sign in to comment.