| ²é¿´: 1303 | »Ø¸´: 5 | ||
| µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû | ||
von_weiqiangľ³æ (ÕýʽдÊÖ)
|
[ÇóÖú]
ÓÃMPICH2ÔËÐв¢ÐгÌÐò£¬´úÂëÖеÄprintfÓï¾äÖ»ÓÐÔÚËùÓнø³Ì¶¼½áÊøºó²Å»á´òÓ¡³öÀ´Ã´£¿ ÒÑÓÐ2È˲ÎÓë
|
|
|
Äܲ»Äܸ÷½ø³ÌÒ»±ßÔËÐУ¬Ò»±ß´òÓ¡£¿ ÀýÈç´úÂ룺 MPI_Init(&argc, &argv); MPI_Comm_rank(MPI_COMM_WORLD,&myrank); for(i=0;i<1e1;i++) { a=integration(0,1,1e-6,f); printf("current %d %d %e\n",myrank,i,a); } MPI_Finalize(); ÆäÖУ¬integrationº¯Êýÿµ÷ÓÃÒ»´ÎÐèÒªÔ¼2sʱ¼ä£¬Ã¿¸ö½ø³ÌÔËÐÐʱ¼ä´óÔ¼20s£¬ÎÒµÄÀí½âÊÇ£¬Ã¿¸ö½ø³Ìÿ2s¾ÍÓ¦¸Ã´òÓ¡Ò»´Î¡°½ø³ÌºÅ£¬Ñ»·´ÎÊý¡±£¬ËùÒÔ½ø³ÌºÅÓ¦¸ÃÊÇÔÓÂÒÎÞÕµģ¬¿ÉÊÇÓÃMPICH¿ªÆô3¸ö½ø³Ìʵ¼ÊÔËÐнá¹ûÊÇÕâÑù£º current 0 0 3.141593e+000 current 0 1 3.141593e+000 current 0 2 3.141593e+000 current 0 3 3.141593e+000 current 0 4 3.141593e+000 current 0 5 3.141593e+000 current 0 6 3.141593e+000 current 0 7 3.141593e+000 current 0 8 3.141593e+000 current 0 9 3.141593e+000 current 2 0 3.141593e+000 current 2 1 3.141593e+000 current 2 2 3.141593e+000 current 2 3 3.141593e+000 current 2 4 3.141593e+000 current 2 5 3.141593e+000 current 2 6 3.141593e+000 current 2 7 3.141593e+000 current 2 8 3.141593e+000 current 2 9 3.141593e+000 current 1 0 3.141593e+000 current 1 1 3.141593e+000 current 1 2 3.141593e+000 current 1 3 3.141593e+000 current 1 4 3.141593e+000 current 1 5 3.141593e+000 current 1 6 3.141593e+000 current 1 7 3.141593e+000 current 1 8 3.141593e+000 current 1 9 3.141593e+000 Çë°´ÈÎÒâ¼ü¼ÌÐø. . . ÎªÊ²Ã´ÄØ£¿ |
» ²ÂÄãϲ»¶
2026ÄêÑ»·¾¼Ã¹¦ÄܲÄÁϹú¼Ê»áÒ飨ICFMCE 2026£©
ÒѾÓÐ0È˻ظ´
2026ÄêµÚÎå½ìµçÆø¡¢µç×ÓÓëÐÅÏ¢¹¤³Ì¹ú¼Ê»áÒ飨ISEEIE 2026£©
ÒѾÓÐ0È˻ظ´
ÎïÀíѧIÂÛÎÄÈóÉ«/·ÒëÔõôÊÕ·Ñ?
ÒѾÓÐ108È˻ظ´
¹þ¶û±õÀí¹¤´óѧÎïÀíϵÕÐÊÕÎïÀíѧ¿¼Ñе÷¼Á
ÒѾÓÐ5È˻ظ´
0702Ò»Ö¾Ô¸¼ª´óBÇøÇóµ÷¼Á
ÒѾÓÐ5È˻ظ´
Çóµ÷¼Á
ÒѾÓÐ0È˻ظ´
0702Ò»Ö¾Ô¸¼ª´óBÇøÇóµ÷¼ÁÓÐÂÛÎÄ
ÒѾÓÐ0È˻ظ´
ÇëÎÊ»¹ÓÐûÓÐÓÃLatexдÎÄÕµÄС»ï°éÃÇ£¿
ÒѾÓÐ0È˻ظ´
¹âѧ¹¤³Ìѧ˶µ÷¼ÁÐÅÏ¢
ÒѾÓÐ29È˻ظ´
»¶Ó¼ÓÈë¿ÎÌâ×é
ÒѾÓÐ0È˻ظ´
É¢½ð±Ò£¬ÇóºÃÔË£¬×£ÃæÉÏ˳Àû£¡
ÒѾÓÐ53È˻ظ´

