Skip to content

Commit

Permalink
Add metrics relevant to AOS/SOA issue #16 in the profiel script
Browse files Browse the repository at this point in the history
  • Loading branch information
valassi committed Aug 14, 2020
1 parent abc0e62 commit 0429183
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ echo >> ${trace}.txt
( time ${cmd} ) 2>&1 | tee -a ${trace}.txt
nvidia-smi -q -d CLOCK >> ${trace}.txt

# See https://developer.nvidia.com/blog/using-nsight-compute-to-inspect-your-kernels/
metrics=l1tex__t_sectors_pipe_lsu_mem_global_op_ld.sum,l1tex__t_requests_pipe_lsu_mem_global_op_ld.sum

if [ "${host%%cern.ch}" != "${host}" ] && [ "${host##b}" != "${host}" ]; then
if [ "$tag" == "cu" ]; then
/usr/local/cuda-11.0/bin/ncu --set full -o ${trace} ${cmd}
/usr/local/cuda-11.0/bin/ncu --set full --metrics ${metrics} -o ${trace} ${cmd}
fi
###/usr/local/cuda-10.1/bin/nsys profile -o ${trace} ${cmd}
###/usr/local/cuda-10.2/bin/nsys profile -o ${trace} ${cmd}
Expand All @@ -94,7 +97,7 @@ if [ "${host%%cern.ch}" != "${host}" ] && [ "${host##b}" != "${host}" ]; then
echo " Launch the Nsight Compute or Nsight System GUI from Windows"
else
if [ "$tag" == "cu" ]; then
ncu --set full -o ${trace} ${cmd}
ncu --set full --metrics ${metrics} -o ${trace} ${cmd}
fi
nsys profile -o ${trace} ${cmd}
echo ""
Expand Down

0 comments on commit 0429183

Please sign in to comment.