Plan
Admit the wgpu adapter in the core's test support, then raise the rotations' cutoff to θ² = 1 and the test sphere's to r² = 0.1, with their series lengthened and checked against independent references.
Builds on Accuracy on the GPU: Implementation
skoro-core: admission#
- Add
Admissiontoskoro_core::testing, with its boundsNEAR,FARandFAR_RANGE, its privateinputs(),measureandadmit, and the message format{:.2e}of the implementation. Tests:admission_names_the_error_and_the_bound,the_host_is_admitted_in_single_precision. - Admit the adapter in
testing::wgpu(), caching the outcome in aOnceLock, and add the wgpu-gated test that builds the adapter’s target directly, prints itsAdmissionand asserts it is admitted. Run it on the adapter and record theAdmissionin the commit. Tests:the_adapter_is_admitted.
skoro-spatial: the coefficients#
- Move
BERNOULLI() from the tests intoseries.rs, and buildC_SERIESfrom it withtable!, still at its present seven terms. Add the test helperzeta. Givesummedtwenty terms, withC’s terms fromzeta. Tests:the_bernoulli_numbers_are_the_zeta_values,series_meet_closed_forms(itsf32andf64instances, against the new reference). - Raise
CUTOFFto1.0inseries.rsand intests/common/mod.rs, and lengthen the series to 8 terms foraandb, 9 forA,B,DandE, and 12 forC. Update the module’s doc comment and the comment onsummed. Move the points ofcoefficients_are_their_closed_forms_away_from_the_identityto , and , and add2.5to thelengthsofseries_meet_closed_forms. Run the crate’s tests with--features wgpuon the adapter, and say so, with the adapter, in the commit. Tests:series_are_truncated_below_rounding,coefficients_are_their_closed_forms_away_from_the_identity,series_meet_closed_forms::wgpu,composites_pass_check_operation::wgpu.
skoro: the test sphere#
- Split
CUTintests/common/sphere.rsintoEXP_CUT = 0.1andLOG_CUT = 1e-8. AddCOS_SERIES,SINC_SERIES(eight terms each),LOG_VOLUME_SERIES(ten terms) and a localhorner. Have the retraction’sNear::SelectedandNear::Guardedand the guarded log-volume select their series belowEXP_CUT, and the logarithm useLOG_CUT. LeaveNear::Closedas it is. Add azetahelper to the sphere’s tests. Run the crate’s tests with--features wgpuon the adapter, and say so, with the adapter, in the commit. Tests:exponential_series_are_truncated_below_rounding,exponential_series_meet_closed_forms,exponential_sphere_passes_check_volume::wgpu.
Done when#
bin/wf checkpasses.cargo fmt --all --checkpasses, andcargo clippy --workspace --all-targets -- -D warningspasses, with and without--features wgpu.cargo test --workspacepasses.cargo test --workspace --features wgpupasses on the adapter, with every wgpu test admitted. The last commit states the adapter and theAdmissionmeasured.cd site && pnpm buildpasses.