diff --git a/mindspore_serving/worker/_check_version.py b/mindspore_serving/worker/_check_version.py index a927a37..cd29e83 100644 --- a/mindspore_serving/worker/_check_version.py +++ b/mindspore_serving/worker/_check_version.py @@ -250,12 +250,13 @@ class GPUEnvChecker(): """Get gpu lib path by ldd command.""" path_list = [] current_path = os.path.split(os.path.realpath(__file__))[0] - ldd_result = subprocess.run(["ldd " + current_path + "/_c_expression*.so* | grep " + lib_name], + mindspore_path = os.path.dirname(os.path.dirname(current_path)) + "/mindspore" + ldd_result = subprocess.run(["ldd " + mindspore_path + "/_c_expression*.so* | grep " + lib_name], timeout=3, text=True, capture_output=True, check=False, shell=True) if ldd_result.returncode: logger.warning(f"{lib_name} so(need by mndspore-gpu) is not found, please confirm that " f"_c_experssion.so depend on {lib_name}, " - f"and _c_expression.so in directory:{current_path}") + f"and _c_expression.so in directory:{mindspore_path}") return path_list result = ldd_result.stdout for i in result.split('\n'): diff --git a/third_party/mindspore b/third_party/mindspore index 363e574..bc6ad21 160000 --- a/third_party/mindspore +++ b/third_party/mindspore @@ -1 +1 @@ -Subproject commit 363e574ff8c7b6b7a695c05e0c34086c177e5d41 +Subproject commit bc6ad2127863f9f7fd7b2f9b25841e508b99fd51