ATLAS Offline Software
Loading...
Searching...
No Matches
LinearTransformStandaloneExampleConfig.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3#
4# Simple ComponentAccumulator configuration for running
5# AthCUDAExamples::LinearTransformStandaloneExampleAlg
6
7from AthenaConfiguration.AllConfigFlags import initConfigFlags
8from AthenaConfiguration.ComponentFactory import CompFactory
9from AthenaConfiguration.MainServicesConfig import MainServicesCfg
10
11import sys
12
13# Set up the job's flags.
14flags = initConfigFlags()
15flags.Exec.MaxEvents = 10
16flags.Input.Files = []
17flags.fillFromArgs()
18flags.lock()
19
20# Set up the main services.
21acc = MainServicesCfg(flags)
22
23# Set up the example algorithm.
24acc.addEventAlgo(CompFactory.AthCUDAExamples.LinearTransformStandaloneExampleAlg())
25
26# Run the configuration.
27sys.exit(acc.run().isFailure())