Lines Matching refs:repetitions
76 …PetscReal starting_spmv_time, const char *const matformat, PetscBool use_gpu, PetscInt repetitions) in UpdateJSON() argument
94 …mat, "time"), (spmv_times[i] - ((i == 0) ? starting_spmv_time : spmv_times[i - 1])) / repetitions); in UpdateJSON()
95 cJSON_SetIntValue(cJSON_GetObjectItem(format, "repetitions"), repetitions); in UpdateJSON()
99 …rmat, "time", (spmv_times[i] - ((i == 0) ? starting_spmv_time : spmv_times[i - 1])) / repetitions); in UpdateJSON()
100 cJSON_AddNumberToObject(format, "repetitions", repetitions); in UpdateJSON()
107 …rmat, "time", (spmv_times[i] - ((i == 0) ? starting_spmv_time : spmv_times[i - 1])) / repetitions); in UpdateJSON()
108 cJSON_AddNumberToObject(format, "repetitions", repetitions); in UpdateJSON()
126 …Mat A, Vec b, PetscReal *time, const char *petscmatformat, PetscBool use_gpu, PetscInt repetitions) in TimedSpMV() argument
145 for (i = 0; i < repetitions; i++) { in TimedSpMV()
163 if (repetitions > 0 && use_gpu) PetscCall(MatDestroy(&A2)); in TimedSpMV()
259 PetscInt nmat = 1, nformats = 5, i, j, repetitions = 1; in main() local
282 PetscCall(PetscOptionsGetInt(NULL, NULL, "-repetitions", &repetitions, NULL)); in main()
339 PetscCall(TimedSpMV(A, b, NULL, petscmatformat, use_gpu, repetitions)); in main()
345 UpdateJSON(jfilename, spmv_times, starting_spmv_time, matformats[j], use_gpu, repetitions); in main()
354 PetscCall(TimedSpMV(A, b, &spmv_time, petscmatformat, use_gpu, repetitions)); in main()