We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04d3f5d commit a5d6826Copy full SHA for a5d6826
1 file changed
cuda_core/cuda/core/experimental/_device.pyx
@@ -1084,7 +1084,8 @@ class Device:
1084
HANDLE_RETURN(cydriver.cuDeviceGetUuid_v2(&uuid, self._id))
1085
ELSE: # 13.0+
1086
HANDLE_RETURN(cydriver.cuDeviceGetUuid(&uuid, self._id))
1087
- cdef bytes uuid_b = uuid.bytes
+ cdef bytearray uuid_b = bytearray(sizeof(uuid.bytes))
1088
+ uuid_b[:] = uuid.bytes
1089
cdef str uuid_hex = uuid_b.hex()
1090
# 8-4-4-4-12
1091
return f"{uuid_hex[:8]}-{uuid_hex[8:12]}-{uuid_hex[12:16]}-{uuid_hex[16:20]}-{uuid_hex[20:]}"
0 commit comments