This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Cilk Library
- From: Richard Henderson <rth at redhat dot com>
- To: "Iyer, Balaji V" <balaji dot v dot iyer at intel dot com>, Jeff Law <law at redhat dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Cc: "Aldy Hernandez (aldyh at redhat dot com)" <aldyh at redhat dot com>, "Jason Merrill (jason at redhat dot com)" <jason at redhat dot com>, "Joseph S. Myers" <joseph at codesourcery dot com>
- Date: Thu, 24 Oct 2013 14:06:33 -0700
- Subject: Re: Cilk Library
- Authentication-results: sourceware.org; auth=none
- References: <BF230D13CA30DD48930C31D4099330003A47B9F3 at FMSMSX101 dot amr dot corp dot intel dot com> <525460A9 dot 2040409 at redhat dot com> <BF230D13CA30DD48930C31D4099330003A48660C at FMSMSX101 dot amr dot corp dot intel dot com> <525DA223 dot 3010607 at redhat dot com> <BF230D13CA30DD48930C31D4099330003A488B2C at FMSMSX101 dot amr dot corp dot intel dot com> <52675B4D dot 20905 at redhat dot com> <BF230D13CA30DD48930C31D4099330003A492B97 at FMSMSX101 dot amr dot corp dot intel dot com> <5269476E dot 4090309 at redhat dot com> <BF230D13CA30DD48930C31D4099330003A493497 at FMSMSX101 dot amr dot corp dot intel dot com>
On 10/24/2013 01:43 PM, Iyer, Balaji V wrote:
>> In file included from ../../../git-master/libcilkrts/runtime/cilk-abi.c:52:0:
>> ../../../git-master/libcilkrts/include/cilk/cilk_api.h:59:9: warning: #warning Cilk
>> API is being used with non-Cilk compiler (or Cilk is disabled) [-Wcpp]
>> # warning Cilk API is being used with non-Cilk compiler (or Cilk is
>> disabled)
>>
>> and similar for
>>
>> ../../../git-master/libcilkrts/runtime/global_state.cpp:44
>> ../../../git-master/libcilkrts/runtime/reducer_impl.cpp:59
>> ../../../git-master/libcilkrts/runtime/scheduler.c:74:0:
>
> To compile Cilk Library (libcilkrts), the compiler must have _Cilk_spawn and _Cilk_sync support. For this patch, I have defined (please see Makefile.am under GENERAL_FLAGS) the cilk-keywords to NULL to make this patch compile. When I commit this patch, I will commit the patches in the following order (after everything is approved that is):
>
> 1. Commit the _Cilk_spawn and _Cilk_sync for C and C++
> 2. Remove the -D_Cilk_spawn="" and -D_Cilk_sync="" and -D_Cilk_for=for from the Makefile.am
> 3. Commit the Cilk library patch
>
> If we do it in the above order, you won't see those warnings.
Fair enough. I just didn't know what the warnings meant.
r~