Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
d1ffd8d7
Commit
d1ffd8d7
authored
Oct 02, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added command 'starter' to call ABC concurrently.
parent
e6196fb4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/base/cmd/cmd.c
+2
-2
src/base/cmd/cmdStarter.c
+2
-2
No files found.
src/base/cmd/cmd.c
View file @
d1ffd8d7
...
...
@@ -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
count
ing 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
includ
ing 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
"
);
...
...
src/base/cmd/cmdStarter.c
View file @
d1ffd8d7
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment