免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3320 | 回复: 10
打印 上一主题 下一主题

Multicore Programming Software [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-03-12 09:52 |只看该作者 |倒序浏览
公司主页 http://www.cilk.com/

Smooth Path to Multicore

The Cilk++ cross-platform solution offers the easiest, quickest, and most reliable way to maximize application performance on multicore processors. Cilk++ provides a simple set of extensions for C++, coupled with a powerful runtime system for multicore-enabled applications. Cilk++ enables rapid development, testing, and deployment of high performance multicore applications.

Cilk++ solves the two large problems facing the software industry as a result of the multicore revolution:

   1. Enabling today's mainstream programmers to develop multithreaded (or parallel) applications; and
   2. Providing a smooth path to multicore for legacy applications that otherwise cannot easily leverage the performance capabilities of multicore processors.

With Cilk++, you can retain the serial semantics of your existing applications, use existing serial methodologies for programming, tooling, debugging, and regression testing.

In the following video, Duncan McCallum, CEO of Cilk Arts, discusses the multicore programming challenge facing the industry, the mission and core values of Cilk Arts.

论坛徽章:
5
2 [报告]
发表于 2009-03-12 09:53 |只看该作者
Smooth Path, 这个的中文应该怎么说呢?

论坛徽章:
0
3 [报告]
发表于 2009-03-12 11:57 |只看该作者
原帖由 prolj 于 2009-3-12 09:52 发表
公司主页 http://www.cilk.com/

Smooth Path to Multicore

The Cilk++ cross-platform solution offers the easiest, quickest, and most reliable way to maximize application performance on multicor ...


好,赞LZ一个!

论坛徽章:
0
4 [报告]
发表于 2009-03-12 11:59 |只看该作者


cilk 与 openMP 有思想上的互相借鉴,当然当然对程序员而言还是有些区别的.
如:

  1. #include <stdlib.h>
  2. #include <stdio.h>

  3. cilk int myfun (int par_n)
  4. {
  5.    int x, y;

  6.    if (par_n<2)
  7.    {
  8.        return par_n;
  9.    }
  10.    else
  11.    {
  12.        x=spawn myfun(par_n-1);
  13.        y=spawn myfun(par_n-2);
  14.        sync;
  15.        return(x+y);
  16.    }
  17. }

  18. cilk int main ()
  19. {
  20.      int n;

  21.      n=spawn myfun(100);
  22.      sync;
  23.      printf ("this result is: %d\n",n);
  24.      return 0;
  25. }
复制代码

论坛徽章:
0
5 [报告]
发表于 2009-03-12 12:07 |只看该作者

回复 #5 system888net 的帖子


  1. cilk int myfun1()
  2. {
  3.      //your dosomthing
  4.      return(1);
  5. }

  6. cilk int myfun2()
  7. {
  8.      //your dosomthing
  9.      return(2);
  10. }

  11. cilk int main ()
  12. {
  13.     spawn myfun1();
  14.     spawn myfun2();
  15.     sync;
  16.     printf("main finish....\r\n");
  17.     return 0;
  18. }
复制代码

论坛徽章:
0
6 [报告]
发表于 2009-03-12 12:11 |只看该作者
原帖由 yidou 于 2009-3-12 09:53 发表
Smooth Path, 这个的中文应该怎么说呢?


就按字面意思:"平滑路径",含义也比较贴切!

论坛徽章:
5
7 [报告]
发表于 2009-03-12 12:29 |只看该作者
原帖由 system888net 于 2009/3/12 12:11 发表


就按字面意思:"平滑路径",含义也比较贴切!

不解

论坛徽章:
0
8 [报告]
发表于 2009-03-12 12:38 |只看该作者
原帖由 yidou 于 2009-3-12 12:29 发表

不解


意指使常规的串行编程可以平滑(平缓)过渡到并行编程,或者说是一个平滑过渡到并行编程的方法.
当然有点"自己表扬自己"的意思. 不过跟openMP比较,对程序员而言有些部分是更接近习惯一点.

论坛徽章:
5
9 [报告]
发表于 2009-03-12 12:44 |只看该作者

回复 #9 system888net 的帖子

这个解释比较易懂.

论坛徽章:
0
10 [报告]
发表于 2009-03-12 12:46 |只看该作者
对一个任务而言,利用多核可以用多中编译器或方法进行有效的性能提升,但有一个限制就是:多核的最终效果是取决于应用的模型,而不是程序的优化手段.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP