From 67c04ae0f335c34c2e7b7c5c523ea7fa8e562189 Mon Sep 17 00:00:00 2001 From: SaltyChiang Date: Wed, 4 Dec 2024 11:54:37 +0800 Subject: [PATCH] Remove QudaTune to fit QUDA. --- pyquda_core/pyquda/_version.py | 2 +- pyquda_core/pyquda/action/gauge.py | 2 +- pyquda_core/pyquda/dirac/general.py | 1 - pyquda_core/pyquda/pyquda.pyi | 4 ---- tests/test.hmc.clover.py | 2 +- tests/test.hmc.gauge.py | 2 +- tests/test.hmc.hisq.py | 2 +- 7 files changed, 5 insertions(+), 10 deletions(-) diff --git a/pyquda_core/pyquda/_version.py b/pyquda_core/pyquda/_version.py index a25765c..88081a7 100644 --- a/pyquda_core/pyquda/_version.py +++ b/pyquda_core/pyquda/_version.py @@ -1 +1 @@ -__version__ = "0.9.8" +__version__ = "0.9.9" diff --git a/pyquda_core/pyquda/action/gauge.py b/pyquda_core/pyquda/action/gauge.py index f6a0a3a..37b2cfd 100644 --- a/pyquda_core/pyquda/action/gauge.py +++ b/pyquda_core/pyquda/action/gauge.py @@ -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) diff --git a/pyquda_core/pyquda/dirac/general.py b/pyquda_core/pyquda/dirac/general.py index f7ac45c..a0590ee 100644 --- a/pyquda_core/pyquda/dirac/general.py +++ b/pyquda_core/pyquda/dirac/general.py @@ -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 diff --git a/pyquda_core/pyquda/pyquda.pyi b/pyquda_core/pyquda/pyquda.pyi index 8175761..a595fac 100644 --- a/pyquda_core/pyquda/pyquda.pyi +++ b/pyquda_core/pyquda/pyquda.pyi @@ -45,7 +45,6 @@ from .enum_quda import ( # noqa: F401 QudaDiracFieldOrder, QudaCloverFieldOrder, QudaVerbosity, - QudaTune, QudaPreserveDirac, QudaParity, QudaDiracType, @@ -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""" diff --git a/tests/test.hmc.clover.py b/tests/test.hmc.clover.py index 6069479..309f35e 100644 --- a/tests/test.hmc.clover.py +++ b/tests/test.hmc.clover.py @@ -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), ] diff --git a/tests/test.hmc.gauge.py b/tests/test.hmc.gauge.py index 6ab95a5..39c2d74 100644 --- a/tests/test.hmc.gauge.py +++ b/tests/test.hmc.gauge.py @@ -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) diff --git a/tests/test.hmc.hisq.py b/tests/test.hmc.hisq.py index c8811fa..e670453 100644 --- a/tests/test.hmc.hisq.py +++ b/tests/test.hmc.hisq.py @@ -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),