From f7fe31b6566150f8d41f8eef0b8527923b07b826 Mon Sep 17 00:00:00 2001 From: MRXLT Date: Mon, 6 Apr 2020 12:59:39 +0000 Subject: [PATCH] fix cuda check --- python/paddle_serving_server_gpu/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle_serving_server_gpu/__init__.py b/python/paddle_serving_server_gpu/__init__.py index 93a167b9..4cbfbf96 100644 --- a/python/paddle_serving_server_gpu/__init__.py +++ b/python/paddle_serving_server_gpu/__init__.py @@ -144,7 +144,7 @@ class Server(object): self.bin_path = os.environ["SERVING_BIN"] def check_cuda(self): - r = os.system("whereis cuda > /dev/null") + r = os.system("nvcc --version > /dev/null") if r != 0: raise SystemExit( "CUDA not found, please check your environment or use cpu version by \"pip install paddle_serving_server\"" -- GitLab