-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMultyCPStepNetwork.xml
More file actions
104 lines (87 loc) · 3.97 KB
/
MultyCPStepNetwork.xml
File metadata and controls
104 lines (87 loc) · 3.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">
<context:component-scan base-package="info.binarynetwork.*" />
<!-- CONFIG -->
<bean id="loadConfigJSON"
class="info.binarynetwork.impls.LoadConfigFromJSON">
<constructor-arg name="filename" value="config.json"></constructor-arg>
</bean>
<bean id="loadConfigFile"
class="info.binarynetwork.impls.LoadConfigFromFile">
<constructor-arg name="filename" value="config.ini"></constructor-arg>
</bean>
<bean id="config" class="info.binarynetwork.impls.GetConfig">
<constructor-arg name="config" ref="loadConfigFile"></constructor-arg>
<!-- ref= "LoadConfigFromJSON" if need load config from JSON -->
<!-- ref= "loadConfigFile" if need load config from INI widows format -->
</bean>
<!-- INPUTDATA -->
<bean id="compareFile"
class="info.binarynetwork.impls.LoadCompareDataFile">
<constructor-arg name="file" value="RU_compare.json"></constructor-arg>
</bean>
<bean id="inputData"
class="info.binarynetwork.impls.GetInputData">
<constructor-arg name="data" ref="compareFile"></constructor-arg>
<!-- ref "compareFile" load data from file -->
<!-- ref "compareStatic" load data from static class -->
</bean>
<bean id="inputData32"
class="info.binarynetwork.impls.GetBinary32Data">
<constructor-arg name="dataText" ref="compareFile"></constructor-arg>
<!-- ref "compareFile" load data from file -->
<!-- ref "compareStatic" load data from static class -->
</bean>
<bean id="inputData64"
class="info.binarynetwork.impls.GetBinary64Data">
<constructor-arg name="dataText" ref="compareFile"></constructor-arg>
<!-- ref "compareFile" load data from file -->
<!-- ref "compareStatic" load data from static class -->
</bean>
<!-- FAMILY -->
<bean id="familyLoaderJSON"
class="info.binarynetwork.impls.FamilyLoaderFromJSON">
</bean>
<bean id="familyData"
class="info.binarynetwork.impls.FamilyDataFile">
<property name="loader" ref="familyLoaderJSON"></property>
</bean>
<bean id="cp_core" class="info.binarynetwork.core.impl.NetworkCoreImpl"> </bean>
<bean id="cuda_core" class="info.binarynetwork.core.impl.NetworkCUDACoreImpl"></bean>
<bean id="single_cp_step"
class="info.binarynetwork.core.impl.NetworkStepSingleCP">
<property name="core" ref="cp_core"></property>
</bean>
<bean id="multy_cp_step"
class="info.binarynetwork.core.impl.NetworkStepMultyCP">
<property name="core" ref="cp_core"></property>
<property name="THREAD_POOL_SIZE" value="4"></property>
</bean>
<bean id="network_step_check"
class="info.binarynetwork.core.impl.NetworkStepImpl">
<property name="executor" ref="single_cp_step"></property>
<!-- ref = "single_cp_step" for single CP -->
<!-- ref = "multy_cp_step" for Multy CP -->
<property name="data32" ref="inputData32"></property>
</bean>
<bean id="network_step"
class="info.binarynetwork.core.impl.NetworkStepImpl">
<property name="executor" ref="multy_cp_step"></property>
<!-- ref = "single_cp_step" for single CP -->
<!-- ref = "multy_cp_step" for Multy CP -->
<property name="data32" ref="inputData32"></property>
<!-- ref data = inputData text input data -->
<!-- ref data32 = Bin 32bit input data -->
<!-- ref data64 = Bin 64bit input data -->
</bean>
<bean id="cuda_step"
class="info.binarynetwork.core.impl.NetworkStepCUDA">
<property name="CUDACore" ref="cuda_core"></property>
<property name="CUDA_Grid_Size_x" value="4"></property>
<property name="CUDA_Block_Size_x" value="128"></property>
</bean>
</beans>