Skip to content

Commit

Permalink
collect and process seperately
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Nov 17, 2023
1 parent 76642d2 commit 02dd2d9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ LOGFILE=$MODEL_NAME.log

export ROCBLAS_LAYER=2
bash sample_run.sh $N_GPU --optimize --merge --custom-gen --benchmark --ort 2>&1 | tee ${MODEL_NAME}_rocblas_configs.log
sed -i '/\[[0-9]+,[0-9]+\]<stderr>:/d' ${MODEL_NAME}_rocblas_configs.log
sed -i -E 's/\[[0-9]*,[0-9]*\]<std(out|err)>://g' ${MODEL_NAME}_rocblas_configs.log
grep -o "rocblas-bench.*" ${MODEL_NAME}_rocblas_configs.log | sort -u &> unique_rocblas_configs_$MODEL_NAME.log
unset ROCBLAS_LAYER

export MIOPEN_ENABLE_LOGGING_CMD=1
bash sample_run.sh $N_GPU --optimize --merge --custom-gen --benchmark --ort 2>&1 | tee ${MODEL_NAME}_miopen_configs.log
sed -i '/\[[0-9]+,[0-9]+\]<stderr>:/d' ${MODEL_NAME}_miopen_configs.log
sed -i -E 's/\[[0-9]*,[0-9]*\]<std(out|err)>://g' ${MODEL_NAME}_miopen_configs.log
grep "MIOpenDriver " ${MODEL_NAME}_miopen_configs.log | sed -e 's/.*]//' | sort -u &> unique_miopen_configs_$MODEL_NAME.log
unset MIOPEN_ENABLE_LOGGING_CMD

export TENSILE_DB=0x8000 # dump Tensile kernel names
bash sample_run.sh $N_GPU --optimize --merge --custom-gen --benchmark --ort 2>&1 | tee ${MODEL_NAME}_tensile_configs.log
sed -i '/\[[0-9]+,[0-9]+\]<stderr>:/d'
sed -i -E 's/\[[0-9]*,[0-9]*\]<std(out|err)>://g' ${MODEL_NAME}_tensile_configs.log
grep "Running kernel: " ${MODEL_NAME}_tensile_configs.log | sort -u &> unique_kernel_names_$MODEL_NAME.log
unset TENSILE_DB

Expand Down

0 comments on commit 02dd2d9

Please sign in to comment.