ATLAS Offline Software
Loading...
Searching...
No Matches
KernelExampleConfig Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ MultiKernelExampleCfg()

KernelExampleConfig.MultiKernelExampleCfg ( flags)

Definition at line 46 of file KernelExampleConfig.py.

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

◆ OCLKernelExampleCfg()

KernelExampleConfig.OCLKernelExampleCfg ( flags)

Definition at line 14 of file KernelExampleConfig.py.

14def 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()

KernelExampleConfig.XrtKernelExampleCfg ( flags)

Definition at line 30 of file KernelExampleConfig.py.

30def 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.