Skip to content

Commit 88af927

Browse files
authored
[SYCLomatic] Update test script for llama_cmake_migration to fix potential CMake config failure issue for migrated llama code (#714)
Signed-off-by: chenwei.sun <[email protected]>
1 parent 5dd2393 commit 88af927

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

applications/src/llama/do_test.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,13 @@ def build_test():
9090
if not ret:
9191
print("Error during copying files cmake script depends on:", test_config.command_output)
9292

93-
ret += call_subprocess("cd out_root && git init && git add ./ && git commit -m \"raw migrated code\"")
94-
if not ret:
95-
print("Error during run git operation:", test_config.command_output)
96-
9793
# Temporarily low the cmake minimum version required to 3.20.
9894
ret = call_subprocess("sed -i s/3.24/3.20/g ./out_root/CMakeLists.txt")
9995
if not ret:
10096
print("Error during replace cmake minimum version required:", test_config.command_output)
10197

102-
ret = call_subprocess("mkdir -p out_root/build && cd out_root/build && cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DLLAMA_CUBLAS=ON ../")
98+
ret = call_subprocess("cd out_root && git init && git add ./ && git commit -m \"raw migrated code\"" \
99+
" && mkdir -p build && cd build && cmake -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DLLAMA_CUBLAS=ON ../")
103100
if not ret:
104101
print("Error during cmake configure stage:", test_config.command_output)
105102
ret = call_subprocess("cd out_root/build && make")

0 commit comments

Comments
 (0)