| /libCEED/tests/junit-xml/junit_xml/ |
| H A D | __init__.py | 60 If not already unicode, decode it. 62 if IS_PY2: 63 if isinstance(var, unicode): # noqa: F821 66 if encoding: 80 Can handle unicode strings or binary strings if their encoding is provided. 99 if not test_cases: 127 if any(c.assertions for c in self.test_cases): 128 …e_attributes["assertions"] = str(sum([int(c.assertions) for c in self.test_cases if c.assertions])) 129 … test_suite_attributes["disabled"] = str(len([c for c in self.test_cases if not c.is_enabled])) 130 test_suite_attributes["errors"] = str(len([c for c in self.test_cases if c.is_error()])) [all …]
|
| /libCEED/examples/fluids/src/ |
| H A D | petsc_ops.c | 21 if (local_size) PetscCall(VecGetLocalSize(V_loc, local_size)); in DMGetLocalVectorInfo() 22 if (global_size) PetscCall(VecGetSize(V_loc, global_size)); in DMGetLocalVectorInfo() 23 if (vec_type) PetscCall(VecGetType(V_loc, vec_type)); in DMGetLocalVectorInfo() 34 if (local_size) PetscCall(VecGetLocalSize(V, local_size)); in DMGetGlobalVectorInfo() 35 if (global_size) PetscCall(VecGetSize(V, global_size)); in DMGetGlobalVectorInfo() 36 if (vec_type) PetscCall(VecGetType(V, vec_type)); in DMGetGlobalVectorInfo() 44 …* All passed in objects are reference copied and may be destroyed if desired (with the exception o… 51 …eedVector` for operator active input. May be `CEED_VECTOR_NONE` or `NULL`. If `NULL`, `CeedVector`… 53 …edVector` for operator active output. May be `CEED_VECTOR_NONE` or `NULL`. If `NULL`, `CeedVector`… 55 …aram[in] X_loc Local `Vec` for operator active input. If `NULL`, vector will be obtained if ne… [all …]
|
| H A D | mat-ceed.c | 33 if (registered) PetscFunctionReturn(PETSC_SUCCESS); in MatCeedRegisterLogEvents() 70 // Check if COO pattern set in MatCeedAssemblePointBlockDiagonalCOO() 75 if (ctx->mats_assembled_pbd[i] == mat_coo) index = i; in MatCeedAssemblePointBlockDiagonalCOO() 77 if (index == -1) { in MatCeedAssemblePointBlockDiagonalCOO() 83 // -- Assemble sparsity pattern if mat hasn't been assembled before in MatCeedAssemblePointBlockDiagonalCOO() 85 if (stage_amg_setup == -1) { in MatCeedAssemblePointBlockDiagonalCOO() 98 …if (!ctx->coo_values_pbd) PetscCallCeed(ctx->ceed, CeedVectorCreate(ctx->ceed, num_entries, &ctx->… in MatCeedAssemblePointBlockDiagonalCOO() 116 if (strstr(mat_type, "cusparse")) mem_type = CEED_MEM_DEVICE; in MatCeedAssemblePointBlockDiagonalCOO() 117 else if (strstr(mat_type, "kokkos")) mem_type = CEED_MEM_DEVICE; in MatCeedAssemblePointBlockDiagonalCOO() 126 if (is_spd_known) PetscCall(MatSetOption(mat_coo, MAT_SPD, is_spd)); in MatCeedAssemblePointBlockDiagonalCOO() [all …]
|
| H A D | setupts.c | 18 // Insert Boundary values if it's a new time 21 if (user->time_bc_set != t) { in UpdateBoundaryValues() 41 …if (user->phys->solution_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(user->op_rhs… in RHS_NS() 43 …if (user->phys->timestep_size_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(user->op_rhs… in RHS_NS() 74 if (wall_is) { // There exist such points on this process in Surface_Forces_NS() 116 …if (user->phys->solution_time_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(user->op_ifu… in IFunction_NS() 118 …if (user->phys->timestep_size_label) PetscCallCeed(ceed, CeedOperatorSetContextDouble(user->op_ifu… in IFunction_NS() 164 if (J_is_matceed || J_is_mffd) { in FormIJacobian_NS() 169 if (J_pre_is_matceed && J != J_pre) { in FormIJacobian_NS() 172 } else if (!J_pre_is_matceed && !J_pre_is_mffd && J != J_pre) { in FormIJacobian_NS() [all …]
|
| /libCEED/tests/ |
| H A D | junit_common.py | 34 if not issubclass(type, Enum): 38 if isinstance(default, self.enum_type): 50 if isinstance(values, self.enum_type): 182 … """Check if a test case should be skipped prior to running, returning the reason for skipping 191 Optional[str]: Skip reason, or `None` if test case should not be skipped 196 """Check if a test case should be allowed to fail, based on its stderr output 205 Optional[str]: Skip reason, or `None` if unexpected error 210 """Check whether a test case is expected to fail and if it failed expectedly 230 bool: True if the test is allowed to print console output 239 bool: True if `cgnsdiff` is found [all …]
|
| H A D | t407-qfunction.c | 39 …if (num_fields != 3) printf("Incorrect number of fields set: %" CeedInt_FMT " != 2\n", num_fields); in main() 46 …if (strcmp(name, "time")) printf("Incorrect context field description for time: \"%s\" != \"time\"… in main() 47 …if (num_values != 1) printf("Incorrect context field number of values for time: \"%zu\" != 1\n", n… in main() 48 if (type != CEED_CONTEXT_FIELD_DOUBLE) { in main() 56 …if (strcmp(name, "count")) printf("Incorrect context field description for count: \"%s\" != \"coun… in main() 57 …if (num_values != 2) printf("Incorrect context field number of values for count: \"%zu\" != 2\n", … in main() 58 if (type != CEED_CONTEXT_FIELD_INT32) { in main() 66 …if (strcmp(name, "is set")) printf("Incorrect context field description for count: \"%s\" != \"cou… in main() 67 …if (num_values != 1) printf("Incorrect context field number of values for count: \"%zu\" != 2\n", … in main() 68 if (type != CEED_CONTEXT_FIELD_BOOL) { in main() [all …]
|
| H A D | junit.py | 53 if prefix == 'rustqfunctions': 55 if prefix == 'petsc': 68 if test.endswith('-f'): 102 … """Check if a test case should be skipped prior to running, returning the reason for skipping 111 Optional[str]: Skip reason, or `None` if test case should not be skipped 113 if test.startswith('t318') and contains_any(resource, ['/gpu/cuda/ref']): 115 if test.startswith('t506') and contains_any(resource, ['/gpu/cuda/shared']): 118 if (condition == 'cpu') and ('gpu' in resource): 122 """Check if a test case should be allowed to fail, based on its stderr output 131 Optional[str]: Skip reason, or `None` if unexpeced error [all …]
|
| /libCEED/interface/ |
| H A D | ceed-fortran.c | 38 #if __GNUC__ >= 8 56 …if (Splice(stringname, _len) > 1023) *err = CeedError(NULL, 1, "Fortran string length too long %zd… 66 if (Ceed_count == Ceed_count_max) { in fCeedInit() 74 if (*err == 0) { in fCeedInit() 96 if (*ceed == FORTRAN_NULL) return; in fCeedDestroy() 99 if (*err == 0) { in fCeedDestroy() 102 if (Ceed_n == 0) { in fCeedDestroy() 120 if (CeedVector_count == CeedVector_count_max) { in fCeedVectorCreate() 128 if (*err == 0) { in fCeedVectorCreate() 206 if (*vec == FORTRAN_NULL) return; in fCeedVectorDestroy() [all …]
|
| H A D | ceed-operator.c | 25 @brief Check if a `CeedOperator` Field matches the `CeedQFunction` Field 47 if (rstr != CEED_ELEMRESTRICTION_NONE) { in CeedOperatorCheckField() 53 if (basis != CEED_BASIS_NONE) { in CeedOperatorCheckField() 118 if (basis == CEED_BASIS_NONE) fprintf(stream, "%s No basis\n", tabs); in CeedOperatorFieldView() 119 if (vec == CEED_VECTOR_ACTIVE) fprintf(stream, "%s Active vector\n", tabs); in CeedOperatorFieldView() 120 else if (vec == CEED_VECTOR_NONE) fprintf(stream, "%s No vector\n", tabs); in CeedOperatorFieldView() 154 if (is_at_points) { in CeedOperatorSingleView() 244 if (active_input_basis) { in CeedOperatorGetActiveBases() 246 if (!is_composite) { in CeedOperatorGetActiveBases() 251 if (vec == CEED_VECTOR_ACTIVE) { in CeedOperatorGetActiveBases() [all …]
|
| H A D | ceed-preconditioning.c | 42 // Check if NULL qf passed in in CeedQFunctionCreateFallback() 43 if (!qf) return CEED_ERROR_SUCCESS; in CeedQFunctionCreateFallback() 47 if (qf->source_path) { in CeedQFunctionCreateFallback() 54 } else if (qf->user_source) { in CeedQFunctionCreateFallback() 111 if (op->op_fallback) return CEED_ERROR_SUCCESS; in CeedOperatorCreateFallback() 117 if (!ceed_fallback) return CEED_ERROR_SUCCESS; in CeedOperatorCreateFallback() 123 if (is_composite) { in CeedOperatorCreateFallback() 146 if (is_at_points) { in CeedOperatorCreateFallback() 257 if (num_active_bases_in <= num_active_bases_out) { in CeedOperatorLinearAssembleAddDiagonalSingle_Mesh() 260 if (active_bases_in[b_in] == active_bases_out[b_out]) { in CeedOperatorLinearAssembleAddDiagonalSingle_Mesh() [all …]
|
| /libCEED/backends/hip-gen/ |
| H A D | ceed-hip-gen-operator.c | 30 if (is_composite) { in CeedOperatorDestroy_Hip_gen() 35 if (impl->streams[i]) CeedCallHip(ceed, hipStreamDestroy(impl->streams[i])); in CeedOperatorDestroy_Hip_gen() 39 if (impl->module) CeedCallHip(ceed, hipModuleUnload(impl->module)); in CeedOperatorDestroy_Hip_gen() 40 if (impl->module_assemble_full) CeedCallHip(ceed, hipModuleUnload(impl->module_assemble_full)); in CeedOperatorDestroy_Hip_gen() 41 …if (impl->module_assemble_diagonal) CeedCallHip(ceed, hipModuleUnload(impl->module_assemble_diagon… in CeedOperatorDestroy_Hip_gen() 42 …if (impl->module_assemble_qfunction) CeedCallHip(ceed, hipModuleUnload(impl->module_assemble_qfunc… in CeedOperatorDestroy_Hip_gen() 43 if (impl->points.num_per_elem) CeedCallHip(ceed, hipFree((void **)impl->points.num_per_elem)); in CeedOperatorDestroy_Hip_gen() 66 if (!(*is_run_good)) return CEED_ERROR_SUCCESS; in CeedOperatorApplyAddCore_Hip_gen() 79 if (eval_mode == CEED_EVAL_WEIGHT) { // Skip in CeedOperatorApplyAddCore_Hip_gen() 88 if (is_active) data->fields.inputs[i] = input_arr; in CeedOperatorApplyAddCore_Hip_gen() [all …]
|
| /libCEED/ |
| H A D | Doxyfile | 48 # could be handy for archiving the generated documentation or if some version 67 # into which the generated documentation will be written. If a relative path is 68 # entered, it will be relative to the location where doxygen was started. If 73 # If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096 95 # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII 96 # characters to appear in the names of generated files. If set to NO, non-ASCII 118 # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member 125 # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief 128 # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 135 # used to form the text in various listings. Each string in this list, if found [all …]
|
| /libCEED/backends/cuda-gen/ |
| H A D | ceed-cuda-gen-operator.c | 30 if (impl->module) CeedCallCuda(ceed, cuModuleUnload(impl->module)); in CeedOperatorDestroy_Cuda_gen() 31 if (impl->module_assemble_full) CeedCallCuda(ceed, cuModuleUnload(impl->module_assemble_full)); in CeedOperatorDestroy_Cuda_gen() 32 …if (impl->module_assemble_diagonal) CeedCallCuda(ceed, cuModuleUnload(impl->module_assemble_diagon… in CeedOperatorDestroy_Cuda_gen() 33 …if (impl->module_assemble_qfunction) CeedCallCuda(ceed, cuModuleUnload(impl->module_assemble_qfunc… in CeedOperatorDestroy_Cuda_gen() 34 if (impl->points.num_per_elem) CeedCallCuda(ceed, cudaFree((void **)impl->points.num_per_elem)); in CeedOperatorDestroy_Cuda_gen() 72 // If instead, we had packed 3 elements, we'd have 3*49=147 useful threads occupying 160 slots, and… 87 if (i_waste < waste || (i_waste == waste && threads_per_elem * i <= 128)) { in BlockGridCalculate() 120 if (!(*is_run_good)) return CEED_ERROR_SUCCESS; in CeedOperatorApplyAddCore_Cuda_gen() 134 if (eval_mode == CEED_EVAL_WEIGHT) { // Skip in CeedOperatorApplyAddCore_Cuda_gen() 143 if (is_active) data->fields.inputs[i] = input_arr; in CeedOperatorApplyAddCore_Cuda_gen() [all …]
|
| /libCEED/benchmarks/ |
| H A D | postprocess_plot.py | 22 legend_ncol = (2 if log_y else 1) # number of columns in the legend 30 if not show_figures: 50 if 'CEED Benchmark Problem' in test: 59 vdim = 1 if case == 'scalar' else 3 85 if len(pl_runs.index) == 0: 107 d = [[e[2], e[3]] for e in d if e[0] == sol_p] 110 min([e[1] for e in d if e[0] == nun]), 111 max([e[1] for e in d if e[0] == nun])] 117 if list(d[:, 1]) != list(d[:, 2]): 121 # Continue if only 1 set of qpts [all …]
|
| /libCEED/examples/nek/ |
| H A D | nek-examples.sh | 47 # Exit if being sourced 48 if [[ "${#BASH_ARGV[@]}" -ne "$#" ]]; then 63 # Won't work if there is a symlink. 142 if [[ ! -d build ]]; then 147 if [[ ! -f build/makenek ]]; then 155 if [[ ! -f build/SIZE ]]; then 167 if [ ! -f ./nek5000 ]; then 180 if [ ${nek_verbose} = "true" ]; then 185 if [[ -f ./build/makenek ]]; then 211 if [ $((prod%3)) -ne 0 ]; then [all …]
|
| /libCEED/backends/sycl/ |
| H A D | online_compiler.sycl.cpp | 20 // TODO: Check if the option RTLD_NOW is correct. Explore using in loadOsLibrary() 23 if (!so) { in loadOsLibrary() 33 // if (!Library) 44 if (DeviceType == sycl::info::device_type::gpu) { in prepareOclocArgs() 71 if (DeviceStepping != "") { in prepareOclocArgs() 78 if (UserArgs != "") { in prepareOclocArgs() 91 /// @param Is64Bit - If set to true, specifies the 64-bit architecture. 103 if (!CompileToSPIRVHandle) { in compileToSPIRV() 110 if (!OclocLibrary) throw online_compile_error("Cannot load ocloc library: " + OclocLibraryName); in compileToSPIRV() 116 if (OclocVersionHandle) { in compileToSPIRV() [all …]
|
| /libCEED/examples/ceed/ |
| H A D | ex1-volume-f.f90 | 66 if (r > 0) then 69 end if 149 if (q_data_restriction /= ceed_qfunction_none) then 152 end if 342 if (prob_size < 0) then 343 if (test == 1) then 347 end if 348 end if 351 if ((test /= 1) .OR. (help == 1)) then 360 if (gallery == 1) then [all …]
|
| /libCEED/include/ceed/jit-source/cuda/ |
| H A D | cuda-shared-basis-tensor-at-points.h | 47 if (BASIS_DIM == 1) { in InterpAtPoints() 50 } else if (BASIS_DIM == 2) { in InterpAtPoints() 53 } else if (BASIS_DIM == 3) { in InterpAtPoints() 66 if (BASIS_DIM == 1) { in InterpAtPoints() 68 } else if (BASIS_DIM == 2) { in InterpAtPoints() 70 } else if (BASIS_DIM == 3) { in InterpAtPoints() 107 if (BASIS_DIM == 1) { in InterpTransposeAtPoints() 109 } else if (BASIS_DIM == 2) { in InterpTransposeAtPoints() 111 } else if (BASIS_DIM == 3) { in InterpTransposeAtPoints() 124 if (BASIS_DIM == 1) { in InterpTransposeAtPoints() [all …]
|
| /libCEED/include/ceed/jit-source/hip/ |
| H A D | hip-shared-basis-tensor-at-points.h | 48 if (BASIS_DIM == 1) { in __launch_bounds__() 51 } else if (BASIS_DIM == 2) { in __launch_bounds__() 54 } else if (BASIS_DIM == 3) { in __launch_bounds__() 67 if (BASIS_DIM == 1) { in __launch_bounds__() 69 } else if (BASIS_DIM == 2) { in __launch_bounds__() 71 } else if (BASIS_DIM == 3) { in __launch_bounds__() 108 if (BASIS_DIM == 1) { in __launch_bounds__() 110 } else if (BASIS_DIM == 2) { in __launch_bounds__() 112 } else if (BASIS_DIM == 3) { in __launch_bounds__() 125 if (BASIS_DIM == 1) { in __launch_bounds__() [all …]
|
| /libCEED/backends/hip-ref/ |
| H A D | ceed-hip-ref-operator.c | 59 if (impl->diag) { in CeedOperatorDestroy_Hip() 63 if (impl->diag->module) { in CeedOperatorDestroy_Hip() 66 if (impl->diag->module_point_block) { in CeedOperatorDestroy_Hip() 88 if (impl->asmb) { in CeedOperatorDestroy_Hip() 113 if (is_input) { in CeedOperatorSetupFields_Hip() 141 if (!skip_e_vec && is_input && !is_active && eval_mode == CEED_EVAL_NONE) { in CeedOperatorSetupFields_Hip() 143 if (is_strided) CeedCallBackend(CeedElemRestrictionHasBackendStrides(elem_rstr, &skip_e_vec)); in CeedOperatorSetupFields_Hip() 145 if (skip_e_vec) { in CeedOperatorSetupFields_Hip() 168 if (is_at_points) { in CeedOperatorSetupFields_Hip() 183 if (is_input) { in CeedOperatorSetupFields_Hip() [all …]
|
| /libCEED/backends/cuda-ref/ |
| H A D | ceed-cuda-ref-operator.c | 60 if (impl->diag) { in CeedOperatorDestroy_Cuda() 64 if (impl->diag->module) { in CeedOperatorDestroy_Cuda() 67 if (impl->diag->module_point_block) { in CeedOperatorDestroy_Cuda() 89 if (impl->asmb) { in CeedOperatorDestroy_Cuda() 114 if (is_input) { in CeedOperatorSetupFields_Cuda() 142 if (!skip_e_vec && is_input && !is_active && eval_mode == CEED_EVAL_NONE) { in CeedOperatorSetupFields_Cuda() 144 if (is_strided) CeedCallBackend(CeedElemRestrictionHasBackendStrides(elem_rstr, &skip_e_vec)); in CeedOperatorSetupFields_Cuda() 146 if (skip_e_vec) { in CeedOperatorSetupFields_Cuda() 169 if (is_at_points) { in CeedOperatorSetupFields_Cuda() 184 if (is_input) { in CeedOperatorSetupFields_Cuda() [all …]
|
| /libCEED/examples/python/ |
| H A D | ex1_volume.py | 44 …problem_size = args.problem_size if args.problem_size > 0 else (8 * 16 if args.test else 256 * 102… 48 if not args.quiet: 56 print(f" QFunction source [-g] : {'gallery' if args.gallery else 'user'}") 73 if not args.quiet: 75 if dim > 1: 77 if dim > 2: 88 if not args.quiet: 99 if args.gallery: 128 if args.gallery: 165 if not args.test: [all …]
|
| /libCEED/backends/hip-shared/ |
| H A D | ceed-hip-shared-basis.c | 28 if (currentSize > required) break; in ComputeBlockSizeFromRequirement() 107 if (u != CEED_VECTOR_NONE) CeedCallBackend(CeedVectorGetArrayRead(u, CEED_MEM_DEVICE, &d_u)); in CeedBasisApplyTensorCore_Hip_shared() 109 if (apply_add) { in CeedBasisApplyTensorCore_Hip_shared() 127 if (dim == 1) { in CeedBasisApplyTensorCore_Hip_shared() 133 if (t_mode == CEED_TRANSPOSE) { in CeedBasisApplyTensorCore_Hip_shared() 139 } else if (dim == 2) { in CeedBasisApplyTensorCore_Hip_shared() 140 // Check if required threads is small enough to do multiple elems in CeedBasisApplyTensorCore_Hip_shared() 145 if (t_mode == CEED_TRANSPOSE) { in CeedBasisApplyTensorCore_Hip_shared() 151 } else if (dim == 3) { in CeedBasisApplyTensorCore_Hip_shared() 156 if (t_mode == CEED_TRANSPOSE) { in CeedBasisApplyTensorCore_Hip_shared() [all …]
|
| /libCEED/python/ |
| H A D | build_ceed_cffi.py | 16 # Checks to see if a c line is part of the lines we have to exclude (macros) 18 if (line.startswith("#") and not line.startswith("#include")): 20 if (line.startswith("#include \"deprecated.h\"")): 22 if (line.startswith(" CEED_QFUNCTION_ATTR")): 24 if (line.startswith(" static const char")): 26 if (line.endswith('\\\n')): 28 if ("CeedErrorImpl" in line): 30 if (r'const char *, ...);' in line): 32 if (line.startswith("CEED_EXTERN const char *const")): 34 if (ceed_version_ge.match(line)): [all …]
|
| /libCEED/backends/sycl-gen/ |
| H A D | ceed-sycl-gen-operator.sycl.cpp | 47 // -- Fallback to ref if not all bases are tensor-product in CeedOperatorApplyAdd_Sycl_gen() 48 if (!has_tensor_bases) { in CeedOperatorApplyAdd_Sycl_gen() 73 if (eval_mode == CEED_EVAL_WEIGHT) { // Skip in CeedOperatorApplyAdd_Sycl_gen() 82 if (is_active) vec = input_vec; in CeedOperatorApplyAdd_Sycl_gen() 84 if (!is_active) CeedCallBackend(CeedVectorDestroy(&vec)); in CeedOperatorApplyAdd_Sycl_gen() 91 if (eval_mode == CEED_EVAL_WEIGHT) { // Skip in CeedOperatorApplyAdd_Sycl_gen() 100 if (is_active) vec = output_vec; in CeedOperatorApplyAdd_Sycl_gen() 105 if (vec == output_vecs[j]) { in CeedOperatorApplyAdd_Sycl_gen() 110 if (index == -1) { in CeedOperatorApplyAdd_Sycl_gen() 115 if (!is_active) CeedCallBackend(CeedVectorDestroy(&vec)); in CeedOperatorApplyAdd_Sycl_gen() [all …]
|