30def TrackParticleCalibratorExampleAlgCfg(flags, **kwargs):
31 '''Configure the example algorithm for running on a CUDA device.
32 '''
33
34 result = ComponentAccumulator()
35
36 alg = CompFactory.AthCUDAExamples.TrackParticleCalibratorExampleAlg(**kwargs)
37 memoryResources = MemoryResourcesToolCfg(flags, **kwargs)
38 alg.MemoryResourcesTool = memoryResources.getPrimary()
39 result.merge(memoryResources)
40 hostCopyTool = HostCopyToolCfg(flags, **kwargs)
41 alg.HostCopyTool = hostCopyTool.getPrimary()
42 result.merge(hostCopyTool)
43 deviceCopyTool = DeviceCopyToolCfg(flags, **kwargs)
44 alg.DeviceCopyTool = deviceCopyTool.getPrimary()
45 result.merge(deviceCopyTool)
46 streamTool = StreamToolCfg(flags, **kwargs)
47 alg.StreamTool = streamTool.getPrimary()
48 result.merge(streamTool)
49
50
51
52 result.addEventAlgo(alg)
53
54 return result
55