Skip to content

Commit

Permalink
Debugging Kokkos tuning issues
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Apr 29, 2021
1 parent 09fa571 commit 7a4fe1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/apex/apex_kokkos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ void kokkosp_profile_event( const char* name ) {

} // extern "C"

#ifdef APEX_HAVE_KOKKOS
//#ifdef APEX_HAVE_KOKKOS
//#pragma message("Enabling Kokkos auto-tuning support")

#include "impl/Kokkos_Profiling_C_Interface.h"
#include "Kokkos_Profiling_C_Interface.h"
#include "apex_api.hpp"
#include "apex_policies.hpp"

Expand Down Expand Up @@ -613,7 +613,6 @@ std::string hashContext(size_t numVars, const Kokkos_Tools_VariableValue* values
for (size_t i = 0 ; i < numVars ; i++) {
auto id = values[i].type_id;
ss << d << id << ":";
/*
Variable* var{getSession().inputs[id]};
switch (var->info.type) {
case kokkos_value_double:
Expand All @@ -628,8 +627,9 @@ std::string hashContext(size_t numVars, const Kokkos_Tools_VariableValue* values
default:
break;
}
*/
/*
ss << values[i].value.string_value;
*/
d = ",";
}
ss << "]";
Expand Down Expand Up @@ -875,5 +875,5 @@ void kokkosp_end_context(const size_t contextId) {

} // extern "C"

#endif // APEX_HAVE_KOKKOS
//#endif // APEX_HAVE_KOKKOS

4 changes: 4 additions & 0 deletions src/scripts/apex_exec
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ period=1000000
io=no
pthread=no
memory=no
policy=yes
debugger=""
prog=""

Expand Down Expand Up @@ -271,6 +272,9 @@ done
# set positional arguments in their proper place
eval set -- "${PARAMS}"

export APEX_POLICY=1
export HARMONY_HOME=@ACTIVEHARMONY_ROOT@

echo "Program to run : ${PARAMS}"

if [ "x${LD_LIBRARY_PATH}" = "x" ] ; then
Expand Down

0 comments on commit 7a4fe1b

Please sign in to comment.