16 '''Default CUDA host memory resource tool to use
18 It makes sure that appropriate caching would be used, as allocating pinned
19 host memory is relatively slow.
23 result = ComponentAccumulator()
27 hostTool = CompFactory.AthCUDA.HostMemoryResourceTool(**kwargs)
28 cacheSvc = CompFactory.AthDevice.BinaryPageMemoryResourceSvc(
29 'CUDAHostCachedMemoryResourceSvc',
31 result.addService(cacheSvc)
32 finalTool = CompFactory.AthDevice.MemoryResourceSvcAdaptorTool(
33 'CUDAHostCachedMemoryResourceTool',
35 result.setPrivateTools(finalTool)
42 '''Default CUDA device memory resource tool to use
44 It makes sure that appropriate caching would be used, as allocating device
45 memory is relatively slow.
49 result = ComponentAccumulator()
53 deviceTool = CompFactory.AthCUDA.DeviceMemoryResourceTool(**kwargs)
54 cacheSvc = CompFactory.AthDevice.BinaryPageMemoryResourceSvc(
55 'CUDADeviceCachedMemoryResourceSvc',
57 result.addService(cacheSvc)
58 finalTool = CompFactory.AthDevice.MemoryResourceSvcAdaptorTool(
59 'CUDADeviceCachedMemoryResourceTool',
61 result.setPrivateTools(finalTool)
68 '''Default CUDA managed memory resource tool to use
70 It makes sure that appropriate caching would be used, as allocating managed
71 memory is relatively slow.
75 result = ComponentAccumulator()
79 managedTool = CompFactory.AthCUDA.ManagedMemoryResourceTool(**kwargs)
80 cacheSvc = CompFactory.AthDevice.BinaryPageMemoryResourceSvc(
81 'CUDAManagedCachedMemoryResourceSvc',
83 result.addService(cacheSvc)
84 finalTool = CompFactory.AthDevice.MemoryResourceSvcAdaptorTool(
85 'CUDAManagedCachedMemoryResourceTool',
87 result.setPrivateTools(finalTool)