Skip to content

Commit

Permalink
Fixing sorting errors in tasktree csv output
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Feb 9, 2023
1 parent c1fab4b commit d141252
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/apex/dependency_tree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ class Node {
}
// required for using this class as a key in a map, vector, etc.
static bool compareNodeByParentName (const Node* lhs, const Node* rhs) {
if (lhs->parent < rhs->parent) {
if (lhs->parent->index < rhs->parent->index) {
return true;
}
if (lhs->getName().compare(lhs->getName()) < 0) {
if (lhs->getName().compare(rhs->getName()) < 0) {
return true;
}
return false;
Expand Down
11 changes: 10 additions & 1 deletion src/scripts/apex_exec
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ while (( "$#" )); do
shift
;;
--apex:hip)
hip=yes
export APEX_ENABLE_HIP=1
shift
;;
Expand All @@ -277,12 +278,14 @@ while (( "$#" )); do
shift
;;
--apex:hip_counters)
hip=yes
hip_counters=yes
export APEX_ENABLE_HIP=1
export APEX_HIP_COUNTERS=1
shift
;;
--apex:hip_metrics)
hip=yes
hip_metrics=yes
export APEX_ENABLE_HIP=1
export APEX_HIP_PROFILER=1
Expand All @@ -296,12 +299,14 @@ while (( "$#" )); do
shift
;;
--apex:hip_driver)
hip=yes
hip_driver=yes
export APEX_ENABLE_HIP=1
export APEX_HIP_KFD_API=1
shift
;;
--apex:hip_details)
hip=yes
hip_details=yes
export APEX_ENABLE_HIP=1
export APEX_HIP_KERNEL_DETAILS=1
Expand Down Expand Up @@ -555,7 +560,11 @@ else
echo "set env LD_LIBRARY_PATH=${APEX_LD_LIBRARY_PATH}" >> ./.gdbcmds
echo "set env LD_PRELOAD=${APEX_LD_PRELOAD}" >> ./.gdbcmds
#echo "set env LD_AUDIT=${APEX_LD_AUDIT}" >> ./.gdbcmds
debugger="gdb -x ./.gdbcmds --args"
if [ $hip = yes ] ; then
debugger="rocgdb -x ./.gdbcmds --args"
else
debugger="gdb -x ./.gdbcmds --args"
fi
fi
fi

Expand Down

0 comments on commit d141252

Please sign in to comment.