@嘴神爱6 是的,看来是我之前打错了
虚渺 发布的帖子
-
RE: 初赛结束,有没有大佬愿意开源一波,让小弟学习一下怎么优化啊?
https://github.com/haswelliris/CPC2018-SWLBM
https://github.com/Entityless/CPC18_SWLBM
https://github.com/Entityless/Weno7
https://github.com/Entityless/DarkIntegerMultiply_SunwayTaihulight
https://github.com/Entityless/SWDDT_CPC17
https://github.com/Entityless/MASNUM-WAM_Sunway_Taihulight -
RE: 运行过程中出错,从核报错,产生SDLB异常
看看get的两个指针的位置是不是写反了?athread_get第一个指针是主核数据指针,第二个指针是从核数据指针。athread_put相反。
-
RE: 公告:非计时区代码不允许增,删,改
//common_def.h struct athread_spawn_param { int iter; //ptr on mpe double* ptr0, *ptr1, ......; }; //master.c #include "common_def.h" ...... int mian() { ......//定义了各种ptr struct athread_spawn_param init_param; init_param.my_rank = iter; init_param.ptr0 = ptr0; init_param.ptr1 = ptr1; ...... athread_spawn(func, (void*)¶m); ...... } //slave.c #include "common_def.h" __thread_local struct athread_spawn_param param; ...... void func(void *_param) { param = *((struct athread_spawn_param *) _param); //然后就可以愉快地使用param.ptr*了 }