Skip to content

Commit

Permalink
Remove QudaTune to fit QUDA.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyChiang committed Dec 4, 2024
1 parent e68eb70 commit 67c04ae
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pyquda_core/pyquda/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.9.8"
__version__ = "0.9.9"
2 changes: 1 addition & 1 deletion pyquda_core/pyquda/action/gauge.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def forcePath(action_path: PathParam):
class GaugeAction(Action):
dirac: GaugeDirac

def __init__(self, latt_info: LatticeInfo, loop_param: LoopParam, beta: float, u_0: float):
def __init__(self, latt_info: LatticeInfo, loop_param: LoopParam, beta: float):
super().__init__(latt_info, GaugeDirac(latt_info))

# S=\frac{\beta}{N_c}\sum_{i}c_i\mathrm{ReTr}(I-W_i)
Expand Down
1 change: 0 additions & 1 deletion pyquda_core/pyquda/dirac/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ def newQudaMultigridParam(
mg_inv_param.clover_order = QudaCloverFieldOrder.QUDA_PACKED_CLOVER_ORDER
mg_inv_param.clover_coeff = 1.0

mg_inv_param.tune = QudaTune.QUDA_TUNE_YES
mg_inv_param.verbosity = QudaVerbosity.QUDA_SUMMARIZE
mg_inv_param.verbosity_precondition = QudaVerbosity.QUDA_SILENT

Expand Down
4 changes: 0 additions & 4 deletions pyquda_core/pyquda/pyquda.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ from .enum_quda import ( # noqa: F401
QudaDiracFieldOrder,
QudaCloverFieldOrder,
QudaVerbosity,
QudaTune,
QudaPreserveDirac,
QudaParity,
QudaDiracType,
Expand Down Expand Up @@ -481,9 +480,6 @@ class QudaInvertParam:
clock: double
"""The mean clock frequency of the device for the duration of the solve"""

tune: QudaTune
"""Enable auto-tuning? (default = QUDA_TUNE_YES)"""

Nsteps: int
"""Number of steps in s-step algorithms"""

Expand Down
2 changes: 1 addition & 1 deletion tests/test.hmc.clover.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
latt_info = core.LatticeInfo([4, 4, 4, 8], t_boundary=-1, anisotropy=1.0)

monomials = [
GaugeAction(latt_info, symanzik_tree_gauge(u_0), beta, u_0),
GaugeAction(latt_info, symanzik_tree_gauge(u_0), beta),
CloverWilsonAction(latt_info, wilson_rational_param[2], 0.3, 2, tol, maxiter, clover_csw),
CloverWilsonAction(latt_info, wilson_rational_param[1], 0.5, 1, tol, maxiter, clover_csw),
]
Expand Down
2 changes: 1 addition & 1 deletion tests/test.hmc.gauge.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
core.init(resource_path=".cache", enable_force_monitor=True)
latt_info = core.LatticeInfo([4, 4, 4, 8], t_boundary=-1, anisotropy=1.0)

monomials = [GaugeAction(latt_info, symanzik_tree_gauge(u_0), beta, u_0)]
monomials = [GaugeAction(latt_info, symanzik_tree_gauge(u_0), beta)]

hmc = HMC(latt_info, monomials, O4Nf5Ng0V(10))
gauge = core.LatticeGauge(latt_info)
Expand Down
2 changes: 1 addition & 1 deletion tests/test.hmc.hisq.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
latt_info = core.LatticeInfo([4, 4, 4, 8], t_boundary=-1, anisotropy=1.0)

monomials = [
GaugeAction(latt_info, symanzik_tree_gauge(u_0), beta, u_0),
GaugeAction(latt_info, symanzik_tree_gauge(u_0), beta),
HISQAction(latt_info, staggered_rational_param[((0.0012, 0.0323, 0.2), (2, 1, -3))], 100 * tol, maxiter),
HISQAction(latt_info, staggered_rational_param[((0.2,), (1,))], tol, maxiter),
HISQAction(latt_info, staggered_rational_param[((0.2,), (1,))], tol, maxiter),
Expand Down

0 comments on commit 67c04ae

Please sign in to comment.