-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate compilation units for different domain wall
- Loading branch information
Showing
12 changed files
with
161 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include <dslash_wilson_clover_preconditioned.hpp> | ||
|
||
/** | ||
This is the Wilson-clover linear operator | ||
*/ | ||
|
||
namespace quda | ||
{ | ||
|
||
constexpr QudaPrecision precision = QUDA_ @QUDA_DSLASH_PREC @_PRECISION; | ||
constexpr int nColor = @QUDA_DSLASH_NCOLOR @; | ||
constexpr int reconI = @QUDA_DSLASH_RECONI @; | ||
constexpr bool distance_pc = @QUDA_DSLASH_DISTANCE @; | ||
|
||
constexpr Dslash5Type dslash5_type = Dslash5Type::@QUDA_DSLASH_DWTYPE @; | ||
|
||
typedef @QUDA_DSLASH_DDARG @DDArg; | ||
typedef precision_type_mapper<precision>::type Float; | ||
|
||
template struct DomainWall4DApplyFusedM5<Float, nColor, DDArg, ReconstructWilson::recon[reconI]>; | ||
|
||
template DomainWall4DApplyFusedM5<Float, nColor, DDArg, ReconstructWilson::recon[reconI]>::DomainWall4DFusedM5Apply( | ||
cvector_ref<ColorSpinorField> &out, cvector_ref<const ColorSpinorField> &in, cvector_ref<const ColorSpinorField> &x, | ||
const GaugeField &U, cvector_ref<ColorSpinorField> &y, const Complex *b_5, const Complex *c_5, double a, double m_5, | ||
int parity, bool dagger, const int *comm_override, double m_f, Dslash5TypeList<dslash5_type>, | ||
DistanceType<distance_pc>, TimeProfile &profile); | ||
|
||
} // namespace quda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include <dslash_domain_wall_4d_fused_m5.hpp> | ||
|
||
/** | ||
This is the gauged domain-wall 4-d preconditioned operator, fused with immediately followed fifth dimension operators. | ||
*/ | ||
|
||
namespace quda | ||
{ | ||
|
||
// Apply the 4-d preconditioned domain-wall Dslash operator | ||
// i.e. out(x) = M*in = in(x) + a*\sum_mu U_{-\mu}(x)in(x+mu) + U^\dagger_mu(x-mu)in(x-mu) | ||
// ... and then m5inv | ||
void ApplyDomainWall4DM5inv(cvector_ref<ColorSpinorField> &out, cvector_ref<const ColorSpinorField> &in, | ||
const GaugeField &U, double a, double m_5, const Complex *b_5, const Complex *c_5, | ||
cvector_ref<const ColorSpinorField> &x, cvector_ref<ColorSpinorField> &y, int parity, | ||
bool dagger, const int *comm_override, double m_f, TimeProfile &profile) | ||
{ | ||
if constexpr (is_enabled<QUDA_DOMAIN_WALL_4D_DSLASH>()) { | ||
auto dummy_list = Dslash5TypeList<Dslash5Type::M5_INV_MOBIUS>(); | ||
instantiate<DomainWall4DApplyFusedM5>(out, in, x, y, U, b_5, c_5, a, m_5, parity, dagger, comm_override, m_f, | ||
dummy_list, profile); | ||
} else { | ||
errorQuda("Domain-wall operator has not been built"); | ||
} | ||
} | ||
|
||
} // namespace quda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#include <dslash_domain_wall_4d_fused_m5.hpp> | ||
|
||
/** | ||
This is the gauged domain-wall 4-d preconditioned operator, fused with immediately followed fifth dimension operators. | ||
*/ | ||
|
||
namespace quda | ||
{ | ||
|
||
// Apply the 4-d preconditioned domain-wall Dslash operator | ||
// i.e. out(x) = M*in = in(x) + a*\sum_mu U_{-\mu}(x)in(x+mu) + U^\dagger_mu(x-mu)in(x-mu) | ||
// ... and then m5inv | ||
void ApplyDomainWall4DM5inv(cvector_ref<ColorSpinorField> &out, cvector_ref<const ColorSpinorField> &in, | ||
const GaugeField &U, double a, double m_5, const Complex *b_5, const Complex *c_5, | ||
cvector_ref<const ColorSpinorField> &x, cvector_ref<ColorSpinorField> &y, int parity, | ||
bool dagger, const int *comm_override, double m_f, TimeProfile &profile) | ||
{ | ||
if constexpr (is_enabled<QUDA_DOMAIN_WALL_4D_DSLASH>()) { | ||
auto dummy_list = Dslash5TypeList<Dslash5Type::M5_INV_MOBIUS>(); | ||
instantiate<DomainWall4DApplyFusedM5>(out, in, x, y, U, b_5, c_5, a, m_5, parity, dagger, comm_override, m_f, | ||
dummy_list, profile); | ||
} else { | ||
errorQuda("Domain-wall operator has not been built"); | ||
} | ||
} | ||
|
||
} // namespace quda |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters