Repository navigation
Conversation
…hout the t boundary sign, and on any host gauge field
… interface-loaded gauge fields
…e field, halo included, from its global coordinates
…that their Polyakov loop needs no negation
…inks, and reject an imaginary chemical potential on them
…iperiodic t sign into the links of fields without staggered phases and take it out
… and take whether a time slice's t links cross the t boundary from one GaugePhaseGeometry::crossesTBoundary
…halo included, in GaugeTBoundary_::bytes()
…h reconstruct 13 and 9, which store the sign in their phase
…ich rebuild the t boundary sign on one time slice rather than three, and move the reconstruct checks of GaugeField::applyTBoundary and removeTBoundary there, noting why reconstruct 12 and 8 reject an imaginary chemical potential
…ordinates in gauge_phase_test's link comparison, so that differing links are reported at their coordinates, and put get_phase_str's documentation on it
…cal potential, exp(i pi i_mu / T) on every t link with T the global time extent, and that removing them takes it out, with the host phase from a new test utility, applyGaugeImaginaryChemicalPotential, and document that phase for staggeredPhaseQuda
…elds of halo width 1 have sites labelled with the opposite parity to their coordinates, on a single GPU and on CI's grid partitioned in z and t
…ar coordinates in the extended ghost exchange, as the rest of QUDA does, so that halos of odd total width with an odd x radius no longer overwrite interior sites
…g of one coordinate onto the global lattice in a globalCoord member that boundaryTimeSlices shares
…est utilities' compare_link_fields, which takes QDP-ordered host fields of any one layout, instead of a site-by-site comparison of its own
…ntum checks, compare_floats and strong_check_mom, on MILC-ordered copies, and check the force is not zero by its action, from momentumActionCPU, against a zero field's
…aggered_phase_str test utility, and skip its disabled reconstructs with getReconstructNibble, as the other tests do
…kes long links from the field's link type, and build gauge_phase_test's phased and signed references with it on plain copies, comparing reconstructs other than NO within tolerance instead of through a device round trip
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug fixes
GaugePhase,include/kernels/gauge_phase.cuh):applyStaggeredPhase/removeStaggeredPhaseon extended fields, includinggaugeObservablesQuda, the gauge force and gauge path on extended copies, andqudaPolyakovLoopon the resident extended field.QUDA_THREE_LINKS): the t boundary sign is now applied to the last three global time slices. Previously it was applied to one.i_mu != 0:applyGaugePhasenow errors. Previously it applied the single-link phase (e^{i\pi\mu/T}).i_muphase on extended fields: (T) is now the global time extent. Previously it wasu.X()[3] * comm_dim(3), which includes the halo for extended fields.GhostExtractorEx,include/kernels/extract_gauge_ghost_extended.cuh):copy_gauge_extended. Previously, whenR[0]andsum(R)were both odd, injecting the x halo overwrote interior sites.applyGaugeStaggeredPhase): phases are now applied in all four directions. Previously the t-direction phase was omitted, which only affects CHROMA.New features
GaugeField::applyTBoundary/removeTBoundary, and the free functionapplyGaugeTBoundary:applyGaugeTBoundaryrequires reconstruct NO, 13, 12, 9 or 8 (NO, 13 or 9 for long links), andi_mu == 0for reconstruct 12 and 8.applyGaugeStaggeredPhaseandapplyGaugeTemporalBCsoverloads for a hostGaugeFieldof any order (extended fields excepted). TheapplyGaugeTemporalBCsoverload takes the long-link flag from the field's link type.get_staggered_phase_strinmisc.{h,cpp}.applyGaugeImaginaryChemicalPotential: (e^{i\pi\mu/T}) on every t link of a QDP-ordered field.applyGaugeTemporalBCsis now declared ingauge_utils.h.gauge_phase_test, with ctestsgauge_phaseandgauge_phase_partition(--partition 13). It checks:i_muon thin links.applyTBoundary/removeTBoundaryfor every reconstruct, and on extended fields.Other changes
createGaugeParamForObservables): phased links are now loaded witht_boundary = QUDA_ANTI_PERIODIC_T, as in MILC's other entry points.qudaPolyakovLoopPhasedandqudaGaugeMeasurementsPhasedno longer negate the Polyakov loop. Previously the links were labelled periodic and the loop was negated.applyGaugeStaggeredPhaseno longer takes at_boundaryargument. The t boundary sign is applied only byapplyGaugeTemporalBCs.quda.h: the documentedi_muphase forstaggeredPhaseQudais corrected fromexp(imu/T)toexp(i pi i_mu / T)on every t link, with (T) the global time extent.Known limitations
staggeredPhaseQudabuildsQUDA_GENERAL_LINKS, so long links passed through it are treated as thin links (sign on one slice). This is unchanged by this PR.Testing
Build:
STRICT, sm_100, MPI, OpenMP, Wilson, clover and staggered. Twisted clover was added forclover_force_test. Runs usedQUDA_ENABLE_TUNING=0, with several ranks sharing one GPU (QUDA_ENABLE_MPS=1).gauge_phase_testpasses 98 of 98 on these grids and--partitionvalues:QUDA_TEST_GRID_SIZE--partitionvaluesctest on 1 1 1 2: 34 of 35 pass. The tests run were:
dslash_*(Wilson, clover, staggered, asqtad, HISQ);invert_test_*(Wilson, clover, staggered, asqtad, split-grid included);clover_force_test,hisq_stencil,gauge_path,su3;unitarize_link_*,hisq_paths_force_*,gauge_phase*.Pre-existing issue in
invert_test_clover_asym, 6 of 319 cases fail, all*_mat_pc_normop_pc_l2_heavy_quark. The final residual is 1.080e-12 against a tolerance of 1.076e-12.clover_force_testwith twisted clover enabled, on 1 1 1 2: 32 of 32 pass. The suites are clover, clover RHMC, twisted clover, and non-degenerate twisted clover.MILC
develop(551dc479)su3_rhmd_hisq, NERSC small RHMC (18³×36, 2 trajectories). QUDA: QMP and QIO, staggered only.develop(af7e15080) give identicaldelta S,PLAQ,P_LOOP,G_LOOP,PBPand solver iteration counts, on both 1 GPU and 2 ranks on one GPU (t partitioned).P_LOOPcomes fromqudaGaugeMeasurementsPhased: −1.589037e-02, −9.524123e-03 on 1 GPU and −1.589043e-02, −9.524098e-03 on 2 ranks.