@@ -104,7 +104,7 @@ cpdef MarkC(message, uint32_t color=0):
104
104
color (uint32): Color code for a marker.
105
105
"""
106
106
cdef bytes b_message = message.encode()
107
- if NVTX_VERSION ! = 1 and NVTX_VERSION ! = 2 :
107
+ if NVTX_VERSION < 1 :
108
108
nvtxMarkA(< const char * > b_message)
109
109
return
110
110
@@ -132,7 +132,7 @@ cpdef Mark(message, int id_color=-1):
132
132
id_color (int): ID of color for a marker.
133
133
"""
134
134
cdef bytes b_message = message.encode()
135
- if id_color < 0 or ( NVTX_VERSION ! = 1 and NVTX_VERSION ! = 2 ) :
135
+ if id_color < 0 or NVTX_VERSION < 1 :
136
136
nvtxMarkA(< const char * > b_message)
137
137
return
138
138
@@ -166,7 +166,7 @@ cpdef RangePushC(message, uint32_t color=0):
166
166
color (uint32): ARGB color for a range.
167
167
"""
168
168
cdef bytes b_message = message.encode()
169
- if NVTX_VERSION ! = 1 and NVTX_VERSION ! = 2 :
169
+ if NVTX_VERSION < 1 :
170
170
nvtxRangePushA(< const char * > b_message)
171
171
return
172
172
@@ -208,7 +208,7 @@ cpdef RangePush(message, int id_color=-1):
208
208
id_color (int): ID of color for a range.
209
209
"""
210
210
cdef bytes b_message = message.encode()
211
- if id_color < 0 or ( NVTX_VERSION ! = 1 and NVTX_VERSION ! = 2 ) :
211
+ if id_color < 0 or NVTX_VERSION < 1 :
212
212
nvtxRangePushA(< const char * > b_message)
213
213
return
214
214
0 commit comments