allshare模式下开pthread调用xMath运行时报错?



  • 在allshare模式下仅仅开1个pthread,在pthread中调用xMath
    链接命令是:mpif90 -hybrid xxxxxxx -lstdc++ -lm -lm_slave -lxMath -allshare -lpthread
    bsub命令是:bsub -b -I -m 1 -p -q q_sw_share -host_stack 1024 -sw3run ./sw3run-all -sw3runarg "-a 1" -cross_size 28000 -n 1 -cgsp 64 ./app
    报错信息为:
    AHTREAD-LIB:Assertion Failed at file:athread_num_threads.c line:66
    ::the new thread number 64 is more than the max thread number 0 can be started!

    如果使用相同的代码,链接纯主核的blas、lapack则没有问题。是不是对pthread + athread的支持不够完善呢,这样的问题该怎样解决?感谢指点。



  • 其实是xmath调用了athread_spwn...
    是不是应该想办法设置线程亲核性?


Log in to reply