Skip to content

Commit 696d00f

Browse files
authored
fix: mtgpu detector (#3)
Signed-off-by: Xiaodong Ye <[email protected]>
1 parent 24c7beb commit 696d00f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gpustack_runtime/detector/pymtml/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
MTML_DEVICE_MPC_ENABLE = 1
7070

7171
## Error Codes ##
72-
MTML_SUCCESS = (0,)
72+
MTML_SUCCESS = 0
7373
MTML_ERROR_DRIVER_NOT_LOADED = 1
7474
MTML_ERROR_DRIVER_FAILURE = 2
7575
MTML_ERROR_INVALID_ARGUMENT = 3
@@ -78,8 +78,8 @@
7878
MTML_ERROR_INSUFFICIENT_SIZE = 6
7979
MTML_ERROR_NOT_FOUND = 7
8080
MTML_ERROR_INSUFFICIENT_MEMORY = 8
81-
MTML_ERROR_DRIVER_TOO_OLD = (9,)
82-
MTML_ERROR_DRIVER_TOO_NEW = (10,)
81+
MTML_ERROR_DRIVER_TOO_OLD = 9
82+
MTML_ERROR_DRIVER_TOO_NEW = 10
8383
MTML_ERROR_TIMEOUT = 11
8484
MTML_ERROR_UNKNOWN = 999
8585
MTML_ERROR_UNINITIALIZED = -99997

0 commit comments

Comments
 (0)