Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 29) sorted by relevance

12

/libCEED/backends/ref/
H A Dceed-ref-restriction.c20 … const CeedInt start, const CeedInt stop, const CeedInt num_elem, in CeedElemRestrictionApplyStridedNoTranspose_Ref_Core() argument
30 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyStridedNoTranspose_Ref_Core()
45 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyStridedNoTranspose_Ref_Core()
60 … const CeedInt comp_stride, const CeedInt start, const CeedInt stop, in CeedElemRestrictionApplyOffsetNoTranspose_Ref_Core() argument
67 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyOffsetNoTranspose_Ref_Core()
78 … const CeedInt comp_stride, const CeedInt start, const CeedInt stop, in CeedElemRestrictionApplyOrientedNoTranspose_Ref_Core() argument
85 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyOrientedNoTranspose_Ref_Core()
97 … const CeedInt comp_stride, const CeedInt start, const CeedInt stop, in CeedElemRestrictionApplyCurlOrientedNoTranspose_Ref_Core() argument
104 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyCurlOrientedNoTranspose_Ref_Core()
140 … const CeedInt start, const CeedInt stop, const CeedInt num_elem, in CeedElemRestrictionApplyCurlOrientedUnsignedNoTranspose_Ref_Core() argument
[all …]
/libCEED/backends/cuda-ref/kernels/
H A Dcuda-ref-vector.cu14 __global__ static void copyStridedK(CeedScalar *__restrict__ vec, CeedSize start, CeedSize stop, Ce… in copyStridedK() argument
17 if (index < stop - start) { in copyStridedK()
18 if (index % step == 0) vec_copy[start + index] = vec[start + index]; in copyStridedK()
25 extern "C" int CeedDeviceCopyStrided_Cuda(CeedScalar *d_array, CeedSize start, CeedSize stop, CeedS… in CeedDeviceCopyStrided_Cuda() argument
27 const CeedSize copy_size = stop - start; in CeedDeviceCopyStrided_Cuda()
31 copyStridedK<<<grid_size, block_size>>>(d_array, start, stop, step, d_copy_array); in CeedDeviceCopyStrided_Cuda()
60 __global__ static void setValueStridedK(CeedScalar *__restrict__ vec, CeedSize start, CeedSize stop… in setValueStridedK() argument
63 if (index < stop - start) { in setValueStridedK()
64 if (index % step == 0) vec[start + index] = val; in setValueStridedK()
71 extern "C" int CeedDeviceSetValueStrided_Cuda(CeedScalar *d_array, CeedSize start, CeedSize stop, C… in CeedDeviceSetValueStrided_Cuda() argument
[all …]
/libCEED/tests/
H A Dt127-vector.c9 CeedSize start = 2, step = 3; in main() local
20 CeedVectorSetValueStrided(x, start, -1, step, 42.0); in main()
26 CeedScalar value = (i - start) % step == 0 ? 42.0 : 1.0; in main()
39 CeedVectorCopyStrided(x, start, -1, step, y); in main()
45 CeedScalar value = (i - start) % step == 0 ? 42.0 : 0.0; in main()
H A Djunit_common.py295 start: int = line.find(open)
296 if start < 0:
299 for i in range(start + 1, len(line)):
305 return start, i
306 return start, -1
324 start, end = find_matching(line)
325 if end < start:
328 keyvalues_str = line[start:end + 1]
626 start: float = time.time()
635 elapsed_sec=time.time() - start,
[all …]
/libCEED/backends/hip-ref/kernels/
H A Dhip-ref-vector.hip.cpp14 __global__ static void copyStridedK(CeedScalar *__restrict__ vec, CeedSize start, CeedSize step, Ce… in copyStridedK() argument
18 if ((index - start) % step == 0) vec_copy[index] = vec[index]; in copyStridedK()
25 extern "C" int CeedDeviceCopyStrided_Hip(CeedScalar *d_array, CeedSize start, CeedSize step, CeedSi… in CeedDeviceCopyStrided_Hip() argument
31 …hipLaunchKernelGGL(copyStridedK, dim3(grid_size), dim3(block_size), 0, 0, d_array, start, step, le… in CeedDeviceCopyStrided_Hip()
60 __global__ static void setValueStridedK(CeedScalar *__restrict__ vec, CeedSize start, CeedSize stop… in setValueStridedK() argument
63 if (index < stop - start) { in setValueStridedK()
64 if (index % step == 0) vec[start + index] = val; in setValueStridedK()
71 extern "C" int CeedDeviceSetValueStrided_Hip(CeedScalar *d_array, CeedSize start, CeedInt stop, Cee… in CeedDeviceSetValueStrided_Hip() argument
73 const CeedSize set_size = stop - start; in CeedDeviceSetValueStrided_Hip()
77 …hipLaunchKernelGGL(setValueStridedK, dim3(grid_size), dim3(block_size), 0, 0, d_array, start, stop… in CeedDeviceSetValueStrided_Hip()
/libCEED/backends/magma/tuning/
H A Dtuning.cpp75 const auto start = Clock::now(); in main() local
79 data_interp_n = std::chrono::duration_cast<Duration>(Clock::now() - start).count(); in main()
87 const auto start = Clock::now(); in main() local
91 data_interp_t = std::chrono::duration_cast<Duration>(Clock::now() - start).count(); in main()
108 const auto start = Clock::now(); in main() local
112 data_grad_n = std::chrono::duration_cast<Duration>(Clock::now() - start).count(); in main()
120 const auto start = Clock::now(); in main() local
124 data_grad_t = std::chrono::duration_cast<Duration>(Clock::now() - start).count(); in main()
H A Dgenerate_tuning.py99 start = time.perf_counter() variable
/libCEED/backends/memcheck/
H A Dceed-memcheck-restriction.c47 … CeedInt start, CeedInt stop, CeedInt num_elem, CeedInt elem_size, in CeedElemRestrictionApplyStridedNoTranspose_Memcheck_Core() argument
59 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyStridedNoTranspose_Memcheck_Core()
73 … const CeedInt comp_stride, CeedInt start, CeedInt stop, CeedInt num_elem, in CeedElemRestrictionApplyOffsetNoTranspose_Memcheck_Core() argument
80 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyOffsetNoTranspose_Memcheck_Core()
91 … const CeedInt block_size, const CeedInt comp_stride, CeedInt start, in CeedElemRestrictionApplyOrientedNoTranspose_Memcheck_Core() argument
98 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyOrientedNoTranspose_Memcheck_Core()
110 … const CeedInt block_size, const CeedInt comp_stride, CeedInt start, in CeedElemRestrictionApplyCurlOrientedNoTranspose_Memcheck_Core() argument
117 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyCurlOrientedNoTranspose_Memcheck_Core()
152 …CeedInt num_comp, const CeedInt block_size, const CeedInt comp_stride, CeedInt start, CeedInt stop, in CeedElemRestrictionApplyCurlOrientedUnsignedNoTranspose_Memcheck_Core() argument
158 for (CeedSize e = start * block_size; e < stop * block_size; e += block_size) { in CeedElemRestrictionApplyCurlOrientedUnsignedNoTranspose_Memcheck_Core()
[all …]
H A Dceed-memcheck-vector.c118 static int CeedVectorSetValueStrided_Memcheck(CeedVector vec, CeedSize start, CeedSize stop, CeedSi… in CeedVectorSetValueStrided_Memcheck() argument
128 for (CeedSize i = start; i < stop; i += step) impl->array_allocated[i] = val; in CeedVectorSetValueStrided_Memcheck()
/libCEED/backends/cuda-ref/
H A Dceed-cuda-ref-vector.c226 static int CeedHostCopyStrided_Cuda(CeedScalar *h_array, CeedSize start, CeedSize stop, CeedSize st… in CeedHostCopyStrided_Cuda() argument
227 for (CeedSize i = start; i < stop; i += step) h_copy_array[i] = h_array[i]; in CeedHostCopyStrided_Cuda()
234 int CeedDeviceCopyStrided_Cuda(CeedScalar *d_array, CeedSize start, CeedSize stop, CeedSize step, C…
239 static int CeedVectorCopyStrided_Cuda(CeedVector vec, CeedSize start, CeedSize stop, CeedSize step,… in CeedVectorCopyStrided_Cuda() argument
264 …ed, cublasScopy_64(handle, (int64_t)(stop - start), impl->d_array + start, (int64_t)step, copy_arr… in CeedVectorCopyStrided_Cuda()
266 …ed, cublasDcopy_64(handle, (int64_t)(stop - start), impl->d_array + start, (int64_t)step, copy_arr… in CeedVectorCopyStrided_Cuda()
270 CeedCallBackend(CeedDeviceCopyStrided_Cuda(impl->d_array, start, stop, step, copy_array)); in CeedVectorCopyStrided_Cuda()
278 CeedCallBackend(CeedHostCopyStrided_Cuda(impl->h_array, start, stop, step, copy_array)); in CeedVectorCopyStrided_Cuda()
340 static int CeedHostSetValueStrided_Cuda(CeedScalar *h_array, CeedSize start, CeedSize stop, CeedSiz… in CeedHostSetValueStrided_Cuda() argument
341 for (CeedSize i = start; i < stop; i += step) h_array[i] = val; in CeedHostSetValueStrided_Cuda()
[all …]
H A Dceed-cuda-ref-operator.c1933 CeedSize start = node * 1 + comp * (elem_size * num_elem); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda() local
1936 …if (s != 0) CeedCallBackend(CeedVectorSetValueStrided(active_e_vec_in, start, stop, elem_size, 0.0… in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda()
1939 start = node * 1 + comp * (elem_size * num_elem); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda()
1941 CeedCallBackend(CeedVectorSetValueStrided(active_e_vec_in, start, stop, elem_size, 1.0)); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Cuda()
/libCEED/examples/fluids/qfunctions/
H A Dutils.h186 …ar LinearRampCoefficient(CeedScalar amplitude, CeedScalar length, CeedScalar start, CeedScalar x) { in LinearRampCoefficient() argument
187 if (x < start) { in LinearRampCoefficient()
189 } else if (x < start + length) { in LinearRampCoefficient()
190 return amplitude * ((x - start) * (-1 / length) + 1); in LinearRampCoefficient()
208 CEED_QFUNCTION_HELPER int StoredValuesPack(CeedInt Q, CeedInt i, CeedInt start, CeedInt num_comp, c… in StoredValuesPack() argument
210 for (CeedInt j = 0; j < num_comp; j++) stored[(start + j) * Q + i] = values_at_qpnt[j]; in StoredValuesPack()
227 CEED_QFUNCTION_HELPER int StoredValuesUnpack(CeedInt Q, CeedInt i, CeedInt start, CeedInt num_comp,… in StoredValuesUnpack() argument
229 for (CeedInt j = 0; j < num_comp; j++) values_at_qpnt[j] = stored[(start + j) * Q + i]; in StoredValuesUnpack()
/libCEED/interface/
H A Dceed-vector.c300 int CeedVectorCopyStrided(CeedVector vec, CeedSize start, CeedSize stop, CeedSize step, CeedVector … in CeedVectorCopyStrided() argument
316 …CeedCheck(start >= 0 && start <= length && (start <= stop || stop == -1), CeedVectorReturnCeed(vec… in CeedVectorCopyStrided()
317 "Invalid value for start %" CeedSize_FMT ", must be in the range [0, stop]", start); in CeedVectorCopyStrided()
321 CeedCall(vec->CopyStrided(vec, start, stop, step, vec_copy)); in CeedVectorCopyStrided()
330 for (CeedSize i = start; i < stop; i += step) array_copy[i] = array[i]; in CeedVectorCopyStrided()
412 int CeedVectorSetValueStrided(CeedVector vec, CeedSize start, CeedSize stop, CeedSize step, CeedSca… in CeedVectorSetValueStrided() argument
423 CeedCall(vec->SetValueStrided(vec, start, stop, step, value)); in CeedVectorSetValueStrided()
431 for (CeedSize i = start; i < stop; i += step) array[i] = value; in CeedVectorSetValueStrided()
1080 int CeedVectorViewRange(CeedVector vec, CeedSize start, CeedSize stop, CeedInt step, const char *fp… in CeedVectorViewRange() argument
1098 if (start != 0 || stop != length || step != 1) { in CeedVectorViewRange()
[all …]
/libCEED/backends/hip-ref/
H A Dceed-hip-ref-vector.c279 static int CeedHostCopyStrided_Hip(CeedScalar *h_array, CeedSize start, CeedSize stop, CeedSize ste… in CeedHostCopyStrided_Hip() argument
280 for (CeedSize i = start; i < stop; i += step) h_copy_array[i] = h_array[i]; in CeedHostCopyStrided_Hip()
287 int CeedDeviceCopyStrided_Hip(CeedScalar *d_array, CeedSize start, CeedSize stop, CeedSize step, Ce…
292 static int CeedVectorCopyStrided_Hip(CeedVector vec, CeedSize start, CeedSize stop, CeedSize step, … in CeedVectorCopyStrided_Hip() argument
318 …d, hipblasScopy_64(handle, (int64_t)(stop - start), impl->d_array + start, (int64_t)step, copy_arr… in CeedVectorCopyStrided_Hip()
320 …d, hipblasDcopy_64(handle, (int64_t)(stop - start), impl->d_array + start, (int64_t)step, copy_arr… in CeedVectorCopyStrided_Hip()
324 CeedCallBackend(CeedDeviceCopyStrided_Hip(impl->d_array, start, stop, step, copy_array)); in CeedVectorCopyStrided_Hip()
333 CeedCallBackend(CeedHostCopyStrided_Hip(impl->h_array, start, stop, step, copy_array)); in CeedVectorCopyStrided_Hip()
397 static int CeedHostSetValueStrided_Hip(CeedScalar *h_array, CeedSize start, CeedSize stop, CeedSize… in CeedHostSetValueStrided_Hip() argument
398 for (CeedSize i = start; i < stop; i += step) h_array[i] = val; in CeedHostSetValueStrided_Hip()
[all …]
H A Dceed-hip-ref-operator.c1930 CeedSize start = node * 1 + comp * (elem_size * num_elem); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip() local
1933 …if (s != 0) CeedCallBackend(CeedVectorSetValueStrided(active_e_vec_in, start, stop, elem_size, 0.0… in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip()
1936 start = node * 1 + comp * (elem_size * num_elem); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip()
1938 CeedCallBackend(CeedVectorSetValueStrided(active_e_vec_in, start, stop, elem_size, 1.0)); in CeedOperatorLinearAssembleAddDiagonalAtPoints_Hip()
/libCEED/doc/sphinx/source/
H A Dgettingstarted.md4 :start-after: <!-- getting-started-inclusion -->
H A DlibCEEDapi.md14 We start by considering the discrete residual $F(u)=0$ formulation in weak form.
240 :start-at: CeedInit
253 :start-after: //! [QFunction Create]
295 :start-after: //! [Basis Create]
307 :start-after: //! [ElemRestr Create]
313 :start-after: //! [ElemRestrU Create]
337 :start-after: //! [Setup Create]
343 :start-after: //! [Setup Set]
349 :start-after: //! [Setup Apply]
357 :start-after: //! [Operator Create]
[all …]
H A Dprecision.md10 :start-at: "#include \"ceed-f64.h\""
/libCEED/
H A DCITATION.cff111 start: 1945
190 start: 85
/libCEED/examples/nek/boxes/
H A Db1e.rea98 0.00000 p094 start projecting velocity after p94 step
99 0.00000 p095 start projecting pressure after p95 step
/libCEED/examples/
H A Dbps.md6 :start-after: <!-- bps-inclusion -->
H A DREADME.md94 :start-after: <!-- running-examples-inclusion -->
/libCEED/examples/petsc/
H A Dbpsraw.c63 PetscInt start = 0; in GlobalStart() local
69 if (i == i_rank[0] && j == i_rank[1] && k == i_rank[2]) return start; in GlobalStart()
71 start += m_nodes[0] * m_nodes[1] * m_nodes[2]; in GlobalStart()
/libCEED/include/ceed/
H A Dceed.h202 CEED_EXTERN int CeedVectorCopyStrided(CeedVector vec, CeedSize start, CeedSize stop, CeedSize step…
205 CEED_EXTERN int CeedVectorSetValueStrided(CeedVector vec, CeedSize start, CeedSize stop, CeedSize …
221 CEED_EXTERN int CeedVectorViewRange(CeedVector vec, CeedSize start, CeedSize stop, CeedInt step, c…
/libCEED/julia/LibCEED.jl/src/generated/
H A Dlibceed_bindings.jl259 function CeedVectorViewRange(vec, start, stop, step, fp_fmt, stream) argument
260 …eedVector, CeedSize, CeedSize, CeedInt, Ptr{Cchar}, Ptr{Libc.FILE}), vec, start, stop, step, fp_fm…

12