Open jiangqucheng opened 8 months ago
The library libEslHwacc.so is dynamically loaded into Python execution environment. Py script first searches the lib location based on the system environment variable LD_LIBRARY_PATH.
libEslHwacc.so
lib
LD_LIBRARY_PATH
https://github.com/jiangqucheng/torch-mlir-hwacc/blob/fa381e6f78bca07ea353e8c03f87a5141e4eb8a1/projects/pt1/python/torch_mlir_e2e_test/hwacc_linalg_on_tensors_backends/hwaccBackendLibCall.py#L78-L103
Therefore, ensure the path of libEslHwacc.so is included in LD_LIBRARY_PATH.
The following is an example before starting python env.
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$__TORCH_MLIR_PATH__/build/lib
Note
The library
libEslHwacc.so
is dynamically loaded into Python execution environment. Py script first searches thelib
location based on the system environment variableLD_LIBRARY_PATH
.https://github.com/jiangqucheng/torch-mlir-hwacc/blob/fa381e6f78bca07ea353e8c03f87a5141e4eb8a1/projects/pt1/python/torch_mlir_e2e_test/hwacc_linalg_on_tensors_backends/hwaccBackendLibCall.py#L78-L103
Therefore, ensure the path of
libEslHwacc.so
is included inLD_LIBRARY_PATH
.The following is an example before starting python env.