Skip to content

Commit

Permalink
add 'set -eo pipefail' to compiler pipeline to catch errors early
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLydike committed Jul 20, 2023
1 parent 479d478 commit 1142684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion devito/operator/xdsl_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def _jit_compile(self):
if is_gpu:
cflags += " -lmlir_cuda_runtime "

cmd = f'xdsl-opt -p {xdsl_pipeline} |' \
cmd = 'set -eo pipefail; '\
f'xdsl-opt -p {xdsl_pipeline} |' \
f'mlir-opt -p {mlir_pipeline} | ' \
f'mlir-translate --mlir-to-llvmir | ' \
f'{cc} {cflags} -shared -o {self._tf.name} {self._interop_tf.name} -xir -'
Expand Down

0 comments on commit 1142684

Please sign in to comment.