Home
last modified time | relevance | path

Searched refs:indices (Results 1 – 25 of 34) sorted by relevance

12

/libCEED/include/ceed/jit-source/hip/
H A Dhip-ref-restriction-curl-oriented.h15 extern "C" __global__ void CurlOrientedNoTranspose(const CeedInt *__restrict__ indices, const CeedI… in CurlOrientedNoTranspose() argument
20 const CeedInt ind_dl = loc_node > 0 ? indices[node - 1] : 0; in CurlOrientedNoTranspose()
21 const CeedInt ind_d = indices[node]; in CurlOrientedNoTranspose()
22 const CeedInt ind_du = loc_node < (RSTR_ELEM_SIZE - 1) ? indices[node + 1] : 0; in CurlOrientedNoTranspose()
40 extern "C" __global__ void CurlOrientedUnsignedNoTranspose(const CeedInt *__restrict__ indices, con… in CurlOrientedUnsignedNoTranspose() argument
45 const CeedInt ind_dl = loc_node > 0 ? indices[node - 1] : 0; in CurlOrientedUnsignedNoTranspose()
46 const CeedInt ind_d = indices[node]; in CurlOrientedUnsignedNoTranspose()
47 const CeedInt ind_du = loc_node < (RSTR_ELEM_SIZE - 1) ? indices[node + 1] : 0; in CurlOrientedUnsignedNoTranspose()
66 extern "C" __global__ void CurlOrientedTranspose(const CeedInt *__restrict__ indices, const CeedInt… in CurlOrientedTranspose() argument
69 const CeedInt ind = indices[node]; in CurlOrientedTranspose()
[all …]
H A Dhip-gen-templates.h29 … const CeedInt *__restrict__ indices, const CeedScalar *__restrict__ d_u, CeedScalar *r_u) { in ReadPoint() argument
30 const CeedInt ind = indices[p + elem * NUM_PTS]; in ReadPoint()
42 … const CeedInt *__restrict__ indices, const CeedScalar *__restrict__ r_u, CeedScalar *d_u) { in WritePoint() argument
44 const CeedInt ind = indices[p + elem * NUM_PTS]; in WritePoint()
73 …edData_Hip &data, const CeedInt num_nodes, const CeedInt elem, const CeedInt *__restrict__ indices, in ReadLVecStandard1d() argument
77 const CeedInt ind = indices[node + elem * P_1D]; in ReadLVecStandard1d()
100 …edData_Hip &data, const CeedInt num_nodes, const CeedInt elem, const CeedInt *__restrict__ indices, in WriteLVecStandard1d() argument
104 const CeedInt ind = indices[node + elem * P_1D]; in WriteLVecStandard1d()
112 … const CeedInt *__restrict__ indices, const CeedScalar *__restrict__ r_v, in WriteLVecStandard1d_Single() argument
118 const CeedInt ind = indices[target_node + elem * P_1D]; in WriteLVecStandard1d_Single()
[all …]
H A Dhip-ref-restriction-offset.h15 extern "C" __global__ void OffsetNoTranspose(const CeedInt *__restrict__ indices, const CeedScalar … in OffsetNoTranspose() argument
17 const CeedInt ind = indices[node]; in OffsetNoTranspose()
31 extern "C" __global__ void OffsetTranspose(const CeedInt *__restrict__ indices, const CeedScalar *_… in OffsetTranspose() argument
33 const CeedInt ind = indices[node]; in OffsetTranspose()
H A Dhip-ref-restriction-oriented.h15 extern "C" __global__ void OrientedNoTranspose(const CeedInt *__restrict__ indices, const bool *__r… in OrientedNoTranspose() argument
18 const CeedInt ind = indices[node]; in OrientedNoTranspose()
33 extern "C" __global__ void OrientedTranspose(const CeedInt *__restrict__ indices, const bool *__res… in OrientedTranspose() argument
36 const CeedInt ind = indices[node]; in OrientedTranspose()
H A Dhip-ref-restriction-at-points.h16 extern "C" __global__ void AtPointsTranspose(const CeedInt *__restrict__ indices, const CeedInt *__… in AtPointsTranspose() argument
19 const CeedInt ind = indices[node]; in AtPointsTranspose()
H A Dhip-types.h29 const CeedInt *indices; member
/libCEED/include/ceed/jit-source/cuda/
H A Dcuda-ref-restriction-curl-oriented.h15 extern "C" __global__ void CurlOrientedNoTranspose(const CeedInt *__restrict__ indices, const CeedI… in CurlOrientedNoTranspose() argument
20 const CeedInt ind_dl = loc_node > 0 ? indices[node - 1] : 0; in CurlOrientedNoTranspose()
21 const CeedInt ind_d = indices[node]; in CurlOrientedNoTranspose()
22 const CeedInt ind_du = loc_node < (RSTR_ELEM_SIZE - 1) ? indices[node + 1] : 0; in CurlOrientedNoTranspose()
40 extern "C" __global__ void CurlOrientedUnsignedNoTranspose(const CeedInt *__restrict__ indices, con… in CurlOrientedUnsignedNoTranspose() argument
45 const CeedInt ind_dl = loc_node > 0 ? indices[node - 1] : 0; in CurlOrientedUnsignedNoTranspose()
46 const CeedInt ind_d = indices[node]; in CurlOrientedUnsignedNoTranspose()
47 const CeedInt ind_du = loc_node < (RSTR_ELEM_SIZE - 1) ? indices[node + 1] : 0; in CurlOrientedUnsignedNoTranspose()
66 extern "C" __global__ void CurlOrientedTranspose(const CeedInt *__restrict__ indices, const CeedInt… in CurlOrientedTranspose() argument
69 const CeedInt ind = indices[node]; in CurlOrientedTranspose()
[all …]
H A Dcuda-gen-templates.h29 … const CeedInt *__restrict__ indices, const CeedScalar *__restrict__ d_u, CeedScalar *r_u) { in ReadPoint() argument
30 const CeedInt ind = indices[p + elem * NUM_PTS]; in ReadPoint()
42 … const CeedInt *__restrict__ indices, const CeedScalar *__restrict__ r_u, CeedScalar *d_u) { in WritePoint() argument
44 const CeedInt ind = indices[p + elem * NUM_PTS]; in WritePoint()
73 …dData_Cuda &data, const CeedInt num_nodes, const CeedInt elem, const CeedInt *__restrict__ indices, in ReadLVecStandard1d() argument
77 const CeedInt ind = indices[node + elem * P_1D]; in ReadLVecStandard1d()
101 …dData_Cuda &data, const CeedInt num_nodes, const CeedInt elem, const CeedInt *__restrict__ indices, in WriteLVecStandard1d() argument
105 const CeedInt ind = indices[node + elem * P_1D]; in WriteLVecStandard1d()
113 … const CeedInt *__restrict__ indices, const CeedScalar *__restrict__ r_v, in WriteLVecStandard1d_Single() argument
119 const CeedInt ind = indices[target_node + elem * P_1D]; in WriteLVecStandard1d_Single()
[all …]
H A Dcuda-ref-restriction-offset.h15 extern "C" __global__ void OffsetNoTranspose(const CeedInt *__restrict__ indices, const CeedScalar … in OffsetNoTranspose() argument
17 const CeedInt ind = indices[node]; in OffsetNoTranspose()
31 extern "C" __global__ void OffsetTranspose(const CeedInt *__restrict__ indices, const CeedScalar *_… in OffsetTranspose() argument
33 const CeedInt ind = indices[node]; in OffsetTranspose()
H A Dcuda-ref-restriction-oriented.h15 extern "C" __global__ void OrientedNoTranspose(const CeedInt *__restrict__ indices, const bool *__r… in OrientedNoTranspose() argument
18 const CeedInt ind = indices[node]; in OrientedNoTranspose()
33 extern "C" __global__ void OrientedTranspose(const CeedInt *__restrict__ indices, const bool *__res… in OrientedTranspose() argument
36 const CeedInt ind = indices[node]; in OrientedTranspose()
H A Dcuda-ref-restriction-at-points.h16 extern "C" __global__ void AtPointsTranspose(const CeedInt *__restrict__ indices, const CeedInt *__… in AtPointsTranspose() argument
19 const CeedInt ind = indices[node]; in AtPointsTranspose()
H A Dcuda-types.h29 const CeedInt *indices; member
/libCEED/examples/python/
H A Dtutorial-2-elemrestriction.ipynb40 …the simple creation and application of a `libceed.ElemRestriction`, with user provided dof indices"
70 "indices = np.zeros(2*num_elem, dtype=\"int32\")\n",
72 " indices[2*i+0] = i\n",
73 " indices[2*i+1] = i+1\n",
75 "r = ceed.ElemRestriction(num_elem, 2, 1, 1, num_elem+1, indices, cmode=libceed.USE_POINTER)\n",
90 …"* In the following example, we illustrate how to extract the multiplicity of indices in an elemen…
105 "indices = np.zeros(4*num_elem, dtype=\"int32\")\n",
108 " indices[4*i+0] = i*3+0\n",
109 " indices[4*i+1] = i*3+1\n",
110 " indices[4*i+2] = i*3+2\n",
[all …]
/libCEED/include/ceed/jit-source/sycl/
H A Dsycl-gen-templates.h34 …const global CeedInt *restrict indices, const global CeedScalar *restrict d_u, private CeedScalar … in readDofsOffset1d() argument
40 const CeedInt ind = indices[node + elem * P_1D]; in readDofsOffset1d()
69 …const global CeedInt *restrict indices, const private CeedScalar *restrict r_v, global CeedAtomicS… in writeDofsOffset1d() argument
75 const CeedInt ind = indices[node + elem * P_1D]; in writeDofsOffset1d()
107 …const global CeedInt *restrict indices, const global CeedScalar *restrict d_u, private CeedScalar … in readDofsOffset2d() argument
114 const CeedInt ind = indices[node + elem * P_1D * P_1D]; in readDofsOffset2d()
140 …const global CeedInt *restrict indices, const private CeedScalar *restrict r_v, global CeedAtomicS… in writeDofsOffset2d() argument
147 const CeedInt ind = indices[node + elem * P_1D * P_1D]; in writeDofsOffset2d()
178 …const global CeedInt *restrict indices, const global CeedScalar *restrict d_u, private CeedScalar … in readDofsOffset3d() argument
186 const CeedInt ind = indices[node + elem * P_1D * P_1D * P_1D]; in readDofsOffset3d()
[all …]
/libCEED/backends/sycl-gen/
H A Dceed-sycl-gen.hpp22 FieldsInt_Sycl *indices; member
H A Dceed-sycl-gen-operator.sycl.cpp151 cgh.set_args(num_elem, qf_impl->d_c, impl->indices, impl->fields, impl->B, impl->G, impl->W); in CeedOperatorApplyAdd_Sycl_gen()
220 …impl->indices = sycl::malloc_device<FieldsInt_Sycl>(1, sycl_data->sycl_device, sycl_data->sycl_con… in CeedOperatorCreate_Sycl_gen()
/libCEED/backends/cuda-gen/
H A Dceed-cuda-gen.h22 FieldsInt_Cuda indices; member
H A Dceed-cuda-gen-operator.c204 …void *opargs[] = {(void *)&num_elem, &qf_data->d_c, &data->indices, &data->fields, &data->B, &data… in CeedOperatorApplyAddCore_Cuda_gen()
458 …void *opargs[] = {(void *)&num_elem, &qf_data->d_c, &data->indices, &data->fields, &data->B, &data… in CeedOperatorLinearAssembleQFunctionCore_Cuda_gen()
635 …void *opargs[] = {(void *)&num_elem, &qf_data->d_c, &data->indices, &data->fields, &data->B, &data… in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda_gen()
799 …void *opargs[] = {(void *)&num_elem, &qf_data->d_c, &data->indices, &data->fields, &data-… in CeedOperatorAssembleSingleAtPoints_Cuda_gen()
/libCEED/backends/hip-gen/
H A Dceed-hip-gen.h23 FieldsInt_Hip indices; member
H A Dceed-hip-gen-operator.c149 …void *opargs[] = {(void *)&num_elem, &qf_data->d_c, &data->indices, &data->fields, &data->B, &data… in CeedOperatorApplyAddCore_Hip_gen()
427 …void *opargs[] = {(void *)&num_elem, &qf_data->d_c, &data->indices, &data->fields, &data->B, &data… in CeedOperatorLinearAssembleQFunctionCore_Hip_gen()
614 …void *opargs[] = {(void *)&num_elem, &qf_data->d_c, &data->indices, &data->fields, &data->B, &data… in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip_gen()
795 …void *opargs[] = {(void *)&num_elem, &qf_data->d_c, &data->indices, &data->fields, &data-… in CeedOperatorAssembleSingleAtPoints_Hip_gen()
/libCEED/backends/sycl-ref/
H A Dceed-sycl-restriction.sycl.cpp60 const CeedInt *indices = impl->d_offsets; in CeedElemRestrictionOffsetNoTranspose_Sycl() local
68 const CeedInt ind = indices[node]; in CeedElemRestrictionOffsetNoTranspose_Sycl()
249 static int CeedElemRestrictionOffset_Sycl(const CeedElemRestriction rstr, const CeedInt *indices) { in CeedElemRestrictionOffset_Sycl() argument
268 for (CeedInt i = 0; i < size_indices; i++) is_node[indices[i]] = 1; in CeedElemRestrictionOffset_Sycl()
290 …for (CeedInt i = 0; i < elem_size; ++i) ++t_offsets[ind_to_offset[indices[elem_size * e + i]] + 1]; in CeedElemRestrictionOffset_Sycl()
298 const CeedInt gid = indices[lid]; in CeedElemRestrictionOffset_Sycl()
/libCEED/examples/deal.II/
H A Dbps-ceed.h163 std::vector<CeedInt> indices; in reinit() local
164 indices.reserve(n_local_active_cells * fe.n_dofs_per_cell() / n_components); in reinit()
176 indices.emplace_back( in reinit()
188 indices.data(), in reinit()
/libCEED/julia/LibCEED.jl/src/
H A DElemRestriction.jl51 indices to be 0-based.
115 indices to be 0-based.
183 indices to be 0-based.
242 indices to be 0-based.
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref-restriction.c416 …ctionOffset_Cuda(const CeedElemRestriction rstr, const CeedInt elem_size, const CeedInt *indices) { in CeedElemRestrictionOffset_Cuda() argument
436 for (CeedInt i = 0; i < size_indices; i++) is_node[indices[i]] = 1; in CeedElemRestrictionOffset_Cuda()
458 …for (CeedInt i = 0; i < elem_size; ++i) ++t_offsets[ind_to_offset[indices[elem_size * e + i]] + 1]; in CeedElemRestrictionOffset_Cuda()
466 const CeedInt gid = indices[lid]; in CeedElemRestrictionOffset_Cuda()
/libCEED/backends/hip-ref/
H A Dceed-hip-ref-restriction.c417 …ictionOffset_Hip(const CeedElemRestriction rstr, const CeedInt elem_size, const CeedInt *indices) { in CeedElemRestrictionOffset_Hip() argument
437 for (CeedInt i = 0; i < size_indices; i++) is_node[indices[i]] = 1; in CeedElemRestrictionOffset_Hip()
459 …for (CeedInt i = 0; i < elem_size; ++i) ++t_offsets[ind_to_offset[indices[elem_size * e + i]] + 1]; in CeedElemRestrictionOffset_Hip()
467 const CeedInt gid = indices[lid]; in CeedElemRestrictionOffset_Hip()

12