在open-mpi/mpi-run中加载共享库 [英] Loading shared library in open-mpi/ mpi-run

查看:169
本文介绍了在open-mpi/mpi-run中加载共享库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过使用mpi run的扭矩计划程序来运行我的程序.虽然在我的pbs文件中,我通过

I'm trying to run my program using torque scheduler using mpi run. Though in my pbs file I load all the library by

export LD_LIBRARY_PATH=/path/to/library

但是它给出了错误

error while loading shared libraries: libarmadillo.so.3: 
cannot open shared object file: No such file or directory. 

我猜错误在于未在所有节点中设置的变量LD_LIBRARY_PATH.我将如何运作?

I guess error lies in variable LD_LIBRARY_PATH not set in all the nodes. How would I make it work?

推荐答案

LD_LIBRARY_PATH不会自动导出到由mpirun生成的MPI进程.您应该使用

LD_LIBRARY_PATH is not exported automatically to MPI processes, spawned by mpirun. You should use

mpirun -x LD_LIBRARY_PATH ...

推送LD_LIBRARY_PATH的值.另外,请确保指定的路径存在于群集中的所有节点上,并且libarmadillo.so.3随处可见.

to push the value of LD_LIBRARY_PATH. Also make sure that the specified path exists on all nodes in the cluster and that libarmadillo.so.3 is available everywhere.

这篇关于在open-mpi/mpi-run中加载共享库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