Skip to content

Commit

Permalink
Fix: correctly parse "is parallelizable" output
Browse files Browse the repository at this point in the history
Signed-off-by: Bolun Thompson <[email protected]>
  • Loading branch information
BolunThompson committed Jan 11, 2025
1 parent 7a126e4 commit 49834ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/orchestrator_runtime/pash_prepare_call_compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ pash_redir_output echo "$$: (2) Before asking the daemon for compilation..."
msg="Compile:${pash_compiled_script_file}| Variable File:${pash_runtime_shell_variables_file}| Input IR File:${pash_input_ir_file}"
daemon_response=$(pash_communicate_daemon "$msg") # Blocking step, daemon will not send response until it's safe to continue

if [[ "$daemon_response" == *"not all regions are parallelizable"* ]]; then
# WARNING: finicky!
if [[ "$daemon_response" == *"not"*"parallelizable"* ]]; then
pash_all_region_parallelizable=1
else
pash_all_region_parallelizable=0
Expand Down

0 comments on commit 49834ac

Please sign in to comment.