mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
[CUDA] Recycle CUDA events (#2604)
* Make CudaEvent a CudaHandle * Add caching for CudaEvent * Make sure cuda events are destroyed at last * Fix headers * SharedEvent => AtomicEvent * RawCudaEvent => CudaEventHandle, CudaEventWrapper => CopyableCudaEvent * Remove unneeded asserts
This commit is contained in:
@@ -7,7 +7,7 @@ namespace mlx::core {
|
||||
|
||||
struct FenceImpl {
|
||||
uint32_t count;
|
||||
cu::SharedEvent event;
|
||||
cu::AtomicEvent event;
|
||||
};
|
||||
|
||||
Fence::Fence(Stream s) {
|
||||
|
||||
Reference in New Issue
Block a user