yuejian0518
Òø³æ (³õÈëÎÄ̳)
- Ó¦Öú: 6 (Ó×¶ùÔ°)
- ½ð±Ò: 648.4
- ºì»¨: 3
- Ìû×Ó: 34
- ÔÚÏß: 14.3Сʱ
- ³æºÅ: 2442388
- ×¢²á: 2013-04-30
- רҵ: Á¦Ñ§ÖеĻù±¾ÎÊÌâºÍ·½·¨
4Â¥2014-02-13 14:14:53
temgy1986
½ð³æ (СÓÐÃûÆø)
- Ó¦Öú: 12 (СѧÉú)
- ½ð±Ò: 597.9
- ºì»¨: 1
- Ìû×Ó: 155
- ÔÚÏß: 55.5Сʱ
- ³æºÅ: 2071564
- ×¢²á: 2012-10-19
- ÐÔ±ð: GG
- רҵ: ʯÓÍÌìÈ»Æø¿ª²É
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï ¡ï
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
fegg7502: ½ð±Ò+1, ¹ÄÀø½»Á÷ 2014-02-14 10:03:52
von_weiqiang: ½ð±Ò+50, ¡ï¡ï¡ï¡ï¡ï×î¼Ñ´ð°¸ 2014-03-17 21:54:48
¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
fegg7502: ½ð±Ò+1, ¹ÄÀø½»Á÷ 2014-02-14 10:03:52
von_weiqiang: ½ð±Ò+50, ¡ï¡ï¡ï¡ï¡ï×î¼Ñ´ð°¸ 2014-03-17 21:54:48
|
Õâ¸öÎÊÌâÉè¼Æ¼ÆËã»úµÄ»º³åÇø¡£printµÄ¶«Î÷ÊÇÏÈÊä³öµ½»º³åÇø£¬ÔÙ´Ó»º³åÇøÊä³öµ½Öն˵Ä(Îļþ£¬»òÕßÏÔʾÆ÷)¡£ËùÒÔ×îÖÕµÄÊä³öºÍϵͳÓйØÏµ£¬²¢²»ÄÜÖ±½Ó·´Ó¦ÔËÐÐ˳Ðò¡£Äã¿ÉÒÔʹÓÃflushÃüÁîÀ´Ë¢Ð»º³åÇø£¬²¢ÓÃmpi_barrier£¨£©À´Í¬²½¸÷¸ö½ø³Ì£¬¾Í¿ÉÒԵõ½ÏëÒªµÄ˳Ðò¡£ [ ·¢×ÔÊÖ»ú°æ http://muchong.com/3g ] |

2Â¥2014-02-04 21:26:55
von_weiqiang
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 58 (³õÖÐÉú)
- ½ð±Ò: 1453
- É¢½ð: 390
- ºì»¨: 4
- Ìû×Ó: 581
- ÔÚÏß: 254.5Сʱ
- ³æºÅ: 2070109
- ×¢²á: 2012-10-18
- רҵ: ȼÉÕѧ

3Â¥2014-02-08 10:28:19
anlongstar
ľ³æ (ÎÄ̳¾«Ó¢)
- Ó¦Öú: 104 (¸ßÖÐÉú)
- ½ð±Ò: 10619.4
- É¢½ð: 20
- ºì»¨: 23
- Ìû×Ó: 13673
- ÔÚÏß: 426.7Сʱ
- ³æºÅ: 1173841
- ×¢²á: 2010-12-20
- ÐÔ±ð: GG
- רҵ: ¶¯Á¦Ñ§Óë¿ØÖÆ
5Â¥2014-02-14 22:08:41













»Ø¸´´ËÂ¥