Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 33) sorted by relevance

12

/libCEED/examples/python/
H A Dex_test.py19 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 Dex3_volume.py26 args = common.parse_arguments()
27 example_3(args)
30 def example_3(args): argument
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…
48 if not args.quiet:
59 if args.gallery:
[all …]
H A Dex1_volume.py26 args = common.parse_arguments()
27 return example_1(args)
30 def example_1(args): argument
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…
48 if not args.quiet:
59 ceed = libceed.Ceed(args.ceed)
[all …]
H A Dex2_surface.py26 args = common.parse_arguments()
27 return example_2(args)
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 …
49 if not args.quiet:
60 ceed = libceed.Ceed(args.ceed)
[all …]
/libCEED/examples/mfem/
H A Dbp1.cpp61 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()
66args.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 Dbp3.cpp83 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()
88args.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/hip/
H A Dceed-hip-compile.cpp37 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 Dceed-hip-compile.h20 …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/julia/LibCEED.jl/src/
H A DUserQFunction.jl136 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 DCuda.jl23 @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...))
H A DCeedVector.jl160 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 …]
/libCEED/tests/
H A Djunit.py199 args = create_argparser().parse_args() variable
202 args.test,
203 args.ceed_backends,
204 args.mode,
205 args.nproc,
207 args.pool_size,
208 search=args.search,
209 verbose=args.verbose)
212 if args.mode is RunMode.JUNIT:
213 write_junit_xml(result, args.junit_batch)
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref-restriction.c154 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 …]
H A Dceed-cuda-ref-qfunction.c48 void *args[] = {&data->d_c, (void *)&Q, &data->fields}; in CeedQFunctionApply_Cuda() local
49 CeedCallBackend(CeedRunKernelAutoblockCuda(ceed, data->QFunction, Q, args)); in CeedQFunctionApply_Cuda()
/libCEED/backends/hip-ref/
H A Dceed-hip-ref-restriction.c155 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 …]
H A Dceed-hip-ref-qfunction.c49 void *args[] = {&data->d_c, (void *)&Q, &data->fields}; in CeedQFunctionApply_Hip() local
51 …llBackend(CeedRunKernel_Hip(ceed, data->QFunction, CeedDivUpInt(Q, block_size), block_size, args)); in CeedQFunctionApply_Hip()
/libCEED/backends/cuda/
H A Dceed-cuda-compile.cpp72 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 …]
H A Dceed-cuda-compile.h20 …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);
/libCEED/examples/fluids/
H A Dconv_test.sh48 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 "%…
H A Dconv_plot.py33 args = parser.parse_args()
34 conv_result_file = args.conv_result_file
/libCEED/julia/LibCEED.jl/gen/
H A Dgenerator.jl13 args = get_default_args()
14 push!(args, "-I$include_dir")
17 ctx = create_context(headers, args, options)
/libCEED/backends/magma/tuning/
H A Dgenerate_tuning.py94 args = parser.parse_args() variable
97 while nb <= args.max_nb:
100 data_nb = benchmark(nb, args.build_cmd, args.ceed,
/libCEED/examples/solids/
H A DMakefile74 tests-output/NH-strain.csv: args = -problem FSInitial-NH1 -E 2.8 -nu 0.4 macro
75 tests-output/MR-strain.csv: args = -problem FSInitial-MR1 -mu_1 1 -mu_2 0.0 -nu .4 macro
76 tests-output/MR-strain1.csv: args = -problem FSInitial-MR1 -mu_1 .5 -mu_2 0.5 -nu .4 macro
79 …./$< $(args) -degree 2 -dm_plex_box_faces 3,3,3 -num_steps 15 -bc_clamp 6 -bc_traction 5 -bc_trac…
/libCEED/interface/
H A Dceed.c254 va_list args; in CeedDebugImpl256() local
255 va_start(args, format); in CeedDebugImpl256()
258 vfprintf(stdout, format, args); in CeedDebugImpl256()
262 va_end(args); in CeedDebugImpl256()
1696 const char *CeedErrorFormat(Ceed ceed, const char *format, va_list *args) { in CeedErrorFormat() argument
1697 if (ceed->parent) return CeedErrorFormat(ceed->parent, format, args); in CeedErrorFormat()
1699 vsnprintf(ceed->err_msg, CEED_MAX_RESOURCE_LEN, format, *args); // NOLINT in CeedErrorFormat()
1712 va_list args; in CeedErrorImpl() local
1715 va_start(args, format); in CeedErrorImpl()
1717 ret_val = ceed->Error(ceed, filename, lineno, func, ecode, format, &args); in CeedErrorImpl()
[all …]
/libCEED/backends/magma/
H A Dceed-magma-basis.c117 …void *args[] = {&impl->d_interp_1d, &d_u, &u_elem_stride, &u_comp_stride, &d_v, &v_elem_stride, … in CeedBasisApplyCore_Magma() local
121 num_t_col, 1, shared_mem, args)); in CeedBasisApplyCore_Magma()
123 …KernelDimSharedMagma(ceed, impl->Interp, NULL, grid, num_threads, num_t_col, 1, shared_mem, args)); in CeedBasisApplyCore_Magma()
194 …void *args[] = {&impl->d_interp_1d, &impl->d_grad_1d, &d_u, &u_elem_stride, &u_comp_str… in CeedBasisApplyCore_Magma() local
199 num_t_col, 1, shared_mem, args)); in CeedBasisApplyCore_Magma()
201 …unKernelDimSharedMagma(ceed, impl->Grad, NULL, grid, num_threads, num_t_col, 1, shared_mem, args)); in CeedBasisApplyCore_Magma()
231 void *args[] = {&impl->d_q_weight_1d, &d_v, &elem_dofs_size, &num_elem}; in CeedBasisApplyCore_Magma() local
233 …KernelDimSharedMagma(ceed, impl->Weight, NULL, grid, num_threads, num_t_col, 1, shared_mem, args)); in CeedBasisApplyCore_Magma()
430 void *args[] = {&N, &d_b, &d_u, &d_v}; in CeedBasisApplyNonTensorCore_Magma() local
432 …lBackend(CeedRunKernelDimSharedMagma(ceed, Kernel, NULL, grid, M, num_t_col, 1, shared_mem, args)); in CeedBasisApplyNonTensorCore_Magma()
[all …]

12