28def TrackParticleCalibratorExampleAlgCfg(flags, **kwargs):
29 '''Configure the example algorithm for running on a CUDA device.
30 '''
31
32 result = ComponentAccumulator()
33
34 alg = CompFactory.AthCUDAExamples.TrackParticleCalibratorExampleAlg(**kwargs)
35 hostMR = HostMemoryResourceToolCfg(flags, **kwargs)
36 alg.HostMR = hostMR.getPrimary()
37 result.merge(hostMR)
38 deviceMR = DeviceMemoryResourceToolCfg(flags, **kwargs)
39 alg.DeviceMR = deviceMR.getPrimary()
40 result.merge(deviceMR)
41
42
43 result.addEventAlgo(alg)
44
45 return result
46