将 strace 与 mpiexec 结合使用

发布于 2024-09-03 17:52:14 字数 249 浏览 2 评论 0原文

如何跟踪以 mpiexec(MPICH2、linux)启动的 MPI 并行作业的所有进程?

-o 会弄乱不同进程的输出

PS 致某些编辑者:他们可能会认为 MPICH 是库的名称。 MPICH2 是一个特定版本。。 MPICH2 实际上是MPICH2 是 MPI 的全新实现,我有时不得不同时使用 mpich 和 mpich2。所以,我们不能用mpich替换mpich2。

How do I strace all processes of MPI parallel job, started with mpiexec (MPICH2, linux)?

-o will mess outputs from different processes

PS To some editors: who may think that MPICH is the name of the library. MPICH2 is a particular version.. MPICH2 is actually MPICH2 is an all-new implementation of MPI and I sometimes had to used both mpich and mpich2. So, we can't replace mpich2 with mpich.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

千と千尋 2024-09-10 17:52:14

围绕您的程序创建一个包装器,该包装器将由 mpiexec 启动。像这样的东西:

#!/bin/sh
LOGFILE="strace-$(hostname).$"
exec strace -o"$LOGFILE" my_mpi_program

Create a wrapper around your program, which will be launched by mpiexec. Something like:

#!/bin/sh
LOGFILE="strace-$(hostname).$"
exec strace -o"$LOGFILE" my_mpi_program
怎樣才叫好 2024-09-10 17:52:14

您可能想尝试 STAT(堆栈跟踪分析工具)。
请查看 STAT 主页
它将为您提供流程行为和工作的高级概述
特别是在进程挂起的情况下。

You may want to try STAT (Stack Trace Analysis Tool).
Check out the STAT Homepage.
It will give you a high level overview of your process behavior, and works
especially well in the case of a hung process.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文