Lines Matching refs:use_gpu
76 …es, PetscReal starting_spmv_time, const char *const matformat, PetscBool use_gpu, PetscInt repetit… in UpdateJSON() argument
126 …pMV(Mat A, Vec b, PetscReal *time, const char *petscmatformat, PetscBool use_gpu, PetscInt repetit… in TimedSpMV() argument
146 if (use_gpu) { in TimedSpMV()
163 if (repetitions > 0 && use_gpu) PetscCall(MatDestroy(&A2)); in TimedSpMV()
223 PetscErrorCode MapToPetscMatType(const char *matformat, PetscBool use_gpu, char **petscmatformat) in MapToPetscMatType() argument
230 if (use_gpu) { in MapToPetscMatType()
241 if (use_gpu) { in MapToPetscMatType()
268 PetscBool bflg, flg1, flg2, flg3, use_gpu = PETSC_FALSE, permute = PETSC_FALSE; in main() local
281 PetscCall(PetscOptionsGetBool(NULL, NULL, "-use_gpu", &use_gpu, NULL)); in main()
293 …PetscCheck(!use_gpu, PETSC_COMM_WORLD, PETSC_ERR_USER_INPUT, "To use the option -use_gpu 1, PETSc … in main()
329 PetscCall(MapToPetscMatType(matformats[j], use_gpu, &petscmatformat)); in main()
338 if (use_gpu) PetscCall(WarmUpDevice(A, b, petscmatformat)); in main()
339 PetscCall(TimedSpMV(A, b, NULL, petscmatformat, use_gpu, repetitions)); in main()
340 if (use_gpu) PetscCall(PetscLogSpMVTime(&spmv_times[i], NULL, NULL, petscmatformat)); in main()
345 UpdateJSON(jfilename, spmv_times, starting_spmv_time, matformats[j], use_gpu, repetitions); in main()
353 if (use_gpu) PetscCall(WarmUpDevice(A, b, petscmatformat)); in main()
354 PetscCall(TimedSpMV(A, b, &spmv_time, petscmatformat, use_gpu, repetitions)); in main()