| /honee/examples/ |
| H A D | navierstokes.c | 64 VecType vec_type = NULL; in main() local 71 vec_type = VECSTANDARD; in main() 76 if (strstr(resource, "/gpu/cuda")) vec_type = VECCUDA; in main() 77 else if (strstr(resource, "/gpu/hip")) vec_type = VECKOKKOS; in main() 78 else if (strstr(resource, "/gpu/sycl")) vec_type = VECKOKKOS; in main() 79 else vec_type = VECSTANDARD; in main() 82 if (strstr(vec_type, VECCUDA)) mat_type = MATAIJCUSPARSE; in main() 83 else if (strstr(vec_type, VECKOKKOS)) mat_type = MATAIJKOKKOS; in main() 86 PetscCall(CreateDM(honee, problem, mat_type, vec_type, &dm)); in main()
|
| /honee/include/ |
| H A D | petsc-ceed-utils.h | 276 static inline PetscErrorCode DefaultMatTypeFromVecType(VecType vec_type, MatType *mat_type) { in DefaultMatTypeFromVecType() argument 278 if (strstr(vec_type, VECCUDA)) *mat_type = MATAIJCUSPARSE; in DefaultMatTypeFromVecType() 279 else if (strstr(vec_type, VECHIP)) *mat_type = MATAIJHIPSPARSE; in DefaultMatTypeFromVecType() 280 else if (strstr(vec_type, VECKOKKOS)) *mat_type = MATAIJKOKKOS; in DefaultMatTypeFromVecType() 302 VecType vec_type; in MatGetMemTypeFromVecType() local 304 PetscCall(MatGetVecType(mat, &vec_type)); in MatGetMemTypeFromVecType() 305 if (strstr(vec_type, VECCUDA)) *mem_type = PETSC_MEMTYPE_CUDA; in MatGetMemTypeFromVecType() 306 else if (strstr(vec_type, VECHIP)) *mem_type = PETSC_MEMTYPE_HIP; in MatGetMemTypeFromVecType() 307 else if (strstr(vec_type, VECKOKKOS)) *mem_type = PETSC_MEMTYPE_KOKKOS; in MatGetMemTypeFromVecType()
|
| H A D | petsc_ops.h | 22 …rCode DMGetGlobalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type); 23 …orCode DMGetLocalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type); 25 PetscErrorCode CeedOperatorCreateLocalVecs(CeedOperator op, VecType vec_type, MPI_Comm comm, Vec *i… 34 …orCode DMGetLocalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type); 35 …rCode DMGetGlobalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type);
|
| /honee/src/ |
| H A D | petsc_ops.c | 12 …rCode DMGetLocalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type) { in DMGetLocalVectorInfo() argument 19 if (vec_type) PetscCall(VecGetType(V_loc, vec_type)); in DMGetLocalVectorInfo() 25 …Code DMGetGlobalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type) { in DMGetGlobalVectorInfo() argument 32 if (vec_type) PetscCall(VecGetType(V, vec_type)); in DMGetGlobalVectorInfo() 153 VecType vec_type; in DMReturnVecType() local 154 PetscInt ierr = DMGetVecType(dm, &vec_type); in DMReturnVecType() 155 return ierr ? NULL : vec_type; in DMReturnVecType() 172 PetscErrorCode CeedOperatorCreateLocalVecs(CeedOperator op, VecType vec_type, MPI_Comm comm, Vec *i… in CeedOperatorCreateLocalVecs() argument 184 PetscCall(VecSetType(*input, vec_type)); in CeedOperatorCreateLocalVecs() 189 PetscCall(VecSetType(*output, vec_type)); in CeedOperatorCreateLocalVecs()
|
| H A D | setupdm.c | 15 PetscErrorCode CreateDM(Honee honee, ProblemData problem, MatType mat_type, VecType vec_type, DM *d… in CreateDM() argument 39 PetscCall(DMSetVecType(*dm, vec_type)); in CreateDM() 125 VecType vec_type; in VizRefineDM() local 140 PetscCall(DMGetVecType(dm, &vec_type)); in VizRefineDM() 141 PetscCall(DMSetVecType(dm_hierarchy[i + 1], vec_type)); in VizRefineDM()
|
| H A D | mat-ceed.c | 371 VecType vec_type; in MatCreateCeed() local 378 PetscCall(DMGetVecType(dm_x, &vec_type)); in MatCreateCeed() 511 VecType vec_type; in MatCreateCeed() local 514 PetscCall(VecGetType(ctx->X_loc, &vec_type)); in MatCreateCeed() 515 PetscCall(DefaultMatTypeFromVecType(vec_type, &coo_mat_type)); in MatCreateCeed() 528 PetscCall(MatShellSetVecType(*mat, vec_type)); in MatCreateCeed() 579 VecType vec_type; in MatCeedCopy() local 607 PetscCall(DMGetVecType(ctx->dm_x, &vec_type)); in MatCeedCopy() 608 PetscCall(MatShellSetVecType(mat_other, vec_type)); in MatCeedCopy()
|
| H A D | misc.c | 297 VecType vec_type; in PrintRunInfo() local 304 PetscCall(DMGetVecType(honee->dm, &vec_type)); in PrintRunInfo() 310 box_faces_str, vec_type, phys_ctx->implicit ? "implicit" : "explicit")); in PrintRunInfo()
|