MPI 프로그램 디버깅하기.

portgas.d.ace의 이미지

현재 슈퍼컴퓨터 위에 돌릴 MPI 프로그램을 작성 중에 있습니다.
병렬 프로그래밍을 할 때 디버깅하는 게 힘들다는 말은 들었었지만, 이 정도일 줄은 몰랐네요.
printf 질을 하면서 에러의 위치를 발견하고는 있지만 이거는 임시방편일 뿐 완전하지 못하고요.
프로세스에 gdb를 붙일 수 있다 하여 붙여보려고 시도했지만 ps -ux를 쳐보면

kgfa0007 32715  0.0  0.1  10212  3180 ?        S    15:52   0:00 sshd: kgfa0007@pts/1                            
kgfa0007 32716  0.0  0.1   4528  2036 pts/1    Ss+  15:52   0:00 -bash
kgfa0007 32742  0.0  0.1  10576  3376 ?        S    15:52   0:00 sshd: kgfa0007@notty                            
kgfa0007 32743  0.0  0.0   5652  1480 ?        Ss   15:52   0:00 /usr/lib/ssh/sftp-server
kgfa0007 32752  0.0  0.0   5648  1320 ?        Ss   15:56   0:00 /usr/lib/ssh/sftp-server
kgfa0007   730  0.3  0.1  10212  3192 ?        S    16:13   0:00 sshd: kgfa0007@pts/2                            
kgfa0007   731  0.1  0.1   4528  2036 pts/2    Ss   16:13   0:00 -bash
kgfa0007   895  0.0  0.1  10212  3080 ?        S    16:13   0:00 sshd: kgfa0007@pts/3                            
kgfa0007   896  0.0  0.1   4528  1984 pts/3    Ss   16:13   0:00 -bash
kgfa0007   977  0.0  0.0   4260  1368 pts/2    S+   16:15   0:00 /bin/sh /home/kgfa0007/simulator/hsim/src/mpihsim 4
kgfa0007   978  1.1  0.1   7276  3472 pts/2    S+   16:15   0:00 perl -S -w /usr/local/mpich/mpichgm-1.2.6..14a/gm/ppc64/smp/ibmcmp32/ssh/bin/mpirun.ch_gm.pl -np 4 /home/kgfa0007/
kgfa0007  1007  0.0  0.1   7276  3456 pts/2    S+   16:15   0:00 perl -S -w /usr/local/mpich/mpichgm-1.2.6..14a/gm/ppc64/smp/ibmcmp32/ssh/bin/mpirun.ch_gm.pl -np 4 /home/kgfa0007/
kgfa0007  1008  1.0  0.1   5916  2176 pts/2    S+   16:15   0:00 ssh node001 cd /home/kgfa0007/simulator/hsim_samples/pass/test_prop && exec env  GMPI_MASTER=node480 GMPI_PORT=518
kgfa0007  1009  0.4  0.1   5920  2180 pts/2    S+   16:15   0:00 ssh node001 -n cd /home/kgfa0007/simulator/hsim_samples/pass/test_prop && exec env  GMPI_MASTER=node480 GMPI_PORT=
kgfa0007  1010  1.7  0.1   6052  2212 pts/2    S+   16:15   0:00 ssh node002 -n cd /home/kgfa0007/simulator/hsim_samples/pass/test_prop && exec env  GMPI_MASTER=node480 GMPI_PORT=
kgfa0007  1011  4.4  0.1   6052  2248 pts/2    S+   16:15   0:00 ssh node002 -n cd /home/kgfa0007/simulator/hsim_samples/pass/test_prop && exec env  GMPI_MASTER=node480 GMPI_PORT=
kgfa0007  1024  0.0  0.0   2844  1184 pts/3    R+   16:15   0:00 ps -ux

모 대략 이런 식으로 나오니 어디에다가 붙여야 할지도 모르겠고 다 붙여보았지만 쓸만한 결과를 받지도 못하고요.

MPI 프로그래밍 해 보신 분들의 조언을 구합니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.