[176] | 1 | include_directories (${CMAKE_SOURCE_DIR}/include/) |
---|
| 2 | |
---|
| 3 | link_directories (${CMAKE_BINARY_DIR}/src/ |
---|
| 4 | /usr/lib) |
---|
| 5 | |
---|
| 6 | add_executable (test_deque test_deque.c) |
---|
| 7 | target_link_libraries(test_deque swift-workstealing pthread) |
---|
| 8 | |
---|
| 9 | # Fibonacci |
---|
| 10 | |
---|
| 11 | add_executable (fibo_serial fibo_serial.c) |
---|
| 12 | set_target_properties(fibo_serial PROPERTIES COMPILE_FLAGS "-fno-omit-frame-pointer") |
---|
| 13 | |
---|
| 14 | add_executable (fibo_stack_2spawns fibo_stack_2spawns.c) |
---|
| 15 | target_link_libraries(fibo_stack_2spawns swift-workstealing pthread) |
---|
| 16 | |
---|
| 17 | add_executable(fibo_omp fibo_omp.c) |
---|
| 18 | set_target_properties(fibo_omp PROPERTIES COMPILE_FLAGS "-fopenmp" LINK_FLAGS "-fopenmp") |
---|
| 19 | |
---|
| 20 | # Quicksort |
---|
| 21 | |
---|
| 22 | add_executable(qsort_gen qsort_gen.c qsort_common.c) |
---|
| 23 | |
---|
| 24 | add_executable(qsort_serial qsort_serial.c qsort_common.c) |
---|
| 25 | set_target_properties(qsort_serial PROPERTIES COMPILE_FLAGS "-fno-omit-frame-pointer") |
---|
| 26 | |
---|
| 27 | add_executable(qsort_ws qsort_ws.c qsort_common.c) |
---|
| 28 | target_link_libraries(qsort_ws swift-workstealing pthread) |
---|
| 29 | |
---|
| 30 | add_executable(qsort_omp_par qsort_omp_par.c qsort_common.c) |
---|
| 31 | set_target_properties(qsort_omp_par PROPERTIES COMPILE_FLAGS "-fopenmp" LINK_FLAGS "-fopenmp") |
---|
| 32 | |
---|
| 33 | add_executable(qsort_omp_task qsort_omp_task.c qsort_common.c) |
---|
| 34 | set_target_properties(qsort_omp_task PROPERTIES COMPILE_FLAGS "-fopenmp" LINK_FLAGS "-fopenmp") |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | |
---|
| 38 | #add_executable (fibo fibo.c) |
---|
| 39 | #target_link_libraries(fibo swift-workstealing pthread) |
---|
| 40 | |
---|
| 41 | #add_executable (fibo_2spawn fibo_2spawn.c) |
---|
| 42 | #target_link_libraries(fibo_2spawn swift-workstealing pthread) |
---|
| 43 | |
---|
| 44 | #add_executable (fibo_2spawns_no_ksync fibo_2spawns_no_ksync.c) |
---|
| 45 | #target_link_libraries(fibo_2spawns_no_ksync swift-workstealing pthread) |
---|