提交 9f6d27a8 编写于 作者: B bjjwwang

modify suffix for v0.7

上级 770b6c26
...@@ -72,9 +72,13 @@ if (SERVER) ...@@ -72,9 +72,13 @@ if (SERVER)
if(CUDA_VERSION EQUAL 10.1) if(CUDA_VERSION EQUAL 10.1)
set(VERSION_SUFFIX 101) set(VERSION_SUFFIX 101)
elseif(CUDA_VERSION EQUAL 10.2) elseif(CUDA_VERSION EQUAL 10.2)
set(VERSION_SUFFIX 102) if(CUDNN_MAJOR_VERSION EQUAL 7)
elseif(CUDA_VERSION EQUAL 11.0) set(VERSION_SUFFIX 1027)
set(VERSION_SUFFIX 11) elif(CUDNN_MAJOR_VERSION EQUAL 8)
set(VERSION_SUFFIX 1028)
endif()
elseif(CUDA_VERSION EQUAL 11.2)
set(VERSION_SUFFIX 112)
endif() endif()
endif() endif()
......
...@@ -428,7 +428,7 @@ class Server(object): ...@@ -428,7 +428,7 @@ class Server(object):
if device_type == "0": if device_type == "0":
device_version = self.get_device_version() device_version = self.get_device_version()
elif device_type == "1": elif device_type == "1":
if version_suffix == "101" or version_suffix == "102": if version_suffix == "101" or version_suffix == "1027" or version_suffix == "1028" or version_suffix == "112":
device_version = "gpu-" + version_suffix device_version = "gpu-" + version_suffix
else: else:
device_version = "gpu-cuda" + version_suffix device_version = "gpu-cuda" + version_suffix
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册