@@ -6525,6 +6525,10 @@ cdef class CUcontext:
6525
6525
return '<CUcontext ' + str(hex(self.__int__())) + '>'
6526
6526
def __index__(self):
6527
6527
return self.__int__()
6528
+ def __eq__(self, other):
6529
+ if not isinstance(other, CUcontext):
6530
+ return False
6531
+ return self._pvt_ptr[0] == (<CUcontext>other)._pvt_ptr[0]
6528
6532
def __int__(self):
6529
6533
return <void_ptr>self._pvt_ptr[0]
6530
6534
def getPtr(self):
@@ -6556,6 +6560,10 @@ cdef class CUmodule:
6556
6560
return '<CUmodule ' + str(hex(self.__int__())) + '>'
6557
6561
def __index__(self):
6558
6562
return self.__int__()
6563
+ def __eq__(self, other):
6564
+ if not isinstance(other, CUmodule):
6565
+ return False
6566
+ return self._pvt_ptr[0] == (<CUmodule>other)._pvt_ptr[0]
6559
6567
def __int__(self):
6560
6568
return <void_ptr>self._pvt_ptr[0]
6561
6569
def getPtr(self):
@@ -6587,6 +6595,10 @@ cdef class CUfunction:
6587
6595
return '<CUfunction ' + str(hex(self.__int__())) + '>'
6588
6596
def __index__(self):
6589
6597
return self.__int__()
6598
+ def __eq__(self, other):
6599
+ if not isinstance(other, CUfunction):
6600
+ return False
6601
+ return self._pvt_ptr[0] == (<CUfunction>other)._pvt_ptr[0]
6590
6602
def __int__(self):
6591
6603
return <void_ptr>self._pvt_ptr[0]
6592
6604
def getPtr(self):
@@ -6618,6 +6630,10 @@ cdef class CUlibrary:
6618
6630
return '<CUlibrary ' + str(hex(self.__int__())) + '>'
6619
6631
def __index__(self):
6620
6632
return self.__int__()
6633
+ def __eq__(self, other):
6634
+ if not isinstance(other, CUlibrary):
6635
+ return False
6636
+ return self._pvt_ptr[0] == (<CUlibrary>other)._pvt_ptr[0]
6621
6637
def __int__(self):
6622
6638
return <void_ptr>self._pvt_ptr[0]
6623
6639
def getPtr(self):
@@ -6649,6 +6665,10 @@ cdef class CUkernel:
6649
6665
return '<CUkernel ' + str(hex(self.__int__())) + '>'
6650
6666
def __index__(self):
6651
6667
return self.__int__()
6668
+ def __eq__(self, other):
6669
+ if not isinstance(other, CUkernel):
6670
+ return False
6671
+ return self._pvt_ptr[0] == (<CUkernel>other)._pvt_ptr[0]
6652
6672
def __int__(self):
6653
6673
return <void_ptr>self._pvt_ptr[0]
6654
6674
def getPtr(self):
@@ -6680,6 +6700,10 @@ cdef class CUarray:
6680
6700
return '<CUarray ' + str(hex(self.__int__())) + '>'
6681
6701
def __index__(self):
6682
6702
return self.__int__()
6703
+ def __eq__(self, other):
6704
+ if not isinstance(other, CUarray):
6705
+ return False
6706
+ return self._pvt_ptr[0] == (<CUarray>other)._pvt_ptr[0]
6683
6707
def __int__(self):
6684
6708
return <void_ptr>self._pvt_ptr[0]
6685
6709
def getPtr(self):
@@ -6711,6 +6735,10 @@ cdef class CUmipmappedArray:
6711
6735
return '<CUmipmappedArray ' + str(hex(self.__int__())) + '>'
6712
6736
def __index__(self):
6713
6737
return self.__int__()
6738
+ def __eq__(self, other):
6739
+ if not isinstance(other, CUmipmappedArray):
6740
+ return False
6741
+ return self._pvt_ptr[0] == (<CUmipmappedArray>other)._pvt_ptr[0]
6714
6742
def __int__(self):
6715
6743
return <void_ptr>self._pvt_ptr[0]
6716
6744
def getPtr(self):
@@ -6742,6 +6770,10 @@ cdef class CUtexref:
6742
6770
return '<CUtexref ' + str(hex(self.__int__())) + '>'
6743
6771
def __index__(self):
6744
6772
return self.__int__()
6773
+ def __eq__(self, other):
6774
+ if not isinstance(other, CUtexref):
6775
+ return False
6776
+ return self._pvt_ptr[0] == (<CUtexref>other)._pvt_ptr[0]
6745
6777
def __int__(self):
6746
6778
return <void_ptr>self._pvt_ptr[0]
6747
6779
def getPtr(self):
@@ -6773,6 +6805,10 @@ cdef class CUsurfref:
6773
6805
return '<CUsurfref ' + str(hex(self.__int__())) + '>'
6774
6806
def __index__(self):
6775
6807
return self.__int__()
6808
+ def __eq__(self, other):
6809
+ if not isinstance(other, CUsurfref):
6810
+ return False
6811
+ return self._pvt_ptr[0] == (<CUsurfref>other)._pvt_ptr[0]
6776
6812
def __int__(self):
6777
6813
return <void_ptr>self._pvt_ptr[0]
6778
6814
def getPtr(self):
@@ -6804,6 +6840,10 @@ cdef class CUevent:
6804
6840
return '<CUevent ' + str(hex(self.__int__())) + '>'
6805
6841
def __index__(self):
6806
6842
return self.__int__()
6843
+ def __eq__(self, other):
6844
+ if not isinstance(other, CUevent):
6845
+ return False
6846
+ return self._pvt_ptr[0] == (<CUevent>other)._pvt_ptr[0]
6807
6847
def __int__(self):
6808
6848
return <void_ptr>self._pvt_ptr[0]
6809
6849
def getPtr(self):
@@ -6835,6 +6875,10 @@ cdef class CUstream:
6835
6875
return '<CUstream ' + str(hex(self.__int__())) + '>'
6836
6876
def __index__(self):
6837
6877
return self.__int__()
6878
+ def __eq__(self, other):
6879
+ if not isinstance(other, CUstream):
6880
+ return False
6881
+ return self._pvt_ptr[0] == (<CUstream>other)._pvt_ptr[0]
6838
6882
def __int__(self):
6839
6883
return <void_ptr>self._pvt_ptr[0]
6840
6884
def getPtr(self):
@@ -6866,6 +6910,10 @@ cdef class CUgraphicsResource:
6866
6910
return '<CUgraphicsResource ' + str(hex(self.__int__())) + '>'
6867
6911
def __index__(self):
6868
6912
return self.__int__()
6913
+ def __eq__(self, other):
6914
+ if not isinstance(other, CUgraphicsResource):
6915
+ return False
6916
+ return self._pvt_ptr[0] == (<CUgraphicsResource>other)._pvt_ptr[0]
6869
6917
def __int__(self):
6870
6918
return <void_ptr>self._pvt_ptr[0]
6871
6919
def getPtr(self):
@@ -6897,6 +6945,10 @@ cdef class CUexternalMemory:
6897
6945
return '<CUexternalMemory ' + str(hex(self.__int__())) + '>'
6898
6946
def __index__(self):
6899
6947
return self.__int__()
6948
+ def __eq__(self, other):
6949
+ if not isinstance(other, CUexternalMemory):
6950
+ return False
6951
+ return self._pvt_ptr[0] == (<CUexternalMemory>other)._pvt_ptr[0]
6900
6952
def __int__(self):
6901
6953
return <void_ptr>self._pvt_ptr[0]
6902
6954
def getPtr(self):
@@ -6928,6 +6980,10 @@ cdef class CUexternalSemaphore:
6928
6980
return '<CUexternalSemaphore ' + str(hex(self.__int__())) + '>'
6929
6981
def __index__(self):
6930
6982
return self.__int__()
6983
+ def __eq__(self, other):
6984
+ if not isinstance(other, CUexternalSemaphore):
6985
+ return False
6986
+ return self._pvt_ptr[0] == (<CUexternalSemaphore>other)._pvt_ptr[0]
6931
6987
def __int__(self):
6932
6988
return <void_ptr>self._pvt_ptr[0]
6933
6989
def getPtr(self):
@@ -6959,6 +7015,10 @@ cdef class CUgraph:
6959
7015
return '<CUgraph ' + str(hex(self.__int__())) + '>'
6960
7016
def __index__(self):
6961
7017
return self.__int__()
7018
+ def __eq__(self, other):
7019
+ if not isinstance(other, CUgraph):
7020
+ return False
7021
+ return self._pvt_ptr[0] == (<CUgraph>other)._pvt_ptr[0]
6962
7022
def __int__(self):
6963
7023
return <void_ptr>self._pvt_ptr[0]
6964
7024
def getPtr(self):
@@ -6990,6 +7050,10 @@ cdef class CUgraphNode:
6990
7050
return '<CUgraphNode ' + str(hex(self.__int__())) + '>'
6991
7051
def __index__(self):
6992
7052
return self.__int__()
7053
+ def __eq__(self, other):
7054
+ if not isinstance(other, CUgraphNode):
7055
+ return False
7056
+ return self._pvt_ptr[0] == (<CUgraphNode>other)._pvt_ptr[0]
6993
7057
def __int__(self):
6994
7058
return <void_ptr>self._pvt_ptr[0]
6995
7059
def getPtr(self):
@@ -7021,6 +7085,10 @@ cdef class CUgraphExec:
7021
7085
return '<CUgraphExec ' + str(hex(self.__int__())) + '>'
7022
7086
def __index__(self):
7023
7087
return self.__int__()
7088
+ def __eq__(self, other):
7089
+ if not isinstance(other, CUgraphExec):
7090
+ return False
7091
+ return self._pvt_ptr[0] == (<CUgraphExec>other)._pvt_ptr[0]
7024
7092
def __int__(self):
7025
7093
return <void_ptr>self._pvt_ptr[0]
7026
7094
def getPtr(self):
@@ -7052,6 +7120,10 @@ cdef class CUmemoryPool:
7052
7120
return '<CUmemoryPool ' + str(hex(self.__int__())) + '>'
7053
7121
def __index__(self):
7054
7122
return self.__int__()
7123
+ def __eq__(self, other):
7124
+ if not isinstance(other, CUmemoryPool):
7125
+ return False
7126
+ return self._pvt_ptr[0] == (<CUmemoryPool>other)._pvt_ptr[0]
7055
7127
def __int__(self):
7056
7128
return <void_ptr>self._pvt_ptr[0]
7057
7129
def getPtr(self):
@@ -7083,6 +7155,10 @@ cdef class CUuserObject:
7083
7155
return '<CUuserObject ' + str(hex(self.__int__())) + '>'
7084
7156
def __index__(self):
7085
7157
return self.__int__()
7158
+ def __eq__(self, other):
7159
+ if not isinstance(other, CUuserObject):
7160
+ return False
7161
+ return self._pvt_ptr[0] == (<CUuserObject>other)._pvt_ptr[0]
7086
7162
def __int__(self):
7087
7163
return <void_ptr>self._pvt_ptr[0]
7088
7164
def getPtr(self):
@@ -7114,6 +7190,10 @@ cdef class CUgraphDeviceNode:
7114
7190
return '<CUgraphDeviceNode ' + str(hex(self.__int__())) + '>'
7115
7191
def __index__(self):
7116
7192
return self.__int__()
7193
+ def __eq__(self, other):
7194
+ if not isinstance(other, CUgraphDeviceNode):
7195
+ return False
7196
+ return self._pvt_ptr[0] == (<CUgraphDeviceNode>other)._pvt_ptr[0]
7117
7197
def __int__(self):
7118
7198
return <void_ptr>self._pvt_ptr[0]
7119
7199
def getPtr(self):
@@ -7145,6 +7225,10 @@ cdef class CUasyncCallbackHandle:
7145
7225
return '<CUasyncCallbackHandle ' + str(hex(self.__int__())) + '>'
7146
7226
def __index__(self):
7147
7227
return self.__int__()
7228
+ def __eq__(self, other):
7229
+ if not isinstance(other, CUasyncCallbackHandle):
7230
+ return False
7231
+ return self._pvt_ptr[0] == (<CUasyncCallbackHandle>other)._pvt_ptr[0]
7148
7232
def __int__(self):
7149
7233
return <void_ptr>self._pvt_ptr[0]
7150
7234
def getPtr(self):
@@ -7176,6 +7260,10 @@ cdef class CUgreenCtx:
7176
7260
return '<CUgreenCtx ' + str(hex(self.__int__())) + '>'
7177
7261
def __index__(self):
7178
7262
return self.__int__()
7263
+ def __eq__(self, other):
7264
+ if not isinstance(other, CUgreenCtx):
7265
+ return False
7266
+ return self._pvt_ptr[0] == (<CUgreenCtx>other)._pvt_ptr[0]
7179
7267
def __int__(self):
7180
7268
return <void_ptr>self._pvt_ptr[0]
7181
7269
def getPtr(self):
@@ -7205,6 +7293,10 @@ cdef class CUlinkState:
7205
7293
return '<CUlinkState ' + str(hex(self.__int__())) + '>'
7206
7294
def __index__(self):
7207
7295
return self.__int__()
7296
+ def __eq__(self, other):
7297
+ if not isinstance(other, CUlinkState):
7298
+ return False
7299
+ return self._pvt_ptr[0] == (<CUlinkState>other)._pvt_ptr[0]
7208
7300
def __int__(self):
7209
7301
return <void_ptr>self._pvt_ptr[0]
7210
7302
def getPtr(self):
@@ -7236,6 +7328,10 @@ cdef class CUdevResourceDesc:
7236
7328
return '<CUdevResourceDesc ' + str(hex(self.__int__())) + '>'
7237
7329
def __index__(self):
7238
7330
return self.__int__()
7331
+ def __eq__(self, other):
7332
+ if not isinstance(other, CUdevResourceDesc):
7333
+ return False
7334
+ return self._pvt_ptr[0] == (<CUdevResourceDesc>other)._pvt_ptr[0]
7239
7335
def __int__(self):
7240
7336
return <void_ptr>self._pvt_ptr[0]
7241
7337
def getPtr(self):
@@ -7265,6 +7361,10 @@ cdef class CUlogsCallbackHandle:
7265
7361
return '<CUlogsCallbackHandle ' + str(hex(self.__int__())) + '>'
7266
7362
def __index__(self):
7267
7363
return self.__int__()
7364
+ def __eq__(self, other):
7365
+ if not isinstance(other, CUlogsCallbackHandle):
7366
+ return False
7367
+ return self._pvt_ptr[0] == (<CUlogsCallbackHandle>other)._pvt_ptr[0]
7268
7368
def __int__(self):
7269
7369
return <void_ptr>self._pvt_ptr[0]
7270
7370
def getPtr(self):
@@ -7296,6 +7396,10 @@ cdef class CUeglStreamConnection:
7296
7396
return '<CUeglStreamConnection ' + str(hex(self.__int__())) + '>'
7297
7397
def __index__(self):
7298
7398
return self.__int__()
7399
+ def __eq__(self, other):
7400
+ if not isinstance(other, CUeglStreamConnection):
7401
+ return False
7402
+ return self._pvt_ptr[0] == (<CUeglStreamConnection>other)._pvt_ptr[0]
7299
7403
def __int__(self):
7300
7404
return <void_ptr>self._pvt_ptr[0]
7301
7405
def getPtr(self):
@@ -7325,6 +7429,10 @@ cdef class EGLImageKHR:
7325
7429
return '<EGLImageKHR ' + str(hex(self.__int__())) + '>'
7326
7430
def __index__(self):
7327
7431
return self.__int__()
7432
+ def __eq__(self, other):
7433
+ if not isinstance(other, EGLImageKHR):
7434
+ return False
7435
+ return self._pvt_ptr[0] == (<EGLImageKHR>other)._pvt_ptr[0]
7328
7436
def __int__(self):
7329
7437
return <void_ptr>self._pvt_ptr[0]
7330
7438
def getPtr(self):
@@ -7354,6 +7462,10 @@ cdef class EGLStreamKHR:
7354
7462
return '<EGLStreamKHR ' + str(hex(self.__int__())) + '>'
7355
7463
def __index__(self):
7356
7464
return self.__int__()
7465
+ def __eq__(self, other):
7466
+ if not isinstance(other, EGLStreamKHR):
7467
+ return False
7468
+ return self._pvt_ptr[0] == (<EGLStreamKHR>other)._pvt_ptr[0]
7357
7469
def __int__(self):
7358
7470
return <void_ptr>self._pvt_ptr[0]
7359
7471
def getPtr(self):
@@ -7383,6 +7495,10 @@ cdef class EGLSyncKHR:
7383
7495
return '<EGLSyncKHR ' + str(hex(self.__int__())) + '>'
7384
7496
def __index__(self):
7385
7497
return self.__int__()
7498
+ def __eq__(self, other):
7499
+ if not isinstance(other, EGLSyncKHR):
7500
+ return False
7501
+ return self._pvt_ptr[0] == (<EGLSyncKHR>other)._pvt_ptr[0]
7386
7502
def __int__(self):
7387
7503
return <void_ptr>self._pvt_ptr[0]
7388
7504
def getPtr(self):
0 commit comments