找回密码
 注册
查看: 1644|回复: 0

udf单核计算可以,双核编译正确,计算不能进行,怎么回事啊

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

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

您需要 登录 才可以下载或查看,没有账号?注册

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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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