Skip to content

Commit 0461495

Browse files
committed
Add run with dump enabled
1 parent 27d88d2 commit 0461495

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

conda-recipe/build.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,33 @@ echo "build is completed, run now ..."
77
./test_minimal
88
echo "run is done"
99

10+
echo "create tmp folder: $SRC_DIR/tmp"
11+
mkdir -p $SRC_DIR/tmp
12+
echo "run with dump enabled ..."
13+
export SYCL_CACHE_DISABLE=1
14+
export IGC_ShaderDumpEnable=1
15+
export IGC_ShaderDumpEnableAll=1
16+
export IGC_DumpToCustomDir=$SRC_DIR/tmp/
17+
./test_minimal
18+
19+
echo "waiting for .asm files..."
20+
timeout=5
21+
while [ $timeout -gt 0 ]; do
22+
if find $SRC_DIR/tmp -name "*.asm" -print -quit | grep -q .; then
23+
echo "found .asm files"
24+
break
25+
fi
26+
sleep 1
27+
((timeout--))
28+
done
29+
30+
echo "list files..."
31+
ls -la $SRC_DIR/tmp
32+
echo "print dump:"
33+
find $SRC_DIR/tmp -name "*.asm"
34+
find $SRC_DIR/tmp -name "*.asm" | head -n 1 | xargs -r cat
35+
echo "test is complete"
36+
1037
# This is necessary to help DPC++ find Intel libraries such as SVML, IRNG, etc in build prefix
1138
export LIBRARY_PATH="$LIBRARY_PATH:${BUILD_PREFIX}/lib"
1239

0 commit comments

Comments
 (0)