ATLAS Offline Software
Functions | Variables
KernelExampleConfig Namespace Reference

Functions

def OCLKernelExampleCfg (flags)
 
def XrtKernelExampleCfg (flags)
 
def MultiKernelExampleCfg (flags)
 

Variables

 log = logging.getLogger("AthExXRT.XrtKernelExampleCfg")
 
 flags = initConfigFlags()
 
 MaxEvents
 
 cfg = MainServicesCfg(flags)
 

Function Documentation

◆ MultiKernelExampleCfg()

def KernelExampleConfig.MultiKernelExampleCfg (   flags)

Definition at line 46 of file KernelExampleConfig.py.

46 def MultiKernelExampleCfg(flags):
47 
48  result = ComponentAccumulator()
49  result.merge(XrtKernelExampleCfg(flags))
50  result.merge(OCLKernelExampleCfg(flags))
51 
52  return result
53 

◆ OCLKernelExampleCfg()

def KernelExampleConfig.OCLKernelExampleCfg (   flags)

Definition at line 14 of file KernelExampleConfig.py.

14 def OCLKernelExampleCfg(flags):
15 
16  result = ComponentAccumulator()
17 
18  xclbin_list = [os.path.join(flags.FPGAMgmt.HLSDir, 'krnl_Combined.xclbin')]
19  result.merge(DeviceMgmtSvcCfg(flags,
20  xclbin_list))
21 
22  OCLVectorAddEx = CompFactory.AthExXRT.VectorAddOCLExampleAlg()
23  result.addEventAlgo(OCLVectorAddEx)
24 
25  OCLVectorMulEx = CompFactory.AthExXRT.VectorMultOCLExampleAlg()
26  result.addEventAlgo(OCLVectorMulEx)
27 
28  return result
29 

◆ XrtKernelExampleCfg()

def KernelExampleConfig.XrtKernelExampleCfg (   flags)

Definition at line 30 of file KernelExampleConfig.py.

30 def XrtKernelExampleCfg(flags):
31 
32  result = ComponentAccumulator()
33 
34  xclbin_list = [os.path.join(flags.FPGAMgmt.HLSDir, 'krnl_Combined.xclbin')]
35  result.merge(DeviceMgmtSvcCfg(flags,
36  xclbin_list))
37 
38  XRTVectorAddEx = CompFactory.AthExXRT.VectorAddXRTExampleAlg()
39  result.addEventAlgo(XRTVectorAddEx)
40 
41  XRTVectorMulEx = CompFactory.AthExXRT.VectorMultXRTExampleAlg()
42  result.addEventAlgo(XRTVectorMulEx)
43 
44  return result
45 

Variable Documentation

◆ cfg

KernelExampleConfig.cfg = MainServicesCfg(flags)

Definition at line 68 of file KernelExampleConfig.py.

◆ flags

KernelExampleConfig.flags = initConfigFlags()

Definition at line 57 of file KernelExampleConfig.py.

◆ log

KernelExampleConfig.log = logging.getLogger("AthExXRT.XrtKernelExampleCfg")

Definition at line 12 of file KernelExampleConfig.py.

◆ MaxEvents

KernelExampleConfig.MaxEvents

Definition at line 58 of file KernelExampleConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
KernelExampleConfig.XrtKernelExampleCfg
def XrtKernelExampleCfg(flags)
Definition: KernelExampleConfig.py:30
DeviceMgmtSvcConfig.DeviceMgmtSvcCfg
def DeviceMgmtSvcCfg(flags, xclbin_list)
Definition: DeviceMgmtSvcConfig.py:7
KernelExampleConfig.OCLKernelExampleCfg
def OCLKernelExampleCfg(flags)
Definition: KernelExampleConfig.py:14
KernelExampleConfig.MultiKernelExampleCfg
def MultiKernelExampleCfg(flags)
Definition: KernelExampleConfig.py:46