未验证 提交 b5b76f1c 编写于 作者: M MRXLT 提交者: GitHub

Merge pull request #421 from MRXLT/0.2.0-cherry-v2

[cherry pick to 0.2.0]PR 417 
...@@ -144,7 +144,7 @@ class Server(object): ...@@ -144,7 +144,7 @@ class Server(object):
self.bin_path = os.environ["SERVING_BIN"] self.bin_path = os.environ["SERVING_BIN"]
def check_cuda(self): def check_cuda(self):
r = os.system("nvcc --version > /dev/null") r = os.system("cat /usr/local/cuda/version.txt")
if r != 0: if r != 0:
raise SystemExit( raise SystemExit(
"CUDA not found, please check your environment or use cpu version by \"pip install paddle_serving_server\"" "CUDA not found, please check your environment or use cpu version by \"pip install paddle_serving_server\""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册