~nchohan/appscale/GAE1.4.0-namespaces

« back to all changes in this revision

Viewing changes to Neptune/mpi_helper.rb

  • Committer: Chris Bunch
  • Date: 2010-10-19 14:58:29 UTC
  • Revision ID: cgb@cs.ucsb.edu-20101019145829-3e19bgd5v1c9zy33
added first run on profiling info for neptune as well as ability to view this data from load balancer

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
    start_nfs(nodes)
23
23
 
 
24
    sleep(5) # CGB
 
25
 
24
26
    shadow = get_shadow
25
27
    shadow_ip = shadow.private_ip
26
28
    shadow_key = shadow.ssh_key
27
29
 
28
 
    # copy code from shadow to my node, then to nfs
29
 
    copyFromShadow("/tmp/thempicode")
30
 
    sleep(1)
 
30
    Djinn.log_run("rm -fv /mirrornfs/thempicode #{MPI_OUTPUT}")
 
31
 
 
32
    unless my_node.is_shadow?
 
33
      Djinn.log_run("rm -fv /tmp/thempicode")
 
34
      copyFromShadow("/tmp/thempicode")
 
35
    end
 
36
 
 
37
    sleep(5)
31
38
    Djinn.log_run("cp /tmp/thempicode /mirrornfs/")
 
39
    sleep(5) # CGB
32
40
 
33
41
    start_mpd(nodes)
 
42
    sleep(5) # CGB
34
43
 
35
44
    start_time = Time.now
36
45
    Djinn.log_run("mpiexec -n #{nodes.length} /mirrornfs/thempicode > #{MPI_OUTPUT}")
116
125
    mpd_hosts_contents << "#{node.private_ip}\n"
117
126
  }
118
127
  mpd_hosts_contents.chomp!
 
128
  Djinn.log_debug("MPD Hosts are: #{mpd_hosts_contents}")
119
129
  HelperFunctions.write_file(mpd_hosts_loc, mpd_hosts_contents) 
120
130
 
121
 
  mpi_output = "/root/mpi-output-#{HelperFunctions.get_random_alphanumeric}"
122
131
  # copy anything over to disabled host checking, which can otherwise cause
123
132
  # mpdboot to fail
124
133
  HelperFunctions.write_file("/tmp/garbage", "1902310201")