84#if defined(NEKTAR_ENABLE_DEVICE) && defined(DEVICE_COMPILE_ONLY)
106 typename TPhysSizeParameter1D,
107 std::enable_if_t<std::is_same_v<Implementation, SumFac> &&
108 IsPhysSizeParameter1D_v<TPhysSizeParameter1D>,
111inline constexpr size_t CurlCurlWorkSpaceSize(
112 [[maybe_unused]]
const size_t nelmt,
113 [[maybe_unused]]
const TPhysSizeParameter1D sizeParam1D)
135 typename TPhysSizeParameter2D,
136 std::enable_if_t<std::is_same_v<Implementation, SumFac> &&
137 IsPhysSizeParameter2D_v<TPhysSizeParameter2D>,
140inline constexpr size_t CurlCurlWorkSpaceSize(
141 const size_t nelmt,
const TPhysSizeParameter2D sizeParam2D)
144 return sizeParam2D.nqTot() *
nelmt;
164 typename TPhysSizeParameter3D,
165 std::enable_if_t<std::is_same_v<Implementation, SumFac> &&
166 IsPhysSizeParameter3D_v<TPhysSizeParameter3D>,
169inline constexpr size_t CurlCurlWorkSpaceSize(
170 const size_t nelmt,
const TPhysSizeParameter3D sizeParam3D)
172 return 3u * sizeParam3D.nqTot() *
nelmt;
193 typename TPhysSizeParameter1D,
194 std::enable_if_t<std::is_same_v<Implementation, SumFac> &&
195 IsPhysSizeParameter1D_v<TPhysSizeParameter1D>,
198inline constexpr unsigned int CurlCurlSharedMemorySize(
199 [[maybe_unused]]
const TPhysSizeParameter1D sizeParam1D,
230 typename TPhysSizeParameter2D,
231 std::enable_if_t<std::is_same_v<Implementation, SumFac> &&
232 IsPhysSizeParameter2D_v<TPhysSizeParameter2D>,
235inline constexpr unsigned int CurlCurlSharedMemorySize(
236 const TPhysSizeParameter2D sizeParam2D,
const unsigned int elmtsPerBlock,
239 const unsigned int wspsize =
241 ?
static_cast<unsigned int>(
242 CurlCurlWorkSpaceSize<SHAPE_TYPE, Implementation>(
253 const unsigned int nq0 = sizeParam2D.nq0();
254 const unsigned int nq1 = sizeParam2D.nq1();
256 return nq0 + nq1 + wspsize;
284 typename TPhysSizeParameter3D,
285 std::enable_if_t<std::is_same_v<Implementation, SumFac> &&
286 IsPhysSizeParameter3D_v<TPhysSizeParameter3D>,
289inline constexpr unsigned int CurlCurlSharedMemorySize(
290 const TPhysSizeParameter3D sizeParam3D,
const unsigned int elmtsPerBlock,
293 const unsigned int nq0 = sizeParam3D.nq0();
294 const unsigned int nq1 = sizeParam3D.nq1();
295 const unsigned int nq2 = sizeParam3D.nq2();
297 const unsigned int wspsize =
299 ?
static_cast<unsigned int>(
300 CurlCurlWorkSpaceSize<SHAPE_TYPE, Implementation>(
311 return nq0 + 2u * nq1 + nq2 + wspsize;
316 return nq0 + nq2 + wspsize;
321 return nq0 + nq1 + nq2 + wspsize;
370template <LibUtilities::ShapeType SHAPE_TYPE,
bool DEFORMED,
typename TData>
372 const unsigned int ilane,
const unsigned int ncoord,
const unsigned int nq0,
373 const unsigned int nq1,
const size_t inoffset,
const TData *
NEK_RESTRICT D0,
380 const unsigned int ndf = 2u * ncoord;
382 for (
unsigned int j = 0u, cnt_ji = 0u; j < nq1; ++j)
384 for (
unsigned int i = 0u; i < nq0; ++i, ++cnt_ji)
386 const unsigned int index =
warpsize * cnt_ji + ilane;
387 const unsigned int dfindex =
388 DEFORMED ? ndf *
warpsize * cnt_ji + ilane : ilane;
395 for (
unsigned int q = 0u;
q < nq0; ++
q)
397 const TData Dq = D0[
q * nq0 + i];
398 const unsigned int qsource =
warpsize * (nq0 * j +
q) + ilane;
399 d0u += Dq *
in[qsource];
400 d0v += Dq *
in[inoffset + qsource];
407 for (
unsigned int q = 0u;
q < nq1; ++
q)
409 const TData Dq = D1[
q * nq1 + j];
410 const unsigned int qsource =
warpsize * (nq0 *
q + i) + ilane;
411 d1u += Dq *
in[qsource];
412 d1v += Dq *
in[inoffset + qsource];
426 const TData dvdx = d0v * df[0u *
warpsize + dfindex] +
428 const TData dudy = d0u * df[2u *
warpsize + dfindex] +
431 omega[index] = dvdx - dudy;
468template <LibUtilities::ShapeType SHAPE_TYPE,
bool DEFORMED,
typename TData>
470 const unsigned int ilane,
const unsigned int ncoord,
const unsigned int nq0,
471 const unsigned int nq1,
const size_t outoffset,
479 const unsigned int ndf = 2u * ncoord;
481 for (
unsigned int j = 0u, cnt_ji = 0u; j < nq1; ++j)
483 for (
unsigned int i = 0u; i < nq0; ++i, ++cnt_ji)
485 const unsigned int index =
warpsize * cnt_ji + ilane;
486 const unsigned int dfindex =
487 DEFORMED ? ndf *
warpsize * cnt_ji + ilane : ilane;
493 for (
unsigned int q = 0u;
q < nq0; ++
q)
495 d0 += D0[
q * nq0 + i] * omega[
warpsize * (nq0 * j +
q) + ilane];
501 for (
unsigned int q = 0u;
q < nq1; ++
q)
503 d1 += D1[
q * nq1 + j] * omega[
warpsize * (nq0 *
q + i) + ilane];
517 out[outoffset + index] = -(d0 * df[0u *
warpsize + dfindex] +
580template <LibUtilities::ShapeType SHAPE_TYPE,
bool DEFORMED,
typename TData>
582 const unsigned int ilane,
const unsigned int nq0,
const unsigned int nq1,
583 const unsigned int nq2,
const size_t inoffset,
const size_t outoffset,
593 constexpr unsigned int ndf = 9u;
595 for (
unsigned int k = 0u, cnt_kji = 0u; k < nq2; k++)
597 for (
unsigned int j = 0u; j < nq1; j++)
599 for (
unsigned int i = 0u; i < nq0; i++, cnt_kji++)
601 const unsigned int index =
warpsize * cnt_kji + ilane;
602 const unsigned int dfindex =
603 DEFORMED ? ndf *
warpsize * cnt_kji + ilane : ilane;
608 TData d0[3] = {0.0, 0.0, 0.0};
610 for (
unsigned int q = 0u;
q < nq0; ++
q)
612 const TData Dq = D0[
q * nq0 + i];
613 const unsigned int qsource =
614 warpsize * (nq0 * nq1 * k + nq0 * j +
q) + ilane;
615 d0[0] += Dq *
in[qsource];
616 d0[1] += Dq *
in[inoffset + qsource];
617 d0[2] += Dq *
in[2u * inoffset + qsource];
621 TData d1[3] = {0.0, 0.0, 0.0};
623 for (
unsigned int q = 0u;
q < nq1; ++
q)
625 const TData Dq = D1[
q * nq1 + j];
626 const unsigned int qsource =
627 warpsize * (nq0 * nq1 * k + nq0 *
q + i) + ilane;
628 d1[0] += Dq *
in[qsource];
629 d1[1] += Dq *
in[inoffset + qsource];
630 d1[2] += Dq *
in[2u * inoffset + qsource];
634 TData d2[3] = {0.0, 0.0, 0.0};
636 for (
unsigned int q = 0u;
q < nq2; ++
q)
638 const TData Dq = D2[
q * nq2 + k];
639 const unsigned int qsource =
640 warpsize * (nq0 * nq1 *
q + nq0 * j + i) + ilane;
641 d2[0] += Dq *
in[qsource];
642 d2[1] += Dq *
in[inoffset + qsource];
643 d2[2] += Dq *
in[2u * inoffset + qsource];
648 for (
unsigned int c = 0u;
c < 3u; ++
c)
653 TData tmp0 = f1m[j] * f2[k] * d0[
c];
654 TData tmp1 = f0[i] * tmp0;
655 TData tmp2 = f2[k] * d1[
c];
658 d2[
c] += tmp1 + f1[j] * tmp2;
664 d2[
c] += f0[i] * d0[
c];
671 d2[
c] += f0[i] * d0[
c] + f1[j] * d1[
c];
678 const TData df0 = df[0u *
warpsize + dfindex];
679 const TData df1 = df[1u *
warpsize + dfindex];
680 const TData df2 = df[2u *
warpsize + dfindex];
681 const TData df3 = df[3u *
warpsize + dfindex];
682 const TData df4 = df[4u *
warpsize + dfindex];
683 const TData df5 = df[5u *
warpsize + dfindex];
684 const TData df6 = df[6u *
warpsize + dfindex];
685 const TData df7 = df[7u *
warpsize + dfindex];
686 const TData df8 = df[8u *
warpsize + dfindex];
689 out[index] = (d0[2] * df3 + d1[2] * df4 + d2[2] * df5) -
690 (d0[1] * df6 + d1[1] * df7 + d2[1] * df8);
692 out[outoffset + index] =
693 (d0[0] * df6 + d1[0] * df7 + d2[0] * df8) -
694 (d0[2] * df0 + d1[2] * df1 + d2[2] * df2);
696 out[2u * outoffset + index] =
697 (d0[1] * df0 + d1[1] * df1 + d2[1] * df2) -
698 (d0[0] * df3 + d1[0] * df4 + d2[0] * df5);
755 bool DEFORMED,
typename TPhysSizeParameter1D,
typename TthreadBlock,
756 typename TData,
typename TUseSharedWsp,
757 std::enable_if_t<std::is_same_v<Implementation, SumFac>,
bool>
760 const TPhysSizeParameter1D sizeParam1D,
const size_t nelmt,
762 [[maybe_unused]]
const size_t inoffset,
770 IsPhysSizeParameter1D_v<TPhysSizeParameter1D>,
771 "Template argument must be either of type "
772 "NonTemplatedPhysSizeParameter1D or TemplatedPhysSizeParameter1D.");
774 const unsigned int ncoord = sizeParam1D.ncoord();
775 const unsigned int nq0 = sizeParam1D.nq0();
777 const unsigned int ndf = ncoord;
778 const unsigned int dfsize = DEFORMED ? nq0 : 1u;
787 const TData *dfptr = df + ndf * dfsize *
warpsize * iwarp;
788 const TData *inptr =
in + nq0 *
warpsize * iwarp;
790 PhysDerivDir1DSumFacKernel<false, DEFORMED, 0>(ilane, ncoord, nq0, D0,
791 dfptr, inptr, outptr);
854 bool DEFORMED,
typename TPhysSizeParameter2D,
typename TthreadBlock,
855 typename TData,
typename TUseSharedWsp,
856 std::enable_if_t<std::is_same_v<Implementation, SumFac>,
bool>
859 const TPhysSizeParameter2D sizeParam2D,
const size_t nelmt,
860 [[maybe_unused]]
const unsigned int elmtsPerBlock,
const size_t inoffset,
869 IsPhysSizeParameter2D_v<TPhysSizeParameter2D>,
870 "Template argument must be either of type "
871 "NonTemplatedPhysSizeParameter2D or TemplatedPhysSizeParameter2D.");
875 const unsigned int ncoord = sizeParam2D.ncoord();
876 const unsigned int nq0 = sizeParam2D.nq0();
877 const unsigned int nq1 = sizeParam2D.nq1();
878 const unsigned int nqTot = sizeParam2D.nqTot();
880 const unsigned int ndf = 2 * ncoord;
881 const unsigned int dfsize = DEFORMED ? nqTot : 1u;
885 TData *s_f0 =
nullptr;
886 TData *s_f1 =
nullptr;
887 unsigned int ntable = 0u;
906 TData *wspbase = isShared ? (TData *)
shmemptr + ntable :
wsp;
913 const TData *dfptr = df + ndf * dfsize *
warpsize * iwarp;
914 const TData *inptr =
in + nqTot *
warpsize * iwarp;
916 TData *wspptr = wspbase + (isShared ? 0 : nqTot *
warpsize * iwarp);
919 Curl2DScalarSumFacKernel<SHAPE_TYPE, DEFORMED>(
920 ilane, ncoord, nq0, nq1, inoffset, D0, D1, s_f0, s_f1, dfptr,
924 Curl2DVectorSumFacKernel<SHAPE_TYPE, DEFORMED>(
925 ilane, ncoord, nq0, nq1, inoffset, D0, D1, s_f0, s_f1, dfptr,
951 bool DEFORMED,
typename TPhysSizeParameter2D,
typename TthreadBlock,
952 typename TData,
typename TUseSharedWsp,
953 std::enable_if_t<std::is_same_v<Implementation, SumFac>,
bool>
956 const TPhysSizeParameter2D sizeParam2D,
const size_t nelmt,
957 [[maybe_unused]]
const unsigned int elmtsPerBlock,
const size_t inoffset,
958 const size_t outoffset,
967 IsPhysSizeParameter2D_v<TPhysSizeParameter2D>,
968 "Template argument must be either of type "
969 "NonTemplatedPhysSizeParameter2D or TemplatedPhysSizeParameter2D.");
973 const unsigned int ncoord = sizeParam2D.ncoord();
974 const unsigned int nq0 = sizeParam2D.nq0();
975 const unsigned int nq1 = sizeParam2D.nq1();
976 const unsigned int nqTot = sizeParam2D.nqTot();
978 const unsigned int ndf = 2 * ncoord;
979 const unsigned int dfsize = DEFORMED ? nqTot : 1u;
983 TData *s_f0 =
nullptr;
984 TData *s_f1 =
nullptr;
1006 const TData *dfptr = df + ndf * dfsize *
warpsize * iwarp;
1011 Curl2DScalarSumFacKernel<SHAPE_TYPE, DEFORMED>(
1012 ilane, ncoord, nq0, nq1, inoffset, D0, D1, s_f0, s_f1, dfptr, inptr,
1013 outptr + 2u * outoffset);
1016 Curl2DVectorSumFacKernel<SHAPE_TYPE, DEFORMED>(
1017 ilane, ncoord, nq0, nq1, outoffset, D0, D1, s_f0, s_f1, dfptr,
1018 inptr + 2u * inoffset, outptr);
1079 bool DEFORMED,
typename TPhysSizeParameter3D,
typename TthreadBlock,
1080 typename TData,
typename TUseSharedWsp,
1081 std::enable_if_t<std::is_same_v<Implementation, SumFac>,
bool>
1084 const TPhysSizeParameter3D sizeParam3D,
const size_t nelmt,
1085 [[maybe_unused]]
const unsigned int elmtsPerBlock,
const size_t inoffset,
1095 IsPhysSizeParameter3D_v<TPhysSizeParameter3D>,
1096 "Template argument must be either of type "
1097 "NonTemplatedPhysSizeParameter3D or TemplatedPhysSizeParameter3D.");
1101 const unsigned int nq0 = sizeParam3D.nq0();
1102 const unsigned int nq1 = sizeParam3D.nq1();
1103 const unsigned int nq2 = sizeParam3D.nq2();
1104 const unsigned int nqTot = sizeParam3D.nqTot();
1106 constexpr unsigned int ndf = 9u;
1107 const unsigned int dfsize = DEFORMED ? nqTot : 1u;
1111 TData *s_f0 =
nullptr;
1112 TData *s_f1 =
nullptr;
1113 TData *s_f1m =
nullptr;
1114 TData *s_f2 =
nullptr;
1115 unsigned int ntable = 0u;
1125 ntable = nq0 + 2u * nq1 + nq2;
1154 ntable = nq0 + nq1 + nq2;
1166 TData *wspbase = isShared ? (TData *)
shmemptr + ntable :
wsp;
1167 const size_t wspoffset = isShared ? nqTot *
warpsize : inoffset;
1175 const TData *dfptr = df + ndf * dfsize *
warpsize * iwarp;
1176 const TData *inptr =
in + nqTot *
warpsize * iwarp;
1178 TData *wspptr = wspbase + (isShared ? 0 : nqTot *
warpsize * iwarp);
1181 Curl3DSumFacKernel<SHAPE_TYPE, DEFORMED>(
1182 ilane, nq0, nq1, nq2, inoffset, wspoffset, D0, D1, D2, s_f0,
1183 s_f1, s_f1m, s_f2, dfptr, inptr, wspptr);
1186 Curl3DSumFacKernel<SHAPE_TYPE, DEFORMED>(
1187 ilane, nq0, nq1, nq2, wspoffset, inoffset, D0, D1, D2, s_f0,
1188 s_f1, s_f1m, s_f2, dfptr, wspptr, outptr);
#define NEK_DEVICE_INLINE
#define NEK_DEVICE_KERNEL
Device SumFac kernels of the physical derivative: one element per warp lane.
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t const unsigned int const unsigned int const unsigned int const unsigned int const size_t const TData *NEK_RESTRICT const TData *NEK_RESTRICT const TUseSharedWsp TData *NEK_RESTRICT const TData *NEK_RESTRICT TData *NEK_RESTRICT const bool const bool unsigned char const TthreadBlock & threadBlock
static NEK_FORCE_INLINE void Curl2DScalarSumFacKernel(const unsigned nq0, const unsigned nq1, const unsigned int ncoord, const simd_type *f0, const simd_type *f1, const simd_type *df_ptr, const simd_type *tderiv0_0, const simd_type *tderiv1_0, const simd_type *tderiv0_1, const simd_type *tderiv1_1, simd_type *out)
Scalar curl of a two-dimensional vector field, omega = d(u1)/dx0 - d(u0)/dx1, from the tensor-directi...
constexpr unsigned int warpsize
static NEK_FORCE_INLINE void CurlCurlKernelLauncher(const TPhysSizeParameter1D sizeParam1D, const typename simd_type::scalarType *D0, const simd_type *df_ptr, simd_type *wsp, const simd_type *in0, simd_type *out0)
1D entry point: the curl-curl is undefined on a segment, so the group's single component is different...
FETCH_SHARED_MEMORY(shmemptr)
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t const unsigned int const unsigned int const unsigned int const unsigned int const size_t const TData *NEK_RESTRICT const TData *NEK_RESTRICT const TUseSharedWsp useSharedMemoryWsp
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t const unsigned int const unsigned int const unsigned int const unsigned int const size_t const TData *NEK_RESTRICT const TData *NEK_RESTRICT const TUseSharedWsp TData *NEK_RESTRICT const TData *NEK_RESTRICT in
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t const unsigned int const unsigned int const unsigned int const unsigned int const size_t const TData *NEK_RESTRICT const TData *NEK_RESTRICT const TUseSharedWsp TData *NEK_RESTRICT const TData *NEK_RESTRICT TData *NEK_RESTRICT const bool const bool unsigned char * shmemptr
DispatchWorkSpace(useSharedMemoryWsp, [&](const auto isShared) { TData *wspbase=isShared ?(TData *) shmemptr+tableSize :wsp;while(e< nelmt) { const size_t ilane=e % warpsize;const size_t iwarp=e/warpsize;const TData *inptr=in+numDataIn *(nelmt *c+warpsize *iwarp);TData *outptr=out+numDataOut *(nelmt *c+warpsize *iwarp);const size_t wspOffset=isShared ? 0 :nelmt *c+warpsize *iwarp;TData *wspptr=wspbase+(edgeSize+numDataOut) *wspOffset;TData *volptr=wspptr+edgeSize *warpsize;const unsigned int off1=warpsize *2 *tnq00;const unsigned int joff1=(DEFORMED) ? off1 :warpsize *2;for(unsigned int d=0;d< 2;++d) { const bool useD1=CompNeedsCollapsedFac(SHAPE_TYPE, d, 1);const TData *jacptr=jac+d *jacCompStride+numDataJac *warpsize *iwarp;if(!(append||d > 0)) { for(unsigned int p=0;p< numDataOut;++p) { outptr[warpsize *p+ilane]=0.0;} } { TData *dst=useD1 ? volptr :outptr;if(useD1) { for(unsigned int p=0;p< numDataOut;++p) { dst[warpsize *p+ilane]=0.0;} } const TData *nb=(0==d) ? dnbasis0 :nbasis0;const TData *tb=(traceDir0==d) ? dtbasis0 :tbasis0;const bool coll=(traceDir0==d) ? false :isColl0;const bool endp=(0==d) ? false :endPtsColl0;if(endp) { IPWRTPhysTraceEdgeN0Kernel< true, DEFORMED >(ilane, 0, 2, 2, nm0, nm1, nb, tnq00, tb, tw0, jacptr, wspptr, inptr, dst, coll);} else { IPWRTPhysTraceEdgeN0Kernel< false, DEFORMED >(ilane, 0, 2, 2, nm0, nm1, nb, tnq00, tb, tw0, jacptr, wspptr, inptr, dst, coll);} if(useD1) { ScaleAddCollapsedFacKernel(ilane, nm0, nm1, 1u, true, false, s_twoOver1, s_twoOver1, volptr, outptr);} } { const TData *nb=(1==d) ? dnbasis1 :nbasis1;const TData *tb=(traceDir1==d) ? dtbasis1 :tbasis1;const bool coll=(traceDir1==d) ? false :isColl1;const bool endp=(1==d) ? false :endPtsColl1;if(endp) { IPWRTPhysTraceEdgeN1Kernel< true, DEFORMED >(ilane, 0, nedgeN1, nedgeN1, nm0, nm1, nb, tnq10, tb, tw1, jacptr+joff1, wspptr, inptr+off1, outptr, coll);} else { IPWRTPhysTraceEdgeN1Kernel< false, DEFORMED >(ilane, 0, nedgeN1, nedgeN1, nm0, nm1, nb, tnq10, tb, tw1, jacptr+joff1, wspptr, inptr+off1, outptr, coll);} } } e+=getGlobalRange< 0 >(threadBlock);} })
static NEK_FORCE_INLINE void Curl2DVectorSumFacKernel(const unsigned nq0, const unsigned nq1, const unsigned int ncoord, const simd_type *f0, const simd_type *f1, const simd_type *df_ptr, const simd_type *tderiv0, const simd_type *tderiv1, simd_type *out0, simd_type *out1)
Vector curl of a two-dimensional scalar field, out = ( d(omega)/dx1, -d(omega)/dx0 ),...
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t const unsigned int elmtsPerBlock
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t const unsigned int const unsigned int const unsigned int const unsigned int const size_t const TData *NEK_RESTRICT const TData *NEK_RESTRICT const TUseSharedWsp TData *NEK_RESTRICT wsp
static NEK_FORCE_INLINE void Curl3DH1KernelLauncher(const TPhysSizeParameter2D sizeParam2D, const typename simd_type::scalarType *D0, const typename simd_type::scalarType *D1, const simd_type *f0, const simd_type *f1, const simd_type *df_ptr, simd_type *wsp, const simd_type *in0, const simd_type *in1, const simd_type *in2, simd_type *out0, simd_type *out1, simd_type *out2)
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t nelmt
NEK_DEVICE_KERNEL void const TData *NEK_RESTRICT const TData *NEK_RESTRICT const size_t const unsigned int const unsigned int const unsigned int const unsigned int const size_t const TData *NEK_RESTRICT const TData *NEK_RESTRICT const TUseSharedWsp TData *NEK_RESTRICT const TData *NEK_RESTRICT TData *NEK_RESTRICT out
static NEK_FORCE_INLINE void Curl3DSumFacKernel(const unsigned nq0, const unsigned nq1, const unsigned nq2, const simd_type *f0, const simd_type *f1, const simd_type *f1m, const simd_type *f2, const simd_type *df_ptr, const simd_type *tderiv0_0, const simd_type *tderiv1_0, const simd_type *tderiv2_0, const simd_type *tderiv0_1, const simd_type *tderiv1_1, const simd_type *tderiv2_1, const simd_type *tderiv0_2, const simd_type *tderiv1_2, const simd_type *tderiv2_2, simd_type *out0, simd_type *out1, simd_type *out2)
Curl of a three-dimensional vector field from the tensor-direction derivatives of its three component...
std::vector< double > p(NPUPPER)
static constexpr unsigned int warpSize