mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-02-19 02:44:40 -05:00
cuda correct pointer type (#7153)
This commit is contained in:
@@ -87,7 +87,7 @@ class CUDAAllocator(LRUAllocator):
|
||||
check(cuda.cuEventRecord(sync_event, None))
|
||||
check(cuda.cuCtxSetCurrent(dest_dev.context))
|
||||
check(cuda.cuStreamWaitEvent(None, sync_event, 0)) # sync the default stream on the dest dev
|
||||
def offset(self, buf, size:int, offset:int): return ctypes.c_ulong(buf.value + offset)
|
||||
def offset(self, buf, size:int, offset:int): return cuda.CUdeviceptr_v2(buf.value + offset)
|
||||
|
||||
class CUDADevice(Compiled):
|
||||
devices: List[CUDADevice] = []
|
||||
|
||||
Reference in New Issue
Block a user