Home | History | Annotate | Download | only in ltp-aiodio

Lines Matching refs:num_threads

101 int num_threads = 1;
1011 int setup_shared_mem(int num_threads, int num_files, int depth,
1019 total_ram = num_files * depth * padded_reclen + num_threads;
1090 for (i = 0; i < num_threads; i++) {
1126 if (num_threads > 1) {
1129 if (threads_starting == num_threads) {
1134 while (threads_starting != num_threads)
1201 if (num_threads > 1) {
1204 if (threads_ending == num_threads) {
1209 while (threads_ending != num_threads)
1237 int run_workers(struct thread_info *t, int num_threads)
1242 for (i = 0; i < num_threads; i++) {
1251 for (i = 0; i < num_threads; i++) {
1414 num_threads = atoi(optarg);
1448 if (num_threads > (num_files * num_contexts)) {
1449 num_threads = num_files * num_contexts;
1452 num_threads);
1455 t = malloc(num_threads * sizeof(*t));
1460 memset(t, 0, num_threads * sizeof(*t));
1504 "verification %s\n", num_threads, num_files, num_contexts,
1510 thread_index = open_fds % num_threads;
1535 if (setup_shared_mem(num_threads, num_files * num_contexts,
1539 for (i = 0; i < num_threads; i++) {
1544 if (num_threads > 1) {
1545 printf("Running multi thread version num_threads:%d\n",
1546 num_threads);
1547 run_workers(t, num_threads);