| /libCEED/backends/cuda-ref/kernels/ |
| H A D | cuda-ref-vector.cu | 15 const CeedSize index = threadIdx.x + (CeedSize)blockDim.x * blockIdx.x; in copyStridedK() local 17 if (index < stop - start) { in copyStridedK() 18 if (index % step == 0) vec_copy[start + index] = vec[start + index]; in copyStridedK() 39 const CeedSize index = threadIdx.x + (CeedSize)blockDim.x * blockIdx.x; in setValueK() local 41 if (index < size) vec[index] = val; in setValueK() 61 const CeedSize index = threadIdx.x + (CeedSize)blockDim.x * blockIdx.x; in setValueStridedK() local 63 if (index < stop - start) { in setValueStridedK() 64 if (index % step == 0) vec[start + index] = val; in setValueStridedK() 85 const CeedSize index = threadIdx.x + (CeedSize)blockDim.x * blockIdx.x; in rcpValueK() local 87 if (index < size) { in rcpValueK() [all …]
|
| /libCEED/backends/hip-ref/kernels/ |
| H A D | hip-ref-vector.hip.cpp | 15 const CeedSize index = threadIdx.x + (CeedSize)blockDim.x * blockIdx.x; in copyStridedK() local 17 if (index < size) { in copyStridedK() 18 if ((index - start) % step == 0) vec_copy[index] = vec[index]; in copyStridedK() 39 const CeedSize index = threadIdx.x + (CeedSize)blockDim.x * blockIdx.x; in setValueK() local 41 if (index < size) vec[index] = val; in setValueK() 61 const CeedSize index = threadIdx.x + (CeedSize)blockDim.x * blockIdx.x; in setValueStridedK() local 63 if (index < stop - start) { in setValueStridedK() 64 if (index % step == 0) vec[start + index] = val; in setValueStridedK() 85 const CeedSize index = threadIdx.x + (CeedSize)blockDim.x * blockIdx.x; in rcpValueK() local 87 if (index < size) { in rcpValueK() [all …]
|
| /libCEED/backends/sycl-ref/kernels/ |
| H A D | sycl-ref-vector.cpp | 16 int index = threadIdx.x + blockDim.x * blockIdx.x; in setValueK() local 18 if (index >= size) return; in setValueK() 19 vec[index] = val; in setValueK() 39 int index = threadIdx.x + blockDim.x * blockIdx.x; in rcpValueK() local 41 if (index >= size) return; in rcpValueK() 42 if (fabs(vec[index]) > 1E-16) vec[index] = 1. / vec[index]; in rcpValueK() 62 int index = threadIdx.x + blockDim.x * blockIdx.x; in scaleValueK() local 64 if (index >= size) return; in scaleValueK() 65 x[index] *= alpha; in scaleValueK() 85 int index = threadIdx.x + blockDim.x * blockIdx.x; in axpyValueK() local [all …]
|
| /libCEED/tests/ |
| H A D | t219-elemrestriction.c | 60 …CeedInt index = (i * blk_size + elem) * e_layout[0] + j * e_layout[1] * blk_size + block * e_layou… in main() local 62 if (i == 0 && 10 + k + 1 != -y_array[index]) { in main() 64 … y[%" CeedInt_FMT "][%" CeedInt_FMT "][%" CeedInt_FMT "] = %f\n", i, j, k, (double)y_array[index]); in main() 66 } else if (i == 1 && 10 + k != -y_array[index]) { in main() 68 … y[%" CeedInt_FMT "][%" CeedInt_FMT "][%" CeedInt_FMT "] = %f\n", i, j, k, (double)y_array[index]); in main() 72 if (y_array[index] != x_array[ind[k * elem_size + i]]) { in main() 74 … y[%" CeedInt_FMT "][%" CeedInt_FMT "][%" CeedInt_FMT "] = %f\n", i, j, k, (double)y_array[index]); in main()
|
| H A D | t202-elemrestriction.c | 45 …CeedInt index = (i * blk_size + elem) * e_layout[0] + j * e_layout[1] * blk_size + block * e_layou… in main() local 46 if (y_array[index] != x_array[ind[k * elem_size + i]]) { in main() 48 … y[%" CeedInt_FMT "][%" CeedInt_FMT "][%" CeedInt_FMT "] = %f\n", i, j, k, (double)y_array[index]); in main()
|
| H A D | t208-elemrestriction.c | 44 …CeedInt index = (i * blk_size + elem) * e_layout[0] + j * e_layout[1] * blk_size + block * e_layou… in main() local 45 if (y_array[index] != x_array[ind[k * elem_size + i]]) { in main() 47 … y[%" CeedInt_FMT "][%" CeedInt_FMT "][%" CeedInt_FMT "] = %f\n", i, j, k, (double)y_array[index]); in main()
|
| H A D | t203-elemrestriction.c | 51 …CeedInt index = (i * blk_size + elem) * e_layout[0] + j * e_layout[1] * blk_size + block * e_layou… in main() local 52 if (y_array[index] != x_array[ind[k * elem_size + i] + j * (num_elem + 1)]) { in main() 54 … y[%" CeedInt_FMT "][%" CeedInt_FMT "][%" CeedInt_FMT "] = %f\n", i, j, k, (double)y_array[index]); in main()
|
| H A D | t213-elemrestriction.c | 55 …CeedInt index = (i * blk_size + elem) * e_layout[0] + j * e_layout[1] * blk_size + block * e_layou… in main() local 56 if (y_array[index] != x_array[ind[k * elem_size + i] + j * (num_elem + 1)]) in main() 58 … y[%" CeedInt_FMT "][%" CeedInt_FMT "][%" CeedInt_FMT "] = %f\n", i, j, k, (double)y_array[index]); in main()
|
| H A D | junit_common.py | 346 index = field_names.index(key) 351 known[key] = test_fields[index].type(value) # type: ignore 354 known[key] = get_origin(test_fields[index].type)(value) # type: ignore 524 backend: str, test: str, index: int, verbose: bool) -> str: 585 def run_test(index: int, test: str, spec: TestSpec, backend: str, 606 run_args[run_args.index('{ceed_resource}')] = backend 611 run_args[run_args.index('{nproc}')] = f'{nproc}' 755 output_str = test_case_output_string(test_case, spec, mode, backend, test, index, verbose)
|
| H A D | t566-operator.c | 144 …const CeedInt index = (node_out + comp_out * num_dofs) * num_comp + node_in + co… in main() local 145 const CeedScalar assembled_value = assembled_values[index]; in main() 146 const CeedScalar assembled_true_value = assembled_true[index]; in main()
|
| H A D | t568-operator.c | 147 …const CeedInt index = (node_out + comp_out * num_dofs) * num_comp + node_in + co… in main() local 148 const CeedScalar assembled_value = assembled_values[index]; in main() 149 const CeedScalar assembled_true_value = assembled_true[index]; in main()
|
| /libCEED/examples/ |
| H A D | index.md | 13 ceed/index.md 15 petsc/index.md 16 fluids/index.md 17 solids/index.md
|
| H A D | README.md | 8 … see the dedicated [documentation section](https://libceed.org/en/latest/examples/ceed/index.html). 63 …orresponding [fluids documentation page](https://libceed.org/en/latest/examples/fluids/index.html). 68 …orresponding [solids documentation page](https://libceed.org/en/latest/examples/solids/index.html). 73 …responding [area documentation page](https://libceed.org/en/latest/examples/petsc/index.html#area). 78 …d-sphere documentation page](https://libceed.org/en/latest/examples/petsc/index.html#bakeoff-probl…
|
| /libCEED/doc/sphinx/source/ |
| H A D | index.md | 10 examples/index 11 api/index
|
| /libCEED/backends/sycl-gen/ |
| H A D | ceed-sycl-gen-operator.sycl.cpp | 103 CeedInt index = -1; in CeedOperatorApplyAdd_Sycl_gen() local 106 index = j; in CeedOperatorApplyAdd_Sycl_gen() 110 if (index == -1) { in CeedOperatorApplyAdd_Sycl_gen() 113 impl->fields->outputs[i] = impl->fields->outputs[index]; in CeedOperatorApplyAdd_Sycl_gen() 184 CeedInt index = -1; in CeedOperatorApplyAdd_Sycl_gen() local 188 index = j; in CeedOperatorApplyAdd_Sycl_gen() 192 if (index == -1) { in CeedOperatorApplyAdd_Sycl_gen()
|
| /libCEED/benchmarks/ |
| H A D | postprocess_plot.py | 76 for index, row in pl_set.iterrows(): 85 if len(pl_runs.index) == 0: 104 for index, run in 128 for index, run in
|
| H A D | postprocess_table.py | 18 runs.to_csv('benchmark_data.csv', sep='\t', index=False)
|
| /libCEED/backends/hip-ref/ |
| H A D | ceed-hip-ref-vector.c | 668 int64_t index; in CeedVectorNorm_Hip() local 671 CeedCallHipblas(ceed, hipblasIsamax_64(handle, (int64_t)length, (float *)d_array, 1, &index)); in CeedVectorNorm_Hip() 672 …CeedCallHip(ceed, hipMemcpyAsync(&norm_no_abs, impl->d_array + index - 1, sizeof(CeedScalar), hipM… in CeedVectorNorm_Hip() 676 CeedInt index; in CeedVectorNorm_Hip() 685 …edCallHipblas(ceed, hipblasIsamax(handle, (CeedInt)sub_length, (float *)d_array_start, 1, &index)); in CeedVectorNorm_Hip() 688 sub_max = fabs(d_array[index - 1]); in CeedVectorNorm_Hip() 690 …CeedCallHip(ceed, hipMemcpyAsync(&sub_max, d_array_start + index - 1, sizeof(CeedScalar), hipMemcp… in CeedVectorNorm_Hip() 699 int64_t index; in CeedVectorNorm_Hip() 702 … CeedCallHipblas(ceed, hipblasIdamax_64(handle, (int64_t)length, (double *)d_array, 1, &index)); in CeedVectorNorm_Hip() 705 norm_no_abs = fabs(d_array[index - 1]); in CeedVectorNorm_Hip() [all …]
|
| /libCEED/python/ |
| H A D | build_ceed_cffi.py | 63 insert_index = lines.index(line) + 1 68 insert_index = lines.index(line) + 1
|
| /libCEED/backends/hip-gen/ |
| H A D | ceed-hip-gen-operator-build.cpp | 26 CeedInt index; member 234 bool use_previous_field = field_reuse.index != -1; in CeedOperatorBuildKernelFieldData_Hip_gen() 295 …euse_var = "s_B" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Hip_gen() 334 …euse_var = "s_B" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Hip_gen() 354 …euse_var = "s_G" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Hip_gen() 370 …euse_var = "s_G" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Hip_gen() 381 …euse_var = "s_G" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Hip_gen() 1383 input_matrix_reuse[i].index = -1; in CeedOperatorBuildKernel_Hip_gen() 1394 for (CeedInt j = 0; (input_matrix_reuse[i].index == -1) && (j < i); j++) { in CeedOperatorBuildKernel_Hip_gen() 1403 input_matrix_reuse[i].index = j; in CeedOperatorBuildKernel_Hip_gen() [all …]
|
| /libCEED/backends/cuda-gen/ |
| H A D | ceed-cuda-gen-operator-build.cpp | 27 CeedInt index; member 207 bool use_previous_field = field_reuse.index != -1; in CeedOperatorBuildKernelFieldData_Cuda_gen() 268 …euse_var = "s_B" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Cuda_gen() 307 …euse_var = "s_B" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Cuda_gen() 327 …euse_var = "s_G" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Cuda_gen() 343 …euse_var = "s_G" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Cuda_gen() 354 …euse_var = "s_G" + ((field_reuse.is_input ? "_in_" : "_out_") + std::to_string(field_reuse.index)); in CeedOperatorBuildKernelFieldData_Cuda_gen() 1370 input_matrix_reuse[i].index = -1; in CeedOperatorBuildKernel_Cuda_gen() 1381 for (CeedInt j = 0; (input_matrix_reuse[i].index == -1) && (j < i); j++) { in CeedOperatorBuildKernel_Cuda_gen() 1390 input_matrix_reuse[i].index = j; in CeedOperatorBuildKernel_Cuda_gen() [all …]
|
| /libCEED/backends/cuda-ref/ |
| H A D | ceed-cuda-ref-vector.c | 581 int64_t index; in CeedVectorNorm_Cuda() local 584 CeedCallCublas(ceed, cublasIsamax_64(handle, (int64_t)length, (float *)d_array, 1, &index)); in CeedVectorNorm_Cuda() 585 …CeedCallCuda(ceed, cudaMemcpy(&norm_no_abs, impl->d_array + index - 1, sizeof(CeedScalar), cudaMem… in CeedVectorNorm_Cuda() 588 CeedInt index; in CeedVectorNorm_Cuda() 597 …CeedCallCublas(ceed, cublasIsamax(handle, (CeedInt)sub_length, (float *)d_array_start, 1, &index)); in CeedVectorNorm_Cuda() 598 …CeedCallCuda(ceed, cudaMemcpy(&sub_max, d_array_start + index - 1, sizeof(CeedScalar), cudaMemcpyD… in CeedVectorNorm_Cuda() 605 int64_t index; in CeedVectorNorm_Cuda() 608 CeedCallCublas(ceed, cublasIdamax_64(handle, (int64_t)length, (double *)d_array, 1, &index)); in CeedVectorNorm_Cuda() 609 …CeedCallCuda(ceed, cudaMemcpy(&norm_no_abs, impl->d_array + index - 1, sizeof(CeedScalar), cudaMem… in CeedVectorNorm_Cuda() 612 CeedInt index; in CeedVectorNorm_Cuda() [all …]
|
| /libCEED/interface/ |
| H A D | ceed-preconditioning.c | 1655 CeedInt index = -1, num_comp, q_comp; in CeedOperatorAssemblyDataCreate() local 1664 if ((*data)->active_bases_in[i] == basis_in) index = i; in CeedOperatorAssemblyDataCreate() 1666 if (index == -1) { in CeedOperatorAssemblyDataCreate() 1669 index = num_active_bases_in; in CeedOperatorAssemblyDataCreate() 1679 num_eval_modes_in[index] = 0; in CeedOperatorAssemblyDataCreate() 1681 eval_modes_in[index] = NULL; in CeedOperatorAssemblyDataCreate() 1683 eval_mode_offsets_in[index] = NULL; in CeedOperatorAssemblyDataCreate() 1685 (*data)->assembled_bases_in[index] = NULL; in CeedOperatorAssemblyDataCreate() 1690 CeedCall(CeedRealloc(num_eval_modes_in[index] + q_comp, &eval_modes_in[index])); in CeedOperatorAssemblyDataCreate() 1691 CeedCall(CeedRealloc(num_eval_modes_in[index] + q_comp, &eval_mode_offsets_in[index])); in CeedOperatorAssemblyDataCreate() [all …]
|
| /libCEED/backends/magma/tuning/ |
| H A D | generate_tuning.py | 128 …rows = data.loc[data["TRANS"] == 1].to_string(header=False, index=False, justify="right", columns=[ 142 …rows = data.loc[data["TRANS"] == 0].to_string(header=False, index=False, justify="right", columns=[
|
| /libCEED/julia/LibCEED.jl/docs/ |
| H A D | make.jl | 6 "Home" => "index.md",
|