mirror of
https://github.com/cathugger/mkp224o.git
synced 2025-12-05 21:27:13 -06:00
disable setting stack size, port batch pack to amd64-51-30k, set default batch num 2048
This commit is contained in:
8
main.c
8
main.c
@@ -520,7 +520,7 @@ end:
|
||||
#ifdef BATCHKEYGEN
|
||||
|
||||
#ifndef BATCHNUM
|
||||
#define BATCHNUM 256
|
||||
#define BATCHNUM 2048
|
||||
#endif
|
||||
|
||||
static void *dobatchwork(void *task)
|
||||
@@ -1045,6 +1045,7 @@ int main(int argc,char **argv)
|
||||
VEC_ZERO(tstats);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
pthread_attr_t tattr,*tattrp = &tattr;
|
||||
tret = pthread_attr_init(tattrp);
|
||||
if (tret) {
|
||||
@@ -1056,13 +1057,14 @@ int main(int argc,char **argv)
|
||||
if (tret)
|
||||
perror("pthread_attr_setstacksize");
|
||||
}
|
||||
#endif
|
||||
|
||||
for (size_t i = 0;i < VEC_LENGTH(threads);++i) {
|
||||
void *tp = 0;
|
||||
#ifdef STATISTICS
|
||||
tp = &VEC_BUF(stats,i);
|
||||
#endif
|
||||
tret = pthread_create(&VEC_BUF(threads,i),tattrp,
|
||||
tret = pthread_create(&VEC_BUF(threads,i),0,
|
||||
#ifdef PASSPHRASE
|
||||
deterministic ? dofastworkdeterministic :
|
||||
#endif
|
||||
@@ -1076,11 +1078,13 @@ int main(int argc,char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
if (tattrp) {
|
||||
tret = pthread_attr_destroy(tattrp);
|
||||
if (tret)
|
||||
perror("pthread_attr_destroy");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef STATISTICS
|
||||
struct timespec nowtime;
|
||||
|
||||
Reference in New Issue
Block a user