This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Does gcc cilk plus support include offloading to graphics hardware?

Thank you Ilya,
I now understand that gcc has full support for only the _language_
extensions of cilk plus. Perhaps the release notes might be updated to
note this.

Intel market #pragma offload(gfx) as a cilk plus feature. For example
slides 12-15 here:

Thanks again.

On 20 April 2016 at 19:31, Ilya Verbin <> wrote:
> 2016-04-20 4:01 GMT+03:00 Hal Ashburner <>:
>> Release notes say:
>> "Full support for Cilk Plus has been added to the GCC compiler. Cilk
>> Plus is an extension to the C and C++ languages to support data and
>> task parallelism."
>> gcc-5.2 (centos-7, devtoolset-4) says:
>> g++ -std=c++14 -Wall -O3 -march=native -fcilkplus vec_add.cpp -o vec_add
>> vec_add.cpp:6:0: warning: ignoring #pragma offload target [-Wunknown-pragmas]
>>  #pragma offload target(gfx) pin(out, in1, in2 : length(n))
> "#pragma offload" is not a part of Cilk Plus [1], and it is not
> supported by GCC.
> However, GCC supports similar "#pragma omp target" for offloading to
> Intel Xeon Phi and other GPUs (Intel Graphics is not supported).
> [1]
>   -- Ilya

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]