[Swift-commit] r8379 - SwiftApps/subjobs

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Fri Feb 27 11:02:34 CST 2015


Author: ketan
Date: 2015-02-27 11:02:34 -0600 (Fri, 27 Feb 2015)
New Revision: 8379

Removed:
   SwiftApps/subjobs/catsnsleepmpi.swift
   SwiftApps/subjobs/mpicatnap.c
Modified:
   SwiftApps/subjobs/bg.sh
Log:
mpi

Modified: SwiftApps/subjobs/bg.sh
===================================================================
--- SwiftApps/subjobs/bg.sh	2015-02-25 16:20:58 UTC (rev 8378)
+++ SwiftApps/subjobs/bg.sh	2015-02-27 17:02:34 UTC (rev 8379)
@@ -56,7 +56,6 @@
     echo "$0": running runjob --strace none --block "$COBALT_PARTNAME" --corner "$CORNER" --shape "$SHAPE" -p 16 --np "$((16*$SUBBLOCK_SIZE))" : "$@"
     
     #without timeout
-    #strace -o "$HOME/strace.runjob.out" runjob --strace none --block "$COBALT_PARTNAME" --corner "$CORNER" --shape "$SHAPE" -p 16 --np "$((16*$SUBBLOCK_SIZE))" : "$@"
     #runjob --strace none --block "$COBALT_PARTNAME" --corner "$CORNER" --shape "$SHAPE" -p 16 --np "$((16*$SUBBLOCK_SIZE))" : "$@"
     runjob --block "$COBALT_PARTNAME" --corner "$CORNER" --shape "$SHAPE" -p 16 --np 2 : "$@"
     

Deleted: SwiftApps/subjobs/catsnsleepmpi.swift
===================================================================
--- SwiftApps/subjobs/catsnsleepmpi.swift	2015-02-25 16:20:58 UTC (rev 8378)
+++ SwiftApps/subjobs/catsnsleepmpi.swift	2015-02-27 17:02:34 UTC (rev 8379)
@@ -1,15 +0,0 @@
-type file;
-
-app (file o, file sout, file serr) cat (file i)
-{
-  bgsh "/home/ketan/SwiftApps/subjobs/mpicatnap" @i @o arg("s","1") stdout=@sout stderr=@serr;
-}
-
-file out[]<simple_mapper; location="outdir", prefix="f.",suffix=".out">;
-
-foreach j in [1:toInt(arg("n","1"))] {
-  file data<"data.txt">;
-  file sout<single_file_mapper; file=strcat("outdir/f.",j,".stdout")>;
-  file serr<single_file_mapper; file=strcat("outdir/f.",j,".stderr")>;
-  (out[j],sout,serr) = cat(data);
-}

Deleted: SwiftApps/subjobs/mpicatnap.c
===================================================================
--- SwiftApps/subjobs/mpicatnap.c	2015-02-25 16:20:58 UTC (rev 8378)
+++ SwiftApps/subjobs/mpicatnap.c	2015-02-27 17:02:34 UTC (rev 8379)
@@ -1,45 +0,0 @@
-#include <stdio.h>
-#include <mpi.h>
-#include <unistd.h>
-#include <fcntl.h>
-
-int main (argc, argv)
-int argc;
-char *argv[];
-{
-  int rank, size;
-
-  MPI_Init (&argc, &argv);  /* starts MPI */
-
-  char *ifile = argv[1];
-  char *ofile = argv[2];
-  int sleeptime = atoi(argv[3]);
-
-  MPI_Comm_rank (MPI_COMM_WORLD, &rank); /* get current MPI process id (rank) */
-  MPI_Comm_size (MPI_COMM_WORLD, &size); /* get number of MPI processes */
-
-  if (rank==0) {
-    printf("ifile=%s ofile=%s sleeptime=%d\n", ifile, ofile, sleeptime);
-
-    int ifd = open(ifile,O_RDONLY);
-    int ofd = open(ofile,O_WRONLY|O_CREAT,0664);
-    char buf[1024*1024];
-    for(;;) {
-      int rc = read(ifd, buf, sizeof(buf));
-      if (rc <= 0) {
-        close(ifd);
-        close(ofd);
-        break;
-      }
-      write(ofd, buf, rc);
-    }
-  }
-
-  sleep(sleeptime);
-
-  char host[512];
-  gethostname(host, 512);
-  printf( "Hello from process %d of %d on %s\n", rank, size, host);
-  MPI_Finalize();
-  return 0;
-}




More information about the Swift-commit mailing list