| /libCEED/examples/python/ |
| H A D | ex1_volume.py | 26 args = common.parse_arguments() 27 return example_1(args) 30 def example_1(args): argument 33 Args: 34 args: Parsed command line arguments 40 dim = args.dim 41 mesh_degree = max(args.mesh_degree, args.solution_degree) 42 sol_degree = args.solution_degree 43 num_qpts = args.quadrature_points 44 …problem_size = args.problem_size if args.problem_size > 0 else (8 * 16 if args.test else 256 * 102… [all …]
|
| H A D | ex_test.py | 19 args = Namespace( 30 ex1_volume.example_1(args) 36 args = Namespace( 47 ex1_volume.example_1(args) 53 args = Namespace( 64 ex1_volume.example_1(args) 70 args = Namespace( 81 ex1_volume.example_1(args) 87 args = Namespace( 98 ex1_volume.example_1(args) [all …]
|
| H A D | ex3_volume.py | 26 args = common.parse_arguments() 27 example_3(args) 30 def example_3(args): argument 33 Args: 34 args: Parsed command line arguments 40 dim = args.dim 41 mesh_degree = max(args.mesh_degree, args.solution_degree) 42 sol_degree = args.solution_degree 43 num_qpts = args.quadrature_points 44 …problem_size = args.problem_size if args.problem_size > 0 else (8 * 16 if args.test else 256 * 102… [all …]
|
| H A D | ex2_surface.py | 26 args = common.parse_arguments() 27 return example_2(args) 33 Args: 34 args: Parsed command line arguments 40 args = options 41 dim = args.dim 42 mesh_degree = max(args.mesh_degree, args.solution_degree) 43 sol_degree = args.solution_degree 44 num_qpts = args.quadrature_points 45 …problem_size = args.problem_size if args.problem_size > 0 else (500 * dim * dim if args.test else … [all …]
|
| H A D | ex_common.py | 53 args = parser.parse_args() 54 if args.dim not in [1, 2, 3]: 56 return args 62 Args: 94 Args: 159 Args: 198 Args:
|
| /libCEED/julia/LibCEED.jl/src/ |
| H A D | UserQFunction.jl | 136 function meta_user_qfunction(ceed, def_module, qf, args) argument 146 for a ∈ args[1:end-1] 148 a1 = Meta.quot(a.args[1]) 149 a2 = esc(a.args[2]) 152 arr_name = a.args[1] 153 inout = a.args[2].value 154 ndim = length(a.args) - 3 157 dims[d] = :(Int($(a.args[d+3]))) 159 dims_expr = :(Int[$(esc.(a.args[4:end])...)]) 170 ctx = (name=a.args[1], type=a.args[2]) [all …]
|
| H A D | CeedVector.jl | 160 function witharray_parse(assignment, args) argument 164 arr = assignment.args[1] 165 v = assignment.args[2] 168 body = args[end] 169 for i = 1:length(args)-1 170 a = args[i] 174 if a.args[1] == :mtype 175 mtype = a.args[2] 176 elseif a.args[1] == :size 177 sz = esc(a.args[2]) [all …]
|
| H A D | Cuda.jl | 23 @inline function Cassette.overdub(::CeedCudaContext, ::typeof(Core.apply_type), args...) argument 24 return Core.apply_type(args...) 67 args = Vector{Union{Symbol,Expr}}(undef, ninputs + noutputs) 74 args[i] = f_ins[i] 79 args[i] = :(LibCEED.SArray{Tuple{$(dims_in[i]...)},CeedScalar}($(f_ins[i]))) 83 args[ninputs+i] = f_outs[i] 139 LibCEED.Cassette.overdub(ctx, $kf, ctx_ptr, $(args...))
|
| /libCEED/tests/ |
| H A D | junit.py | 46 Args: 81 Args: 92 Args: 104 Args: 124 Args: 150 Args: 189 Args: 199 args = create_argparser().parse_args() variable 202 args.test, 203 args.ceed_backends, [all …]
|
| H A D | junit_common.py | 69 args: List = field(default_factory=list) variable in TestSpec 91 Args: 103 Args: 115 Args: 175 Args: 184 Args: 198 Args: 212 Args: 226 Args: 253 Args: [all …]
|
| /libCEED/backends/sycl/ |
| H A D | online_compiler.sycl.cpp | 42 std::vector<const char *> Args = {"ocloc", "-q", "-spv_only", "-device"}; in prepareOclocArgs() local 47 Args.push_back("skl"); in prepareOclocArgs() 51 Args.push_back("cfl"); in prepareOclocArgs() 55 Args.push_back("icllp"); in prepareOclocArgs() 59 Args.push_back("tgllp"); in prepareOclocArgs() 63 Args.push_back("pvc"); in prepareOclocArgs() 68 Args.push_back("pvc"); in prepareOclocArgs() 72 Args.push_back("-revision_id"); in prepareOclocArgs() 73 Args.push_back(DeviceStepping.c_str()); in prepareOclocArgs() 76 Args.push_back(Is64Bit ? "-64" : "-32"); in prepareOclocArgs() [all …]
|
| /libCEED/backends/hip/ |
| H A D | ceed-hip-compile.cpp | 37 const CeedInt num_defines, va_list args) { in CeedCompileCore_Hip() argument 70 name = va_arg(args, char *); in CeedCompileCore_Hip() 71 val = va_arg(args, int); in CeedCompileCore_Hip() 180 va_list args; in CeedCompile_Hip() local 182 va_start(args, num_defines); in CeedCompile_Hip() 183 …eedInt ierr = CeedCompileCore_Hip(ceed, source, true, &is_compile_good, module, num_defines, args); in CeedCompile_Hip() 185 va_end(args); in CeedCompile_Hip() 191 va_list args; in CeedTryCompile_Hip() local 193 va_start(args, num_defines); in CeedTryCompile_Hip() 194 …eedInt ierr = CeedCompileCore_Hip(ceed, source, false, is_compile_good, module, num_defines, args); in CeedTryCompile_Hip() [all …]
|
| H A D | ceed-hip-compile.h | 20 …int CeedRunKernel_Hip(Ceed ceed, hipFunction_t kernel, int grid_size, int block_size, void **args); 23 void **args); 26 int block_size_z, int shared_mem_size, void **args); 28 … int block_size_z, int shared_mem_size, bool *is_good_run, void **args);
|
| /libCEED/backends/cuda-ref/ |
| H A D | ceed-cuda-ref-restriction.c | 154 void *args[] = {&d_u, &d_v}; in CeedElemRestrictionApply_Cuda_Core() local 156 CeedCallBackend(CeedRunKernel_Cuda(ceed, impl->ApplyNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Cuda_Core() 160 void *args[] = {&impl->d_offsets, &d_u, &d_v}; in CeedElemRestrictionApply_Cuda_Core() local 162 CeedCallBackend(CeedRunKernel_Cuda(ceed, impl->ApplyNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Cuda_Core() 166 void *args[] = {&impl->d_offsets, &impl->d_orients, &d_u, &d_v}; in CeedElemRestrictionApply_Cuda_Core() local 168 CeedCallBackend(CeedRunKernel_Cuda(ceed, impl->ApplyNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Cuda_Core() 170 void *args[] = {&impl->d_offsets, &d_u, &d_v}; in CeedElemRestrictionApply_Cuda_Core() local 172 … CeedCallBackend(CeedRunKernel_Cuda(ceed, impl->ApplyUnsignedNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Cuda_Core() 177 void *args[] = {&impl->d_offsets, &impl->d_curl_orients, &d_u, &d_v}; in CeedElemRestrictionApply_Cuda_Core() local 179 CeedCallBackend(CeedRunKernel_Cuda(ceed, impl->ApplyNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Cuda_Core() [all …]
|
| /libCEED/backends/hip-ref/ |
| H A D | ceed-hip-ref-restriction.c | 155 void *args[] = {&d_u, &d_v}; in CeedElemRestrictionApply_Hip_Core() local 157 CeedCallBackend(CeedRunKernel_Hip(ceed, impl->ApplyNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Hip_Core() 161 void *args[] = {&impl->d_offsets, &d_u, &d_v}; in CeedElemRestrictionApply_Hip_Core() local 163 CeedCallBackend(CeedRunKernel_Hip(ceed, impl->ApplyNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Hip_Core() 167 void *args[] = {&impl->d_offsets, &impl->d_orients, &d_u, &d_v}; in CeedElemRestrictionApply_Hip_Core() local 169 CeedCallBackend(CeedRunKernel_Hip(ceed, impl->ApplyNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Hip_Core() 171 void *args[] = {&impl->d_offsets, &d_u, &d_v}; in CeedElemRestrictionApply_Hip_Core() local 173 … CeedCallBackend(CeedRunKernel_Hip(ceed, impl->ApplyUnsignedNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Hip_Core() 178 void *args[] = {&impl->d_offsets, &impl->d_curl_orients, &d_u, &d_v}; in CeedElemRestrictionApply_Hip_Core() local 180 CeedCallBackend(CeedRunKernel_Hip(ceed, impl->ApplyNoTranspose, grid, block_size, args)); in CeedElemRestrictionApply_Hip_Core() [all …]
|
| /libCEED/examples/mfem/ |
| H A D | bp1.cpp | 61 mfem::OptionsParser args(argc, argv); in main() local 62 args.AddOption(&ceed_spec, "-c", "-ceed", "Ceed specification."); in main() 63 args.AddOption(&mesh_file, "-m", "--mesh", "Mesh file to use."); in main() 64 args.AddOption(&order, "-o", "--order", "Finite element order (polynomial degree)."); in main() 65 args.AddOption(&max_nnodes, "-s", "--size", "Maximum size (number of DoFs)"); in main() 66 …args.AddOption(&visualization, "-vis", "--visualization", "-no-vis", "--no-visualization", "Enable… in main() 67 args.AddOption(&test, "-t", "--test", "-no-test", "--no-test", "Enable or disable test mode."); in main() 68 args.Parse(); in main() 69 if (!args.Good()) { in main() 70 args.PrintUsage(std::cout); in main() [all …]
|
| H A D | bp3.cpp | 83 mfem::OptionsParser args(argc, argv); in main() local 84 args.AddOption(&ceed_spec, "-c", "-ceed", "Ceed specification."); in main() 85 args.AddOption(&mesh_file, "-m", "--mesh", "Mesh file to use."); in main() 86 args.AddOption(&order, "-o", "--order", "Finite element order (polynomial degree)."); in main() 87 args.AddOption(&max_nnodes, "-s", "--size", "Maximum size (number of DoFs)"); in main() 88 …args.AddOption(&visualization, "-vis", "--visualization", "-no-vis", "--no-visualization", "Enable… in main() 89 args.AddOption(&test, "-t", "--test", "-no-test", "--no-test", "Enable or disable test mode."); in main() 90 args.Parse(); in main() 91 if (!args.Good()) { in main() 92 args.PrintUsage(std::cout); in main() [all …]
|
| /libCEED/backends/cuda/ |
| H A D | ceed-cuda-compile.h | 20 …N int CeedRunKernel_Cuda(Ceed ceed, CUfunction kernel, int grid_size, int block_size, void **args); 22 CEED_INTERN int CeedRunKernelAutoblockCuda(Ceed ceed, CUfunction kernel, size_t points, void **args… 24 …function kernel, int grid_size, int block_size_x, int block_size_y, int block_size_z, void **args); 27 int block_size_z, int shared_mem_size, void **args); 29 … int block_size_z, int shared_mem_size, bool *is_good_run, void **args);
|
| H A D | ceed-cuda-compile.cpp | 72 const CeedInt num_defines, va_list args) { in CeedCompileCore_Cuda() argument 100 name = va_arg(args, char *); in CeedCompileCore_Cuda() 101 val = va_arg(args, int); in CeedCompileCore_Cuda() 409 va_list args; in CeedCompile_Cuda() local 411 va_start(args, num_defines); in CeedCompile_Cuda() 412 …edInt ierr = CeedCompileCore_Cuda(ceed, source, true, &is_compile_good, module, num_defines, args); in CeedCompile_Cuda() 414 va_end(args); in CeedCompile_Cuda() 420 va_list args; in CeedTryCompile_Cuda() local 422 va_start(args, num_defines); in CeedTryCompile_Cuda() 423 …edInt ierr = CeedCompileCore_Cuda(ceed, source, false, is_compile_good, module, num_defines, args); in CeedTryCompile_Cuda() [all …]
|
| /libCEED/backends/magma/tuning/ |
| H A D | generate_tuning.py | 94 args = parser.parse_args() variable 97 while nb <= args.max_nb: 100 data_nb = benchmark(nb, args.build_cmd, args.ceed, 103 … f"Finished benchmarks for NB = {nb}, backend = {args.ceed} ({time.perf_counter() - start} s)") 123 with open(f"{script_dir}/{args.arch}_rtc.h", "w") as f: 126 f.write(f"// auto-generated from data on {args.arch}\n\n") 133 f"std::vector<std::array<int, RECORD_LENGTH_RTC> > drtc_t_{args.arch}" + 147 f"std::vector<std::array<int, RECORD_LENGTH_RTC> > drtc_n_{args.arch}" +
|
| /libCEED/python/ |
| H A D | ceed_operator.py | 57 Args: 70 Args: 84 Args: 100 Args: 115 Args: 126 Args: 142 Args: 159 Args: 195 Args: 239 Args: [all …]
|
| H A D | ceed.py | 121 Args: 153 Args: 187 Args: 200 Args: 229 Args: 262 Args: 294 Args: 318 Args: 349 Args: 386 Args: [all …]
|
| H A D | ceed_vector.py | 65 Args: 77 Args: 108 Args: 153 Args: 201 Args: 269 Args: 294 Args: 320 Args: 375 Args: 386 Args: [all …]
|
| /libCEED/julia/LibCEED.jl/gen/ |
| H A D | generator.jl | 13 args = get_default_args() 14 push!(args, "-I$include_dir") 17 ctx = create_context(headers, args, options)
|
| /libCEED/examples/fluids/ |
| H A D | conv_test.sh | 48 args='' 51 args="$args -$arg ${run_flags[$arg]}" 54 …./navierstokes $args | grep "Relative Error:" | awk -v i="$i" -v res="$res" -v d="$d" '{ printf "%…
|