File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,27 @@ echo "build is completed, run now ..."
77./test_minimal
88echo " run is done"
99
10+ echo " create tmp folder: $PREFIX /tmp"
11+ mkdir -p $PREFIX /tmp
12+ echo " run with dump enabled ..."
13+ SYCL_CACHE_DISABLE=1 IGC_ShaderDumpEnable=1 IGC_ShaderDumpEnableAll=1 IGC_DumpToCustomDir=$PREFIX /tmp/ ./test_minimal
14+
15+ echo " waiting for .asm files..."
16+ timeout=5
17+ while [ $timeout -gt 0 ]; do
18+ if find $PREFIX /tmp -name " *.asm" -print -quit | grep -q . ; then
19+ echo " found .asm files"
20+ break
21+ fi
22+ sleep 1
23+ (( timeout-- ))
24+ done
25+
26+ echo " print dump:"
27+ find $PREFIX /tmp -name " *.asm"
28+ find $PREFIX /tmp -name " *.asm" | head -n 1 | xargs -r cat
29+ echo " test is complete"
30+
1031# This is necessary to help DPC++ find Intel libraries such as SVML, IRNG, etc in build prefix
1132export LIBRARY_PATH=" $LIBRARY_PATH :${BUILD_PREFIX} /lib"
1233
You can’t perform that action at this time.
0 commit comments