1 cmake_minimum_required(VERSION 2.6)
5 set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
7 set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
10 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
12 include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
13 add_executable(gather_coll gather_coll.c)
14 add_executable(allgather_coll allgather_coll.c)
15 add_executable(allgatherv_coll allgatherv_coll.c)
16 add_executable(alltoall2 alltoall2.c)
17 add_executable(alltoall_basic alltoall_basic.c)
18 add_executable(alltoall_coll alltoall_coll.c)
19 add_executable(alltoallv_coll alltoallv_coll.c)
20 add_executable(allreduce allreduce.c)
21 add_executable(allreduce_coll allreduce_coll.c)
22 add_executable(bcast bcast.c)
23 add_executable(bcast_coll bcast_coll.c)
24 add_executable(barrier_coll barrier.c )
25 add_executable(compute compute.c)
26 add_executable(compute2 compute2.c)
27 add_executable(compute3 compute3.c)
28 add_executable(pingpong pingpong.c)
29 add_executable(scatter scatter.c)
30 add_executable(reduce reduce.c)
31 add_executable(reduce_coll reduce_coll.c)
32 add_executable(reduce_scatter_coll reduce_scatter_coll.c)
33 add_executable(split split.c)
34 add_executable(smpi_sendrecv sendrecv.c)
35 add_executable(ttest01 ttest01.c)
36 add_executable(vector_test vector_test.c)
37 add_executable(hvector_test hvector_test.c)
38 add_executable(indexed_test indexed_test.c)
39 add_executable(struct_test struct_test.c)
40 add_executable(dsend dsend.c)
42 target_link_libraries(gather_coll simgrid)
43 target_link_libraries(allgather_coll simgrid)
44 target_link_libraries(allgatherv_coll simgrid)
45 target_link_libraries(alltoall2 simgrid)
46 target_link_libraries(alltoall_basic simgrid)
47 target_link_libraries(alltoall_coll simgrid)
48 target_link_libraries(alltoallv_coll simgrid)
49 target_link_libraries(allreduce simgrid)
50 target_link_libraries(allreduce_coll simgrid)
51 target_link_libraries(bcast simgrid)
52 target_link_libraries(bcast_coll simgrid)
53 target_link_libraries(barrier_coll simgrid)
54 target_link_libraries(compute simgrid)
55 target_link_libraries(compute2 simgrid)
56 target_link_libraries(compute3 simgrid)
57 target_link_libraries(pingpong simgrid)
58 target_link_libraries(scatter simgrid)
59 target_link_libraries(reduce simgrid)
60 target_link_libraries(reduce_coll simgrid)
61 target_link_libraries(reduce_scatter_coll simgrid)
62 target_link_libraries(split simgrid)
63 target_link_libraries(smpi_sendrecv simgrid)
64 target_link_libraries(ttest01 simgrid)
65 target_link_libraries(vector_test simgrid)
66 target_link_libraries(hvector_test simgrid)
67 target_link_libraries(indexed_test simgrid)
68 target_link_libraries(struct_test simgrid)
69 target_link_libraries(dsend simgrid)
71 set_target_properties(smpi_sendrecv PROPERTIES RENAME sendrecv)
74 add_executable(shared shared.c)
75 target_link_libraries(shared simgrid)
83 ${CMAKE_CURRENT_SOURCE_DIR}/gather_coll.tesh
84 ${CMAKE_CURRENT_SOURCE_DIR}/allgather_coll.tesh
85 ${CMAKE_CURRENT_SOURCE_DIR}/allgatherv_coll.tesh
86 ${CMAKE_CURRENT_SOURCE_DIR}/allreduce_coll.tesh
87 ${CMAKE_CURRENT_SOURCE_DIR}/allreduce_coll_large.tesh
88 ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_coll.tesh
89 ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv_coll.tesh
90 ${CMAKE_CURRENT_SOURCE_DIR}/scatter_coll.tesh
91 ${CMAKE_CURRENT_SOURCE_DIR}/barrier_coll.tesh
92 ${CMAKE_CURRENT_SOURCE_DIR}/bcast.tesh
93 ${CMAKE_CURRENT_SOURCE_DIR}/bcast_coll.tesh
94 ${CMAKE_CURRENT_SOURCE_DIR}/compute.tesh
95 ${CMAKE_CURRENT_SOURCE_DIR}/shared.tesh
96 ${CMAKE_CURRENT_SOURCE_DIR}/hvector.tesh
97 ${CMAKE_CURRENT_SOURCE_DIR}/indexed.tesh
98 ${CMAKE_CURRENT_SOURCE_DIR}/pt2pt.tesh
99 ${CMAKE_CURRENT_SOURCE_DIR}/reduce.tesh
100 ${CMAKE_CURRENT_SOURCE_DIR}/reduce_coll.tesh
101 ${CMAKE_CURRENT_SOURCE_DIR}/reduce_scatter_coll.tesh
102 ${CMAKE_CURRENT_SOURCE_DIR}/struct.tesh
103 ${CMAKE_CURRENT_SOURCE_DIR}/vector.tesh
104 ${CMAKE_CURRENT_SOURCE_DIR}/TI_output.tesh
113 ${CMAKE_CURRENT_SOURCE_DIR}/gather_coll.c
114 ${CMAKE_CURRENT_SOURCE_DIR}/allgather_coll.c
115 ${CMAKE_CURRENT_SOURCE_DIR}/allgatherv_coll.c
116 ${CMAKE_CURRENT_SOURCE_DIR}/allreduce_coll.c
117 ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_coll.c
118 ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv_coll.c
119 ${CMAKE_CURRENT_SOURCE_DIR}/bcast_coll.c
120 ${CMAKE_CURRENT_SOURCE_DIR}/reduce_coll.c
121 ${CMAKE_CURRENT_SOURCE_DIR}/reduce_scatter_coll.c
122 ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv_coll.c
123 ${CMAKE_CURRENT_SOURCE_DIR}/get_processor_name.c
124 ${CMAKE_CURRENT_SOURCE_DIR}/pingpong.c
125 ${CMAKE_CURRENT_SOURCE_DIR}/bcast.c
126 ${CMAKE_CURRENT_SOURCE_DIR}/allreduce.c
127 ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_basic.c
128 ${CMAKE_CURRENT_SOURCE_DIR}/sendrecv.c
129 ${CMAKE_CURRENT_SOURCE_DIR}/reduce.c
130 ${CMAKE_CURRENT_SOURCE_DIR}/compute2.c
131 ${CMAKE_CURRENT_SOURCE_DIR}/shared.c
132 ${CMAKE_CURRENT_SOURCE_DIR}/split.c
133 ${CMAKE_CURRENT_SOURCE_DIR}/dsend.c
134 ${CMAKE_CURRENT_SOURCE_DIR}/ttest01.c
135 ${CMAKE_CURRENT_SOURCE_DIR}/compute.c
136 ${CMAKE_CURRENT_SOURCE_DIR}/compute3.c
137 ${CMAKE_CURRENT_SOURCE_DIR}/alltoall2.c
138 ${CMAKE_CURRENT_SOURCE_DIR}/scatter.c
139 ${CMAKE_CURRENT_SOURCE_DIR}/sendtest.c
140 ${CMAKE_CURRENT_SOURCE_DIR}/barrier.c
141 ${CMAKE_CURRENT_SOURCE_DIR}/vector_test.c
142 ${CMAKE_CURRENT_SOURCE_DIR}/hvector_test.c
143 ${CMAKE_CURRENT_SOURCE_DIR}/indexed_test.c
144 ${CMAKE_CURRENT_SOURCE_DIR}/struct_test.c
149 ${CMAKE_CURRENT_SOURCE_DIR}/hostfile