Changeset 27179
- Timestamp:
- 2013-04-14T22:52:17+12:00 (11 years ago)
- Location:
- gs2-extensions/parallel-building/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/parallel-building/trunk/src/perllib/ParallelInexport.pm
r26985 r27179 83 83 84 84 # invoke the farmer to start processing the files 85 $site = "" if (!defined $site); 86 my $gsdlhome = $ENV{'GSDLHOME'}; 87 my $farmer_exe = $gsdlhome . '/ext/parallel-building/linux/bin/mpiimport'; 88 my $mpi_cmd = $gsdlhome . '/ext/parallel-building/linux/bin/mpirun ' . $mpi_flags . ' -n ' . $jobs . ' ' . $farmer_exe . ' ' . $tmp_filelist . ' ' . $epoch . ' ' . $gsdlhome . ' ' . $collection . ' ' . $site; 85 my $gsdlhome; 86 87 if (defined $site) { 88 $gsdlhome = $ENV{'GSDL3HOME'}; 89 } 90 else { 91 $site = ""; 92 $gsdlhome = $ENV{'GSDLHOME'}; 93 } 94 95 # my $farmer_exe = $gsdlhome . '/ext/parallel-building/linux/bin/mpiimport'; 96 my $farmer_exe = 'mpiimport'; 97 98 # my $mpi_cmd = $gsdlhome . '/ext/parallel-building/linux/bin/mpirun ' . $mpi_flags . ' -n ' . $jobs . ' ' . $farmer_exe . ' ' . $tmp_filelist . ' ' . $epoch . ' ' . $gsdlhome . ' ' . $collection . ' ' . $site; 99 my $mpi_cmd = 'mpirun ' . $mpi_flags . ' -n ' . $jobs . ' ' . $farmer_exe . ' ' . $tmp_filelist . ' ' . $epoch . ' ' . $gsdlhome . ' ' . $collection . ' ' . $site; 89 100 print STDERR "MPI Command: \"" . $mpi_cmd . "\"\n"; 90 101 # system ($mpi_cmd); -
gs2-extensions/parallel-building/trunk/src/perllib/dbutil/gdbmserver.pm
r27177 r27179 60 60 &util::mk_dir($tmp_dir,1); 61 61 } 62 63 62 64 63 # 1. Check whether the server is already running by trying to locate the … … 206 205 if (defined $create_server && $create_server == 1) 207 206 { 207 my $tmp_collect_dir = &util::filename_cat($ENV{'GSDLCOLLECTDIR'},'tmp'); 208 if (! &util::dir_exists($tmp_collect_dir)) { 209 &util::mk_dir($tmp_collect_dir,1); 210 } 211 208 212 my $gdbm_client_handle = &_spawnClient($infodb_file_path); 209 213 # Register this client on the server if necessary -
gs2-extensions/parallel-building/trunk/src/src/mpiimport-src/mpiimport.cpp
r26922 r27179 141 141 fprintf(stderr, "[M] Creating manifest file: %d\n", manifest_file_count); 142 142 stringstream manifestfilename_strstr; 143 manifestfilename_strstr << gsdlhomedir << "/collect/" << collection << "/tmp/manifest." << manifest_file_count << ".xml"; 143 if (site == NULL) { 144 manifestfilename_strstr << gsdlhomedir << "/collect/" << collection << "/tmp/manifest." << manifest_file_count << ".xml"; 145 } 146 else { 147 manifestfilename_strstr << gsdlhomedir << "/sites/" << site << "/collect/" << collection << "/tmp/manifest." << manifest_file_count << ".xml"; 148 } 149 144 150 string manifestfilename_str = manifestfilename_strstr.str(); 145 151 char *manifestfilename = new char [manifestfilename_str.size() + 1];
Note:
See TracChangeset
for help on using the changeset viewer.