声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3009|回复: 3

[UDF专题] udf单核可以计算,单机双核可以compile成功,但是计算出现错误

[复制链接]
发表于 2012-4-17 09:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
前面定义这个宏,DEFINE_EXCHANGE_PROPERTY(custom_drag2, cell, mix_thread, s_col, f_col)里面计算k_g_s_1, k_g_s_2,后面想按坐标分段取值,这是我的代码:
#if !RP_HOST                                                   /* 97*/
             begin_c_loop(c,t)
{
         Thread *t;
        cell_t c;        
         C_CENTROID(x,c,t);
               z=x[2];
         if(z<1.6)
          k_g_s=k_g_s_2;
        else
             if((z>=1.6)&&(z<=1.88))
      {
k_g_s=(-25*z/7+47/7)*k_g_s_2+(25*z/7-40/7)*k_g_s_1;
                 }
           else
                 k_g_s=k_g_s_1;       
         }                                          
  end_c_loop(c,t)
    #endif
        return k_g_s;

链接到case之后,计算一步就出现以下错误:unable to read the cmd header on the pmi context, Undefined dynamic error code.

999999 (..\..\src\mpsystem.c@1123): mpt_read: failed: errno = 10054

999999: mpt_read: error: read failed trying to read 4 bytes: No such file or directory
unable to read the cmd header on the pmi context, Undefined dynamic error code.
received suspend command for a pmi context that doesn't exist: unmatched id = 0
received kill command for a pmi context that doesn't exist: unmatched id = 0

job aborted:
rank: node: exit code[: error message]
0: why: -1073741819: process 0 exited without calling finalize
1: why: -1073741819: process 1 exited without calling finalize
回复
分享到:

使用道具 举报

发表于 2012-4-17 15:24 | 显示全部楼层
一点也看不懂
 楼主| 发表于 2012-4-17 15:44 | 显示全部楼层
本帖最后由 潇叶飞扬 于 2012-4-17 19:53 编辑

回复 2 # dongyuanzhixing 的帖子

,compile  load均正确,就是链接到case上显示上面的错误,不知道怎么回事?
发表于 2012-5-1 13:19 | 显示全部楼层
定义物性的UDF一般不需要loop吧
程序没给写全,无法判断问题所在
把变量定义的部分也给出来看看
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-4-29 12:06 , Processed in 0.062759 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表