Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add support of MPI_PROC_NULL, correct behavior of waitall and waitsome for some speci...
[simgrid.git] / examples / smpi / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi)
4   set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/bin/smpicc")
5
6   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
7
8   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
9
10   add_executable(alltoall2 alltoall2.c )
11   add_executable(alltoall_basic alltoall_basic.c)
12   add_executable(alltoallv alltoallv.c)
13   add_executable(allreduce allreduce.c)
14   add_executable(bcast bcast.c)
15   add_executable(bcbench bcbench.c)
16   add_executable(compute compute.c)
17   add_executable(compute2 compute2.c)
18   add_executable(compute3 compute3.c)
19   add_executable(pingpong pingpong.c)
20   add_executable(scatter scatter.c)
21   add_executable(reduce reduce.c)
22   add_executable(split split.c)
23   add_executable(dsend dsend.c)
24   add_executable(mvmul mvmul.c)
25   add_executable(smpi_sendrecv sendrecv.c)
26   add_executable(smpi_traced tracing/smpi_traced.c)
27   add_executable(smpi_traced_simple tracing/smpi_traced_simple.c)
28   add_executable(ttest01 ttest01.c)
29   add_executable(mc_bugged1 mc_bugged1.c)
30   add_executable(mc_bugged2 mc_bugged2.c)
31   add_executable(smpi_replay replay/replay.c)
32
33   target_link_libraries(alltoall2 m simgrid smpi )
34   target_link_libraries(alltoall_basic m simgrid smpi )
35   target_link_libraries(alltoallv m simgrid smpi )
36   target_link_libraries(allreduce m simgrid smpi )
37   target_link_libraries(bcast m simgrid smpi )
38   target_link_libraries(bcbench m simgrid smpi )
39   target_link_libraries(compute m simgrid smpi )
40   target_link_libraries(compute2 m simgrid smpi )
41   target_link_libraries(compute3 m simgrid smpi )
42   target_link_libraries(pingpong m simgrid smpi )
43   target_link_libraries(scatter m simgrid smpi )
44   target_link_libraries(reduce m simgrid smpi )
45   target_link_libraries(split m simgrid smpi )
46   target_link_libraries(dsend m simgrid smpi )
47   target_link_libraries(mvmul m simgrid smpi )
48   target_link_libraries(smpi_sendrecv m simgrid smpi )
49   target_link_libraries(smpi_traced m simgrid smpi )
50   target_link_libraries(smpi_traced_simple m simgrid smpi )
51   target_link_libraries(ttest01 m simgrid smpi )
52   target_link_libraries(mc_bugged1 m simgrid smpi )
53   target_link_libraries(mc_bugged2 m simgrid smpi )
54   target_link_libraries(smpi_replay m simgrid smpi )
55
56   set_target_properties(smpi_sendrecv PROPERTIES RENAME sendrecv)
57 endif(enable_smpi)
58
59 set(tesh_files
60   ${tesh_files}
61   ${CMAKE_CURRENT_SOURCE_DIR}/bcast.tesh
62   ${CMAKE_CURRENT_SOURCE_DIR}/reduce.tesh
63   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.tesh
64   PARENT_SCOPE
65   )
66 set(xml_files
67   ${xml_files}
68   PARENT_SCOPE
69   )
70 set(examples_src
71   ${examples_src}
72   ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv.c
73   ${CMAKE_CURRENT_SOURCE_DIR}/mc_bugged2.c
74   ${CMAKE_CURRENT_SOURCE_DIR}/get_processor_name.c
75   ${CMAKE_CURRENT_SOURCE_DIR}/pingpong.c
76   ${CMAKE_CURRENT_SOURCE_DIR}/bcast.c
77   ${CMAKE_CURRENT_SOURCE_DIR}/allreduce.c
78   ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_basic.c
79   ${CMAKE_CURRENT_SOURCE_DIR}/sendrecv.c
80   ${CMAKE_CURRENT_SOURCE_DIR}/mc_bugged1.c
81   ${CMAKE_CURRENT_SOURCE_DIR}/reduce.c
82   ${CMAKE_CURRENT_SOURCE_DIR}/mvmul.c
83   ${CMAKE_CURRENT_SOURCE_DIR}/compute2.c
84   ${CMAKE_CURRENT_SOURCE_DIR}/split.c
85   ${CMAKE_CURRENT_SOURCE_DIR}/dsend.c
86   ${CMAKE_CURRENT_SOURCE_DIR}/ttest01.c
87   ${CMAKE_CURRENT_SOURCE_DIR}/compute.c
88   ${CMAKE_CURRENT_SOURCE_DIR}/compute3.c
89   ${CMAKE_CURRENT_SOURCE_DIR}/alltoall2.c
90   ${CMAKE_CURRENT_SOURCE_DIR}/scatter.c
91   ${CMAKE_CURRENT_SOURCE_DIR}/sendtest.c
92   ${CMAKE_CURRENT_SOURCE_DIR}/barrier.c
93   ${CMAKE_CURRENT_SOURCE_DIR}/bcbench.c
94   ${CMAKE_CURRENT_SOURCE_DIR}/replay/replay.c
95   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.c
96   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced_simple.c
97   PARENT_SCOPE
98   )
99 set(bin_files
100   ${bin_files}
101   ${CMAKE_CURRENT_SOURCE_DIR}/hostfile
102   PARENT_SCOPE
103   )
104 set(txt_files
105   ${txt_files}
106   PARENT_SCOPE
107   )