| /libCEED/tests/ |
| H A D | t412-qfunction.c | 13 CeedInt q = 8, size = 3; in main() local 14 CeedScalar u_array[q * size]; in main() 18 CeedVectorCreate(ceed, q * size, &u); in main() 19 for (CeedInt i = 0; i < q * size; i++) u_array[i] = i * i; in main() 21 CeedVectorCreate(ceed, q * size, &v); in main() 24 CeedQFunctionCreateIdentity(ceed, size, CEED_EVAL_INTERP, CEED_EVAL_NONE, &qf); in main() 36 for (CeedInt i = 0; i < q * size; i++) { in main()
|
| /libCEED/backends/sycl-ref/kernels/ |
| H A D | sycl-ref-vector.cpp | 15 __global__ static void setValueK(CeedScalar *__restrict__ vec, CeedInt size, CeedScalar val) { in setValueK() argument 18 if (index >= size) return; in setValueK() 38 __global__ static void rcpValueK(CeedScalar *__restrict__ vec, CeedInt size) { in rcpValueK() argument 41 if (index >= size) return; in rcpValueK() 61 __global__ static void scaleValueK(CeedScalar *__restrict__ x, CeedScalar alpha, CeedInt size) { in scaleValueK() argument 64 if (index >= size) return; in scaleValueK() 84 …xpyValueK(CeedScalar *__restrict__ y, CeedScalar alpha, CeedScalar *__restrict__ x, CeedInt size) { in axpyValueK() argument 86 if (index >= size) return; in axpyValueK() 106 …seMultValueK(CeedScalar *__restrict__ w, CeedScalar *x, CeedScalar *__restrict__ y, CeedInt size) { in pointwiseMultValueK() argument 109 if (index >= size) return; in pointwiseMultValueK()
|
| /libCEED/backends/hip-ref/kernels/ |
| H A D | hip-ref-vector.hip.cpp | 14 …edK(CeedScalar *__restrict__ vec, CeedSize start, CeedSize step, CeedSize size, CeedScalar *__rest… in copyStridedK() argument 17 if (index < size) { in copyStridedK() 38 __global__ static void setValueK(CeedScalar *__restrict__ vec, CeedSize size, CeedScalar val) { in setValueK() argument 41 if (index < size) vec[index] = val; in setValueK() 84 __global__ static void rcpValueK(CeedScalar *__restrict__ vec, CeedSize size) { in rcpValueK() argument 87 if (index < size) { in rcpValueK() 108 __global__ static void scaleValueK(CeedScalar *__restrict__ x, CeedScalar alpha, CeedSize size) { in scaleValueK() argument 111 if (index < size) x[index] *= alpha; in scaleValueK() 130 …pyValueK(CeedScalar *__restrict__ y, CeedScalar alpha, CeedScalar *__restrict__ x, CeedSize size) { in axpyValueK() argument 133 if (index < size) y[index] += alpha * x[index]; in axpyValueK() [all …]
|
| /libCEED/include/ceed/jit-source/gallery/ |
| H A D | ceed-identity.h | 14 CeedInt size; member 20 const CeedInt size = identity_ctx.size; in Identity() local 28 …CeedPragmaSIMD for (CeedInt i = 0; i < Q * size; i++) { output[i] = input[i]; } // End of Quadrat… in Identity()
|
| H A D | ceed-scale.h | 15 const CeedInt size = *(CeedInt *)ctx; in Scale() local 25 …CeedPragmaSIMD for (CeedInt i = 0; i < Q * size; i++) { output[i] = input[i] * scale[i]; } // End… in Scale()
|
| H A D | ceed-scale-scalar.h | 15 const CeedInt size = *(CeedInt *)ctx; in ScaleScalar() local 26 for (CeedInt j = 0; j < size; j++) output[i + j * Q] = input[i + j * Q] * scale[i]; in ScaleScalar()
|
| /libCEED/backends/cuda-ref/kernels/ |
| H A D | cuda-ref-vector.cu | 38 __global__ static void setValueK(CeedScalar *__restrict__ vec, CeedSize size, CeedScalar val) { in setValueK() argument 41 if (index < size) vec[index] = val; in setValueK() 84 __global__ static void rcpValueK(CeedScalar *__restrict__ vec, CeedSize size) { in rcpValueK() argument 87 if (index < size) { in rcpValueK() 108 __global__ static void scaleValueK(CeedScalar *__restrict__ x, CeedScalar alpha, CeedSize size) { in scaleValueK() argument 111 if (index < size) x[index] *= alpha; in scaleValueK() 130 …pyValueK(CeedScalar *__restrict__ y, CeedScalar alpha, CeedScalar *__restrict__ x, CeedSize size) { in axpyValueK() argument 133 if (index < size) y[index] += alpha * x[index]; in axpyValueK() 152 …ar *__restrict__ y, CeedScalar alpha, CeedScalar beta, CeedScalar *__restrict__ x, CeedSize size) { in axpbyValueK() argument 155 if (index < size) { in axpbyValueK() [all …]
|
| /libCEED/examples/deal.II/ |
| H A D | bps-ceed.h | 120 const unsigned int n_q_points = quadrature.get_tensor_basis()[0].size(); in reinit() 129 std::vector<CeedScalar> interp_1d(shape_data.shape_values.size()); in reinit() 130 std::vector<CeedScalar> grad_1d(shape_data.shape_gradients.size()); in reinit() 197 static_cast<int>(quadrature.size()), in reinit() 198 static_cast<int>(quadrature.size() * n_components_metric)}}; in reinit() 199 CeedVectorCreate(ceed, metric_data_raw.size(), &metric_data); in reinit() 203 quadrature.size(), in reinit() 205 metric_data_raw.size(), in reinit() 435 const unsigned int n_q_points = quadrature.get_tensor_basis()[0].size(); in compute_metric_data() 457 std::vector<CeedScalar> interp_1d(shape_data.shape_values.size()); in compute_metric_data() [all …]
|
| /libCEED/backends/cuda-ref/ |
| H A D | ceed-cuda-ref-qfunction-load.cpp | 27 CeedInt num_input_fields, num_output_fields, size; in CeedQFunctionBuildKernel_Cuda_ref() local 62 CeedCallBackend(CeedQFunctionFieldGetSize(input_fields[i], &size)); in CeedQFunctionBuildKernel_Cuda_ref() 63 code << " const CeedInt size_input_" << i << " = " << size << ";\n"; in CeedQFunctionBuildKernel_Cuda_ref() 75 CeedCallBackend(CeedQFunctionFieldGetSize(output_fields[i], &size)); in CeedQFunctionBuildKernel_Cuda_ref() 76 code << " const CeedInt size_output_" << i << " = " << size << ";\n"; in CeedQFunctionBuildKernel_Cuda_ref()
|
| H A D | ceed-cuda-ref-restriction.c | 523 const CeedInt size = num_elem * elem_size; in CeedElemRestrictionCreate_Cuda() local 526 impl->num_nodes = size; in CeedElemRestrictionCreate_Cuda() 532 CeedInt layout[3] = {1, size, elem_size}; in CeedElemRestrictionCreate_Cuda() 592 …CeedCallBackend(CeedSetHostCeedIntArray(offsets, copy_mode, size, &impl->h_offsets_owned, &impl->h… in CeedElemRestrictionCreate_Cuda() 593 CeedCallCuda(ceed, cudaMalloc((void **)&impl->d_offsets_owned, size * sizeof(CeedInt))); in CeedElemRestrictionCreate_Cuda() 594 …CeedCallCuda(ceed, cudaMemcpy((CeedInt *)impl->d_offsets_owned, impl->h_offsets, size * sizeof(Cee… in CeedElemRestrictionCreate_Cuda() 599 …CeedCallBackend(CeedSetDeviceCeedIntArray_Cuda(ceed, offsets, copy_mode, size, &impl->d_offsets_ow… in CeedElemRestrictionCreate_Cuda() 601 CeedCallBackend(CeedMalloc(size, &impl->h_offsets_owned)); in CeedElemRestrictionCreate_Cuda() 602 …CeedCallCuda(ceed, cudaMemcpy((CeedInt *)impl->h_offsets_owned, impl->d_offsets, size * sizeof(Cee… in CeedElemRestrictionCreate_Cuda() 612 …CeedCallBackend(CeedSetHostBoolArray(orients, copy_mode, size, &impl->h_orients_owned, &impl->h_or… in CeedElemRestrictionCreate_Cuda() [all …]
|
| /libCEED/backends/hip-ref/ |
| H A D | ceed-hip-ref-qfunction-load.cpp | 29 CeedInt num_input_fields, num_output_fields, size; in CeedQFunctionBuildKernel_Hip_ref() local 66 CeedCallBackend(CeedQFunctionFieldGetSize(input_fields[i], &size)); in CeedQFunctionBuildKernel_Hip_ref() 67 code << " const CeedInt size_input_" << i << " = " << size << ";\n"; in CeedQFunctionBuildKernel_Hip_ref() 79 CeedCallBackend(CeedQFunctionFieldGetSize(output_fields[i], &size)); in CeedQFunctionBuildKernel_Hip_ref() 80 code << " const CeedInt size_output_" << i << " = " << size << ";\n"; in CeedQFunctionBuildKernel_Hip_ref()
|
| H A D | ceed-hip-ref-restriction.c | 524 const CeedInt size = num_elem * elem_size; in CeedElemRestrictionCreate_Hip() local 527 impl->num_nodes = size; in CeedElemRestrictionCreate_Hip() 533 CeedInt layout[3] = {1, size, elem_size}; in CeedElemRestrictionCreate_Hip() 593 …CeedCallBackend(CeedSetHostCeedIntArray(offsets, copy_mode, size, &impl->h_offsets_owned, &impl->h… in CeedElemRestrictionCreate_Hip() 594 CeedCallHip(ceed, hipMalloc((void **)&impl->d_offsets_owned, size * sizeof(CeedInt))); in CeedElemRestrictionCreate_Hip() 595 …CeedCallHip(ceed, hipMemcpy((CeedInt **)impl->d_offsets_owned, impl->h_offsets, size * sizeof(Ceed… in CeedElemRestrictionCreate_Hip() 600 …CeedCallBackend(CeedSetDeviceCeedIntArray_Hip(ceed, offsets, copy_mode, size, &impl->d_offsets_own… in CeedElemRestrictionCreate_Hip() 602 CeedCallBackend(CeedMalloc(size, &impl->h_offsets_owned)); in CeedElemRestrictionCreate_Hip() 603 …CeedCallHip(ceed, hipMemcpy((CeedInt **)impl->h_offsets_owned, impl->d_offsets, size * sizeof(Ceed… in CeedElemRestrictionCreate_Hip() 613 …CeedCallBackend(CeedSetHostBoolArray(orients, copy_mode, size, &impl->h_orients_owned, &impl->h_or… in CeedElemRestrictionCreate_Hip() [all …]
|
| /libCEED/python/ |
| H A D | ceed_qfunction.py | 111 def add_input(self, fieldname, size, emode): argument 125 self._pointer[0], fieldnameAscii, size, emode) 128 def add_output(self, fieldname, size, emode): argument 142 self._pointer[0], fieldnameAscii, size, emode) 173 def __init__(self, ceed, size, inmode, outmode): argument 181 err_code = lib.CeedQFunctionCreateIdentity(self._ceed._pointer[0], size,
|
| /libCEED/rust/libceed/src/ |
| H A D | qfunction.rs | 74 pub fn size(&self) -> usize { in size() method 75 let mut size = 0; in size() localVariable 77 bind_ceed::CeedQFunctionFieldGetSize(self.ptr, &mut size); in size() 79 usize::try_from(size).unwrap() in size() 736 size: usize, in input() 741 self.trampoline_data.input_sizes[idx] = size; in input() 743 let (size, emode) = ( in input() 744 i32::try_from(size).unwrap(), in input() 748 bind_ceed::CeedQFunctionAddInput(self.qf_core.ptr, name_c.as_ptr(), size, emode) in input() 785 size: usize, in output() [all …]
|
| /libCEED/interface/ |
| H A D | ceed-qfunction.c | 106 static int CeedQFunctionFieldSet(CeedQFunctionField *f, const char *field_name, CeedInt size, CeedE… in CeedQFunctionFieldSet() argument 109 (*f)->size = size; in CeedQFunctionFieldSet() 130 CeedInt size; in CeedQFunctionFieldView() local 133 CeedCall(CeedQFunctionFieldGetData(field, &field_name, &size, &eval_mode)); in CeedQFunctionFieldView() 141 tabs, inout, field_number, tabs, field_name, tabs, size, tabs, CeedEvalModes[eval_mode]); in CeedQFunctionFieldView() 772 int CeedQFunctionCreateIdentity(Ceed ceed, CeedInt size, CeedEvalMode in_mode, CeedEvalMode out_mod… in CeedQFunctionCreateIdentity() argument 777 CeedCall(CeedQFunctionAddInput(*qf, "input", size, in_mode)); in CeedQFunctionCreateIdentity() 778 CeedCall(CeedQFunctionAddOutput(*qf, "output", size, out_mode)); in CeedQFunctionCreateIdentity() 784 CeedCall(CeedQFunctionContextSetInt32(ctx, size_label, &size)); in CeedQFunctionCreateIdentity() 834 int CeedQFunctionAddInput(CeedQFunction qf, const char *field_name, CeedInt size, CeedEvalMode eval… in CeedQFunctionAddInput() argument [all …]
|
| H A D | ceed-qfunctioncontext.c | 96 ctx->field_labels[ctx->num_fields]->size = field_size * num_values; in CeedQFunctionContextRegisterGeneric() 319 is_different = memcmp(&data[field_label->offset], values, field_label->size); in CeedQFunctionContextSetGeneric() 323 memcpy(&data[field_label->offset], values, field_label->size); in CeedQFunctionContextSetGeneric() 355 *num_values = field_label->size / sizeof(int); in CeedQFunctionContextGetGenericRead() 358 *num_values = field_label->size / sizeof(double); in CeedQFunctionContextGetGenericRead() 361 *num_values = field_label->size / sizeof(bool); in CeedQFunctionContextGetGenericRead() 650 …(CeedQFunctionContext ctx, CeedMemType mem_type, CeedCopyMode copy_mode, size_t size, void *data) { in CeedQFunctionContextSetData() argument 656 ctx->ctx_size = size; in CeedQFunctionContextSetData()
|
| /libCEED/julia/LibCEED.jl/src/ |
| H A D | Basis.jl | 70 - `interp1d`: Matrix of size `(q, p)` expressing the values of nodal basis functions at 72 - `grad1d`: Matrix of size `(p, q)` expressing derivatives of nodal basis functions at 89 @assert size(interp1d) == (q, p) 90 @assert size(grad1d) == (q, p) 125 - `interp`: Matrix of size `(nqpts, nnodes)` expressing the values of nodal basis functions 127 - `grad`: Array of size `(dim, nqpts, nnodes)` expressing derivatives of nodal basis 129 - `qref`: Matrix of size `(dim, nqpts)` holding the locations of quadrature points on the 146 @assert size(interp) == (nqpts, nnodes) 147 @assert size(grad) == (dim, nqpts, nnodes) 148 @assert size(qref) == (dim, nqpts) [all …]
|
| H A D | QFunction.jl | 79 create_identity_qfunction(c::Ceed, size, inmode::EvalMode, outmode::EvalMode) 87 function create_identity_qfunction(c::Ceed, size, inmode::EvalMode, outmode::EvalMode) argument 89 C.CeedQFunctionCreateIdentity(c[], size, inmode, outmode, ref) 93 function add_input!(qf::AbstractQFunction, name::AbstractString, size, emode) argument 94 C.CeedQFunctionAddInput(qf[], name, size, emode) 97 function add_output!(qf::AbstractQFunction, name::AbstractString, size, emode) argument 98 C.CeedQFunctionAddOutput(qf[], name, size, emode)
|
| /libCEED/gallery/identity/ |
| H A D | ceed-identity.c | 27 IdentityCtx ctx_data = {.size = 1}; in CeedQFunctionInit_Identity() 31 …CeedCall(CeedQFunctionContextRegisterInt32(ctx, "size", offsetof(IdentityCtx, size), 1, "field siz… in CeedQFunctionInit_Identity()
|
| /libCEED/python/tests/ |
| H A D | test-4-qfunction.py | 278 size = 3 279 qf = ceed.IdentityQFunction(size, libceed.EVAL_INTERP, libceed.EVAL_INTERP) 283 u_array = np.zeros(q * size, dtype=ceed.scalar_type()) 284 for i in range(q * size): 287 u = ceed.Vector(q * size) 289 v = ceed.Vector(q * size) 297 for i in range(q * size):
|
| /libCEED/julia/LibCEED.jl/examples/ |
| H A D | ex2-surface.jl | 29 println("Mesh size: ", nxyz) 142 # Create auxiliary solution-size vectors. 149 size = (mesh_size÷dim, dim), 150 @witharray(u_host = u, size = (sol_size, 1), sum!(u_host, x_host))
|
| H A D | ex1-volume.jl | 41 # Determine the mesh size based on the given approximate problem size. 43 println("Mesh size: ", nxyz) 134 # Create auxiliary solution-size vectors.
|
| /libCEED/backends/sycl-ref/ |
| H A D | ceed-sycl-restriction.sycl.cpp | 352 const CeedInt size = num_elem * elem_size; in CeedElemRestrictionCreate_Sycl() local 353 CeedInt strides[3] = {1, size, elem_size}; in CeedElemRestrictionCreate_Sycl() 373 impl->num_nodes = size; in CeedElemRestrictionCreate_Sycl() 386 CeedInt layout[3] = {1, size, elem_size}; in CeedElemRestrictionCreate_Sycl() 421 …CeedCallSycl(ceed, impl->d_offsets_owned = sycl::malloc_device<CeedInt>(size, data->sycl_device, d… in CeedElemRestrictionCreate_Sycl() 425 …ent copy_event = data->sycl_queue.copy<CeedInt>(impl->h_offsets, impl->d_offsets_owned, size, {e}); in CeedElemRestrictionCreate_Sycl() 436 …CeedCallSycl(ceed, impl->d_offsets_owned = sycl::malloc_device<CeedInt>(size, data->sycl_device, d… in CeedElemRestrictionCreate_Sycl() 440 …sycl::event copy_event = data->sycl_queue.copy<CeedInt>(offsets, impl->d_offsets_owned, size, {e}); in CeedElemRestrictionCreate_Sycl()
|
| /libCEED/doc/sphinx/source/css/ |
| H A D | altair-plot.css | 5 font-size: 13px;
|
| /libCEED/examples/python/ |
| H A D | tutorial-1-vector.ipynb | 40 …"We illustrate the simple creation of a `libceed.Vector`, how to specify its size, and how to read… 61 "The size of the `CeedVector` can also be specified as " 70 "x = ceed.Vector(size=10)" 89 "x = ceed.Vector(size=3)\n", 112 "x = ceed.Vector(size=5)\n",
|