Cilk_flags_are_wrong_*_please_recompile.
cilkc command in the same way you would use gcc. For example, cilkc -O2 program.cilk -o program -lm.
cilkc should accept all gcc options, and in addition it accepts the following three options.
-cilk-debug: Enable consistency checks in the Cilk runtime
system.
-cilk-profile: Enable collection of profile information
within the Cilk runtime system. You can print this information by
invoking a Cilk program with the --stats} flag.
-cilk-critical-path: Enable fine-grain collection of the program critical path. See the Cilk manual for a definition
of the critical path and an explanation of why you may want
to know it.
-cilk-* flags. If not, the linker prints an error message and fails.
Additional cilkc arguments are documented in the programming manual.
spawn is 2--6 times slower than a function call, but Cilk becomes much slower when the critical-path measurements
are enabled. This problem occurs because Cilk reads the system clock
at every thread boundary (i.e. at every spawn, sync, return). Some systems, such as Solaris, have fast user-level clock routines, but other systems, such as Linux,
require a system call. If Cilk programs are still unacceptably slow
(when compared to the C version), please contact
cilk-support@lists.sourceforge.net.
Cilk_flags_are_wrong_*_please_recompile.
undefined reference to `Cilk_flags_are_wrong_NODEBUG_NOTIMING_NOSTATS_please_recompile'
Bradley C. Kuszmaul / bradley@mit.edu - 30 August 2021