diff options
| author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-02 22:40:18 -0700 | 
|---|---|---|
| committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-02 22:40:18 -0700 | 
| commit | d1ffd8d703b04fb4753874f365fbe17074fe47c1 (patch) | |
| tree | 152d2ff2bb078c6fd622b0c72b0437e1a7114044 | |
| parent | e6196fb4625d6c704ac5ab3bd13dabace587f790 (diff) | |
| download | abc-d1ffd8d703b04fb4753874f365fbe17074fe47c1.tar.gz abc-d1ffd8d703b04fb4753874f365fbe17074fe47c1.tar.bz2 abc-d1ffd8d703b04fb4753874f365fbe17074fe47c1.zip | |
Added command 'starter' to call ABC concurrently.
| -rw-r--r-- | src/base/cmd/cmd.c | 4 | ||||
| -rw-r--r-- | src/base/cmd/cmdStarter.c | 4 | 
2 files changed, 4 insertions, 4 deletions
| diff --git a/src/base/cmd/cmd.c b/src/base/cmd/cmd.c index 3fb26531..b2d81f7d 100644 --- a/src/base/cmd/cmd.c +++ b/src/base/cmd/cmd.c @@ -2089,8 +2089,8 @@ int CmdCommandStarter( Abc_Frame_t * pAbc, int argc, char ** argv )  usage:      Abc_Print( -2, "usage: starter [-N num] [-C cmd] [-vh] <file>\n" ); -    Abc_Print( -2, "\t         executes command lines in <file> concurrently on <num> CPUs\n" ); -    Abc_Print( -2, "\t-N num : the number of concurrent jobs counting the controler [default = %d]\n", nCores ); +    Abc_Print( -2, "\t         runs command lines listed in <file> concurrently on <num> CPUs\n" ); +    Abc_Print( -2, "\t-N num : the number of concurrent jobs including the controler [default = %d]\n", nCores );      Abc_Print( -2, "\t-C cmd : (optional) ABC command line to execute on benchmarks in <file>\n" );      Abc_Print( -2, "\t-v     : toggle printing verbose information [default = %s]\n", fVerbose? "yes": "no" );      Abc_Print( -2, "\t-h     : print the command usage\n"); diff --git a/src/base/cmd/cmdStarter.c b/src/base/cmd/cmdStarter.c index e8149f28..21384930 100644 --- a/src/base/cmd/cmdStarter.c +++ b/src/base/cmd/cmdStarter.c @@ -244,8 +244,8 @@ void Cmd_RunStarter( char * pFileName, char * pBinary, char * pCommand, int nCor      }      // cleanup -    status = pthread_mutex_destroy(&mutex);   assert(status == 0); -    mutex = PTHREAD_MUTEX_INITIALIZER; +//    status = pthread_mutex_destroy(&mutex);   assert(status == 0); +//    mutex = PTHREAD_MUTEX_INITIALIZER;      fprintf( stdout, "Finished processing commands in file \"%s\".  ", pFileName );      Abc_PrintTime( 1, "Total wall time", clock() - clk );      fflush( stdout ); | 
