mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-10-31 16:21:27 +08:00 
			
		
		
		
	add pool threshold
This commit is contained in:
		| @@ -99,8 +99,10 @@ CudaAllocator::CudaAllocator() | |||||||
|   loc.id = 0; |   loc.id = 0; | ||||||
|   loc.type = cudaMemLocationTypeNone; |   loc.type = cudaMemLocationTypeNone; | ||||||
|   cudaMemGetDefaultMemPool(&cuda_pool_, &loc, cudaMemAllocationTypeManaged); |   cudaMemGetDefaultMemPool(&cuda_pool_, &loc, cudaMemAllocationTypeManaged); | ||||||
|   // TODO set that. |   // TODO need a strategy for that | ||||||
|   // uint64_t threshold = UINT64_MAX; |   uint64_t threshold = UINT64_MAX; | ||||||
|  |   cudaMemPoolSetAttribute( | ||||||
|  |       cuda_pool_, cudaMemPoolAttrReleaseThreshold, &threshold); | ||||||
| #endif | #endif | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Awni Hannun
					Awni Hannun