KJA000 / llvm-clang-optimization

0 stars 0 forks source link

1/25 #6

Closed KJA000 closed 10 months ago

KJA000 commented 10 months ago

`#!/bin/bash

EXECUTABLE="./test_arm_convolve_s8"

OUTPUT_DIR="."

for i in {1..100}; do OUTPUT_FILE="${OUTPUTDIR}/O2${i}"

OUTPUT=$(valgrind --tool=cachegrind --cachegrind-out-file="${OUTPUT_FILE}" "${EXECUTABLE}" 2>&1 | grep "Runtime:" | awk '{print $2}')

echo "$i : $OUTPUT"

done `

쉘 스크립트 코드로 파일 생성

KJA000 commented 10 months ago

질문 사항 : cachgrind 에 대해서 valgrind로 실행할 때 out파일을 100개 만들도록 했는데 이렇게 접근하는 게 맞는지

KJA000 commented 10 months ago

https://www.notion.so/1-25-337e64907f2448c592f7152de9e1d36f?pvs=4

KJA000 commented 10 months ago

https://www.youtube.com/watch?v=8lNSGQX-oyI&list=PLcNE8UECuBpUUxHLPyMKWc80NjpRGGFoC&index=2

KJA000 commented 6 months ago

https://github.com/leejaymin/llvm8-tutorials-jemin/tree/master?tab=readme-ov-file