|
@@ -30,7 +30,7 @@ int main(int argc, char* argv[]) {
|
|
|
gsat->setParameters(argc,argv);
|
|
|
gsat->initialize();
|
|
|
if(world_rank == 0) {
|
|
|
- printf("c nbProcessors: %d\n", world_size);
|
|
|
+ printf("c nbProcess: %d\n", world_size);
|
|
|
printf("c nbVariables: %d\n",gsat->getNbVariables());
|
|
|
printf("c nbClauses: %d\n",gsat->getNbClauses());
|
|
|
}
|
|
@@ -54,7 +54,8 @@ int main(int argc, char* argv[]) {
|
|
|
if(end) {
|
|
|
printf(CYAN);
|
|
|
}
|
|
|
- printf("c [processor:%d][iteration:%5d][fill:%d][heuristic:%d]Satisfied clauses (begin: %d)(end:%d)\n",
|
|
|
+ printf("c [pid:%6d][process:%2d][iteration:%4d][fill:%d][heuristic:%d]Satisfied clauses (begin: %d)(end:%d)\n",
|
|
|
+ getpid(),
|
|
|
world_rank,
|
|
|
gsat->getNbIterations(),
|
|
|
gsat->getHeuristicFill(),
|
|
@@ -86,12 +87,13 @@ int main(int argc, char* argv[]) {
|
|
|
}
|
|
|
}
|
|
|
//Affiche le resultat
|
|
|
- printf("--------------------------------------------------------------------------------------------\n");
|
|
|
+ printf("------------------------------------------------------------------------------------------------------\n");
|
|
|
printf(GREEN);
|
|
|
printf("s %s\n",end?"SATISFIABLE":"NOT FOUND");
|
|
|
printf(YELLOW);
|
|
|
printf("c real time : %.4f seconds\n", gsat->realTime() - startTime);
|
|
|
- printf("c [processor:%d][iteration:%5d][fill:%d][heuristic:%d]Satisfied clauses (begin: %d)(end:%d)\n",
|
|
|
+ printf("c [pid:%6d][process:%2d][iteration:%4d][fill:%d][heuristic:%d]Satisfied clauses (begin: %d)(end:%d)\n",
|
|
|
+ getpid(),
|
|
|
world_rank,
|
|
|
gsat->getNbIterations(),
|
|
|
gsat->getHeuristicFill(),
|