MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / make_and_set_device_pool

Function make_and_set_device_pool

deps/GraphBLAS/rmm_wrap/rmm_wrap.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105// of each allocation
106
107inline auto make_and_set_device_pool
108(
109 std::size_t initial_size,
110 std::size_t maximum_size
111)
112{
113 auto resource = rmm::mr::make_owning_wrapper<rmm::mr::pool_memory_resource>
114 ( make_cuda(), initial_size, maximum_size ) ;
115 rmm::mr::set_current_device_resource( resource.get()) ;
116 return resource;
117}
118
119inline auto make_and_set_managed_pool
120(

Callers 1

rmm_wrap_initializeFunction · 0.85

Calls 1

make_cudaFunction · 0.85

Tested by

no test coverage detected