File tree 1 file changed +3
-3
lines changed
External/HIP/workload/blender
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export CCC_OVERRIDE_OPTIONS=${HIP_BLENDER_TEST_CCC_OVERRIDE_OPTIONS:-"+-v"}
8
8
export HIP_CLANG_PATH=${HIP_CLANG_PATH:- " @HIP_CLANG_PATH@" }
9
9
export HIPCC_VERBOSE=${HIPCC_VERBOSE:- 7}
10
10
11
- blender_options=${HIP_BLENDER_TEST_OPTIONS:- " -F PNG - -debug-cycles -- --cycles-device HIP" }
11
+ blender_options=${HIP_BLENDER_TEST_OPTIONS:- " --debug-cycles -- --cycles-device HIP" }
12
12
blender_dir=${HIP_BLENDER_TEST_BIN_DIR:- " $TEST_SUITE_HIP_ROOT /blender" }
13
13
scene_dir=${HIP_BLENDER_TEST_SCENES_DIR:- " $TEST_SUITE_HIP_ROOT /Blender_Scenes" }
14
14
log_dir=${HIP_BLENDER_TEST_LOG_DIR:- " $scene_dir /logs" }
@@ -20,7 +20,7 @@ clang_hash=""
20
20
21
21
get_clang_hash () {
22
22
clang_version_output=$( $HIP_CLANG_PATH /clang -v 2>&1 )
23
- clang_hash=$( echo " $clang_version_output " | grep -oP ' (?<=llvm-project )\w{8} ' )
23
+ clang_hash=$( echo " $clang_version_output " | sed -n ' s/^clang version.*(.* \([0-9a-f]\+\)).*/\1/p ' | cut -c1-8 )
24
24
echo " $clang_hash "
25
25
}
26
26
@@ -63,7 +63,7 @@ render() {
63
63
echo " Render $input "
64
64
65
65
blender_output=$( mktemp)
66
- timeout 300 $blender_dir /blender -b $input -o ${output} # ## -f $frame $blender_options 2>&1 | tee $blender_output
66
+ timeout 300 $blender_dir /blender -b $input -F PNG - o ${output} # ## -f $frame $blender_options 2>&1 | tee $blender_output
67
67
blender_return_code=${PIPESTATUS[0]}
68
68
69
69
average_time=$( grep -P " ^\s*Path Tracing\s+\d+\.\d+\s+\d+\.\d+" $blender_output | awk ' {print $4}' )
You can’t perform that action at this time.
0 commit comments