Skip to content

Commit 89525f6

Browse files
committed
Add DYLD_LIBRARY_PATH
1 parent 5d0f9f9 commit 89525f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/portable/custom_ops/test_custom_ops.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ test_cmake_custom_op_2() {
103103

104104
EXT=$(get_shared_lib_ext)
105105
echo "Exporting ${model_name}.pte"
106-
${PYTHON_EXECUTABLE} -m "examples.portable.custom_ops.${model_name}" --so_library="cmake-out/examples/portable/custom_ops/libcustom_ops_aot_lib$EXT"
106+
DYLD_LIBRARY_PATH="cmake-out/lib" ${PYTHON_EXECUTABLE} -m "examples.portable.custom_ops.${model_name}" --so_library="cmake-out/examples/portable/custom_ops/libcustom_ops_aot_lib$EXT"
107107
# should save file custom_ops_2.pte
108108

109109
echo 'Running custom_ops_executor_runner'

0 commit comments

Comments
 (0)