Skip to content

Commit e6b2f87

Browse files
committed
update python CMakeLists.txt
1 parent 1adab94 commit e6b2f87

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

python/CMakeLists.txt

+13-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,19 @@ if (CLIENT)
6262
endif()
6363

6464
if (SERVER)
65-
if(CUDA_VERSION EQUAL 10.1)
66-
set(VERSION_SUFFIX 101)
67-
elseif(CUDA_VERSION EQUAL 10.2)
68-
set(VERSION_SUFFIX 102)
69-
elseif(CUDA_VERSION EQUAL 11.0)
70-
set(VERSION_SUFFIX 11)
65+
# todo, generate suffix for cpu、gpu、arm
66+
if(WITH_TRT)
67+
if(CUDA_VERSION EQUAL 10.1)
68+
set(VERSION_SUFFIX 101)
69+
elseif(CUDA_VERSION EQUAL 10.2)
70+
set(VERSION_SUFFIX 102)
71+
elseif(CUDA_VERSION EQUAL 11.0)
72+
set(VERSION_SUFFIX 11)
73+
endif()
74+
endif()
75+
76+
if(WITH_LITE)
77+
set(VERSION_SUFFIX xpu)
7178
endif()
7279

7380
add_custom_command(

0 commit comments

Comments
 (0)