Home
last modified time | relevance | path

Searched refs:vec_type (Results 1 – 12 of 12) sorted by relevance

/libCEED/examples/fluids/include/ !
H A Dpetsc_ops.h26 …rCode DMGetGlobalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type);
27 …orCode DMGetLocalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type);
29 PetscErrorCode CeedOperatorCreateLocalVecs(CeedOperator op, VecType vec_type, MPI_Comm comm, Vec *i…
38 …orCode DMGetLocalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type);
39 …rCode DMGetGlobalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type);
/libCEED/examples/fluids/ !
H A Dnavierstokes.c142 VecType vec_type = NULL; in main() local
146 vec_type = VECSTANDARD; in main()
151 if (strstr(resolved, "/gpu/cuda")) vec_type = VECCUDA; in main()
152 else if (strstr(resolved, "/gpu/hip")) vec_type = VECKOKKOS; in main()
153 else if (strstr(resolved, "/gpu/sycl")) vec_type = VECKOKKOS; in main()
154 else vec_type = VECSTANDARD; in main()
157 if (strstr(vec_type, VECCUDA)) mat_type = MATAIJCUSPARSE; in main()
158 else if (strstr(vec_type, VECKOKKOS)) mat_type = MATAIJKOKKOS; in main()
160 PetscCall(CreateDM(comm, problem, mat_type, vec_type, &dm)); in main()
/libCEED/examples/petsc/ !
H A Darea.c74 VecType vec_type = VECSTANDARD; in main() local
124 vec_type = VECSTANDARD; in main()
130 if (strstr(resolved, "/gpu/cuda")) vec_type = VECCUDA; in main()
131 else if (strstr(resolved, "/gpu/hip")) vec_type = VECHIP; in main()
132 else vec_type = VECSTANDARD; in main()
135 PetscCall(DMSetVecType(dm, vec_type)); in main()
H A Dbps.c67 VecType vec_type = VECSTANDARD; in RunWithDM() local
79 vec_type = VECSTANDARD; in RunWithDM()
85 if (strstr(resolved, "/gpu/cuda")) vec_type = VECCUDA; in RunWithDM()
86 else if (strstr(resolved, "/gpu/hip")) vec_type = VECHIP; in RunWithDM()
87 else vec_type = VECSTANDARD; in RunWithDM()
90 PetscCall(DMSetVecType(dm, vec_type)); in RunWithDM()
107 PetscCall(MatShellSetVecType(mat_O, vec_type)); in RunWithDM()
125 VecType vec_type; in RunWithDM() local
126 PetscCall(VecGetType(X, &vec_type)); in RunWithDM()
155 …bp_name, rp->hostname, comm_size, rp->ranks_per_node, vec_type, used_resource, CeedMemTypes[mem_ty… in RunWithDM()
[all …]
H A Dbpsswarm.c68 VecType vec_type = VECSTANDARD; in main() local
157 vec_type = VECSTANDARD; in main()
163 if (strstr(resolved, "/gpu/cuda")) vec_type = VECCUDA; in main()
164 else if (strstr(resolved, "/gpu/hip")) vec_type = VECHIP; in main()
165 else vec_type = VECSTANDARD; in main()
185 PetscCall(DMSetVecType(dm_mesh, vec_type)); in main()
243 VecType vec_type; in main() local
244 PetscCall(VecGetType(X, &vec_type)); in main()
282 …bp_choice + 1, hostname, comm_size, ranks_per_node, vec_type, used_resource, CeedMemTypes[mem_type… in main()
H A Dmultigrid.c124 VecType vec_type = VECSTANDARD; in main() local
128 vec_type = VECSTANDARD; in main()
134 if (strstr(resolved, "/gpu/cuda")) vec_type = VECCUDA; in main()
135 else if (strstr(resolved, "/gpu/hip")) vec_type = VECHIP; in main()
136 else vec_type = VECSTANDARD; in main()
139 PetscCall(DMSetVecType(dm_orig, vec_type)); in main()
189 PetscCall(DMGetVecType(dm_orig, &vec_type)); in main()
190 PetscCall(DMSetVecType(dm[i], vec_type)); in main()
207 PetscCall(MatShellSetVecType(mat_O[i], vec_type)); in main()
216 PetscCall(MatShellSetVecType(mat_pr[i], vec_type)); in main()
[all …]
H A Dbpssphere.c67 VecType vec_type = VECSTANDARD; in main() local
103 vec_type = VECSTANDARD; in main()
109 if (strstr(resolved, "/gpu/cuda")) vec_type = VECCUDA; in main()
110 else if (strstr(resolved, "/gpu/hip")) vec_type = VECHIP; in main()
111 else vec_type = VECSTANDARD; in main()
127 PetscCall(DMSetVecType(dm, vec_type)); in main()
H A Dbpsraw.c399 VecType default_vec_type = NULL, vec_type; in main() local
449 PetscCall(VecGetType(X, &vec_type)); in main()
466 …bp_choice + 1, vec_type, used_resource, CeedMemTypes[mem_type_backend], P, Q, gsize / num_comp_u, … in main()
665 PetscCall(VecGetType(X, &vec_type)); in main()
666 PetscCall(MatShellSetVecType(mat, vec_type)); in main()
/libCEED/examples/fluids/src/ !
H A Dpetsc_ops.c16 …rCode DMGetLocalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type) { in DMGetLocalVectorInfo() argument
23 if (vec_type) PetscCall(VecGetType(V_loc, vec_type)); in DMGetLocalVectorInfo()
29 …Code DMGetGlobalVectorInfo(DM dm, PetscInt *local_size, PetscInt *global_size, VecType *vec_type) { in DMGetGlobalVectorInfo() argument
36 if (vec_type) PetscCall(VecGetType(V, vec_type)); in DMGetGlobalVectorInfo()
161 VecType vec_type; in DMReturnVecType() local
162 DMGetVecType(dm, &vec_type); in DMReturnVecType()
163 return vec_type; in DMReturnVecType()
180 PetscErrorCode CeedOperatorCreateLocalVecs(CeedOperator op, VecType vec_type, MPI_Comm comm, Vec *i… in CeedOperatorCreateLocalVecs() argument
192 PetscCall(VecSetType(*input, vec_type)); in CeedOperatorCreateLocalVecs()
197 PetscCall(VecSetType(*output, vec_type)); in CeedOperatorCreateLocalVecs()
H A Dsetupdm.c19 PetscErrorCode CreateDM(MPI_Comm comm, ProblemData problem, MatType mat_type, VecType vec_type, DM … in CreateDM() argument
30 PetscCall(DMSetVecType(*dm, vec_type)); in CreateDM()
113 VecType vec_type; in VizRefineDM() local
128 PetscCall(DMGetVecType(dm, &vec_type)); in VizRefineDM()
129 PetscCall(DMSetVecType(dm_hierarchy[i + 1], vec_type)); in VizRefineDM()
H A Dmat-ceed.c319 VecType vec_type; in MatCreateCeed() local
326 PetscCall(DMGetVecType(dm_x, &vec_type)); in MatCreateCeed()
459 VecType vec_type; in MatCreateCeed() local
462 PetscCall(VecGetType(ctx->X_loc, &vec_type)); in MatCreateCeed()
463 if (strstr(vec_type, VECCUDA)) coo_mat_type = MATAIJCUSPARSE; in MatCreateCeed()
464 else if (strstr(vec_type, VECKOKKOS)) coo_mat_type = MATAIJKOKKOS; in MatCreateCeed()
477 PetscCall(MatShellSetVecType(*mat, vec_type)); in MatCreateCeed()
528 VecType vec_type; in MatCeedCopy() local
556 PetscCall(DMGetVecType(ctx->dm_x, &vec_type)); in MatCeedCopy()
557 PetscCall(MatShellSetVecType(mat_other, vec_type)); in MatCeedCopy()
H A Dmisc.c404 VecType vec_type; in PrintRunInfo() local
408 PetscCall(DMGetVecType(user->dm, &vec_type)); in PrintRunInfo()
414 box_faces_str, vec_type, phys_ctx->implicit ? "implicit" : "explicit")); in PrintRunInfo()