Skip to content

Commit

Permalink
Adding --apex:kokkos-counters flag
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Sep 11, 2024
1 parent a99f8ba commit 85b694d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/scripts/apex_exec
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ where APEX options are zero or more of:
--apex:kokkos enable Kokkos support
--apex:kokkos-tuning enable Kokkos runtime autotuning support
--apex:kokkos-fence enable Kokkos fences for async kernels
--apex:kokkos-counters enable Kokkos counters for allocations and data transfers
--apex:raja enable RAJA support
--apex:pthread enable pthread wrapper support (default: off)
--apex:track-pthread track pthread lifetime (forces --apex:pthread on)
Expand Down Expand Up @@ -106,6 +107,7 @@ openacc=no
kokkos=no
kokkos_tuning=no
kokkos_fence=no
kokkos_counters=no
raja=no
otf2=no
gtrace=no
Expand Down Expand Up @@ -175,6 +177,11 @@ while (( "$#" )); do
kokkos_fence=yes
shift
;;
--apex:kokkos-counters)
kokkos=yes
kokkos_counters=yes
shift
;;
--apex:kokkos_fence|--apex:kokkos-fence)
kokkos=yes
kokkos_fence=yes
Expand Down Expand Up @@ -749,6 +756,9 @@ fi
if [ ${kokkos_tuning} = yes ] ; then
export APEX_KOKKOS_TUNING=1
fi
if [ ${kokkos_counters} = yes ] ; then
export APEX_KOKKOS_COUNTERS=1
fi
if [ ${raja} = yes ] ; then
export RAJA_PLUGINS=${BASEDIR}/${LIBDIR}/${APEX_LIBRARY_NAME}${SHLIBX}
fi
Expand Down

0 comments on commit 85b694d

Please sign in to comment.