8from AthenaConfiguration.AllConfigFlags
import initConfigFlags
9from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
10from AthenaConfiguration.ComponentFactory
import CompFactory
11from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
12from AthenaConfiguration.TestDefaults
import defaultTestFiles
15from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
21 '''Configure the example algorithm for running on a CUDA device.
24 result = ComponentAccumulator()
26 alg = CompFactory.AthCUDAExamples.LinearTransformAsyncExampleAlg(**kwargs)
27 result.addEventAlgo(alg)
31if __name__ ==
'__main__':
34 flags = initConfigFlags()
35 flags.Concurrency.NumOffloadThreads = 2
36 flags.Exec.MaxEvents = 10000
37 flags.Input.Files = defaultTestFiles.AOD_RUN3_DATA
42 acc = MainServicesCfg(flags)
45 acc.merge(PoolReadCfg(flags))
51 sys.exit(acc.run().isFailure())