udf单核可以计算,单机双核可以compile成功,但是计算出现错误
前面定义这个宏,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;
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
{:{13}:}一点也看不懂 本帖最后由 潇叶飞扬 于 2012-4-17 19:53 编辑
回复 2 # dongyuanzhixing 的帖子
,compileload均正确,就是链接到case上显示上面的错误,不知道怎么回事? 定义物性的UDF一般不需要loop吧
程序没给写全,无法判断问题所在
把变量定义的部分也给出来看看
页:
[1]