Results 1 to 9 of 9

Thread: Easy Parallel Programming: Cilk Plus Ported To GCC

  1. #1
    Join Date
    Jan 2007
    Posts
    14,350

    Default Easy Parallel Programming: Cilk Plus Ported To GCC

    Phoronix: Easy Parallel Programming: Cilk Plus Ported To GCC

    Early this morning I mentioned some of the features for GCC 4.7 as what one can expect when this next major open-source compiler update is out in a matter of months. There was some speculation in the forums that this article was a preemptive article coming just before a big code drop. As luck would have it, this afternoon there's a big Intel GCC announcement...

    http://www.phoronix.com/vr.php?view=OTc5NQ

  2. #2
    Join Date
    Dec 2009
    Posts
    269

    Default a few questions

    So...

    First of all, will it work with AMD processors?(I'd be amazed if it does, why support competition?)
    Second of all, did I understand it correct, it's transparent to compilator user? Will it transparently auto-magically compile programs to take advantage of multiprocessor CPU's?(I understand not too many "core" utilities can take advantage of it)

    Thanks!

  3. #3
    Join Date
    Aug 2009
    Location
    Russe, Bulgaria
    Posts
    500

    Default

    Quote Originally Posted by dimko View Post
    So...

    First of all, will it work with AMD processors?(I'd be amazed if it does, why support competition?)
    Second of all, did I understand it correct, it's transparent to compilator user? Will it transparently auto-magically compile programs to take advantage of multiprocessor CPU's?(I understand not too many "core" utilities can take advantage of it)

    Thanks!
    First: AMD and intel processors are x86, so it work on AMD. You as a programmer are concerned by the front-end, which doesn't depend on the CPU instructions back-end generates.
    Second: No it won't auto-magically compile any program, because programs have to be written using Cilk. Three additional keywords are used in C/C++.

  4. #4
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    4,991

    Default

    So it duplicates openmp functionality?

  5. #5
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    3,778

    Default

    Quote Originally Posted by curaga View Post
    So it duplicates openmp functionality?
    It's supposed to be much simpler to use than OpenMP though. I'm looking forward to it; hopefully we'll see it in GCC soon.

  6. #6
    Join Date
    Dec 2007
    Location
    Edinburgh, Scotland
    Posts
    574

    Default

    I was actually expecting it to be a code drop from AMD as you said you had an AMD announcement this week on twitter

  7. #7
    Join Date
    Oct 2009
    Posts
    60

    Default

    Quote Originally Posted by RealNC View Post
    It's supposed to be much simpler to use than OpenMP though. I'm looking forward to it; hopefully we'll see it in GCC soon.
    Looking at http://myxman.org/dp/node/182, I don't really get where Cilk Plus is "much simpler" than OpenMP. And Cilk Plus comes with quite some problems, ranging from being a non-standard language extension instead of just preprocessor magic (one can simply compile OpenMP code with a non-OpenMP-enabled compiler and it still works!) to just being supported by Intel. And you can't debug Cilk Plus using any standard debugger.

    With OpenMP and Boost.Thread at hand, I don't really see a need for Cilk Plus.

  8. #8
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    3,778

    Default

    Quote Originally Posted by sturmflut View Post
    Looking at http://myxman.org/dp/node/182, I don't really get where Cilk Plus is "much simpler" than OpenMP.
    It supposedly only has three keywords or something. I never worked with it either, mind you. :-P I use good old threads and MPI.

  9. #9
    Join Date
    Feb 2008
    Location
    Linuxland
    Posts
    4,991

    Default

    I've only used openmp of the two, and cilk doesn't look much simpler.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •