annotate src/parallel_execution/CMakeLists.txt @ 208:b6ffdd99e525

fix generate_context
author mir3636
date Tue, 20 Dec 2016 19:39:51 +0900
parents 1b15f02ec713
children ba56dab79dc4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
86
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 cmake_minimum_required(VERSION 2.8)
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
101
8987cf13d5bb Add Allocate macro
innparusu
parents: 98
diff changeset
3 # -DUSE_CUDA
138
04a2f486a30d insert works but is not balanced
kono
parents: 137
diff changeset
4 # add_definitions("-Wall -g -O")
137
909d0548284f fix stackClear
mir3636
parents: 131
diff changeset
5 add_definitions("-Wall -g")
86
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6
131
a4507906938c Fix compile error but not work
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 117
diff changeset
7 set(CMAKE_C_COMPILER $ENV{CBC_COMPILER})
188
6ab77dec8b6a add command execution in CMakeList.txt
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 138
diff changeset
8
202
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
9 add_custom_command (
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
10 OUTPUT c/enumCode.h
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
11 COMMAND "perl" "generate_context.pl"
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
12 )
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
13
198
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
14 macro( GearsCommand )
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
15 set( _OPTIONS_ARGS )
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
16 set( _ONE_VALUE_ARGS TARGET )
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
17 set( _MULTI_VALUE_ARGS SOURCES )
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
18 cmake_parse_arguments( _Gears "${_OPTIONS_ARGS}" "${_ONE_VALUE_ARGS}" "${_MULTI_VALUE_ARGS}" ${ARGN} )
205
1b15f02ec713 Fix queue test
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 203
diff changeset
19 add_executable(${_Gears_TARGET} ${_Gears_SOURCES} context.c c/enumCode.h)
198
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
20 endmacro()
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
21
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
22 GearsCommand(
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
23 TARGET
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
24 twice
4051c012dec3 cmake macro
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 188
diff changeset
25 SOURCES
205
1b15f02ec713 Fix queue test
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 203
diff changeset
26 main.c rb_tree.c stack.c origin_cs.c allocate.c compare.c worker.c dependency.c time.c twice.c test/stack_test.c stack.c test/queue_test.c queue.c
86
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 )
e06e1a9e569e create worker
Shohei KOKUBO <e105744@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
202
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
29 GearsCommand(
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
30 TARGET
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
31 test/stack_test
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
32 SOURCES
205
1b15f02ec713 Fix queue test
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 203
diff changeset
33 main.c rb_tree.c stack.c origin_cs.c allocate.c compare.c worker.c dependency.c time.c twice.c test/stack_test.c stack.c test/queue_test.c queue.c
202
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
34 )
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
35
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
36 GearsCommand(
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
37 TARGET
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
38 test/queue_test
42dbe54332a0 add test
mir3636
parents: 199
diff changeset
39 SOURCES
208
b6ffdd99e525 fix generate_context
mir3636
parents: 205
diff changeset
40 TaskManager.c main.c rb_tree.c stack.c origin_cs.c allocate.c compare.c worker.c dependency.c time.c twice.c test/stack_test.c stack.c test/queue_test.c queue.c
203
25db17f32ac2 replace Stack for stack
ikkun
parents: 202
diff changeset
41 )