Repository navigation
fix(exx): validate device_exx choices and make selector types explicit - #8390
Open
Stardust0831 wants to merge 4 commits into
Open
Stardust0831 wants to merge 4 commits into
Stardust0831 wants to merge 4 commits into
Conversation
mohanchen
approved these changes
Nov 25, 2026
Collaborator
Author
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.
Reminder
AGENTS.mdanddocs/developers_guide/agent_governance.md.source/changes.Linked Issue
Follows the review of the LibRI/DDLA device selector in #8169.
Unit Tests and/or Case Tests for my changes
__GPU_RIdisabled and enabled. In each host build,OMP_NUM_THREADS=1 ./input-testspassed 53/53 andOMP_NUM_THREADS=1 ./exx-input-test --gtest_filter=DeviceExxInput.SelectionAndValidationpassed 1/1. The optional Google Test 1.11--gtest_death_test_style=threadsafemode lost captured stdout on both the base and this commit.cpusucceeded.../cpu/read-device-exx INPUT.ddlaexited 1 withInvalid INPUT parameter 'device_exx': supplied 'ddla'. Expected one String from {cpu, gpu}.The same diagnostic appeared with GPU RI enabled.../cpu/read-device-exx --help-device-exxlisted both choices. The selector test exercised the LCAO, GPU device and build-capability requirements.g++ -std=c++14 -fopenmp -fsyntax-onlycompiled the four real/complexExx_LRI_Interface::set_gpuspecializations against the LibRI v0.3.0.0 and DDLA v0.0.7 GPU headers. Coverage was limited to the host reader, selector and header instantiations. A full ABACUS build, MPI calculation and on-device EXX run were outside this check.What's changed?
Register
cpuandgpuwithitem.domain.set_choicesfordevice_exx. This lets INPUT validation report an invalid value together with the accepted choices and makes those choices available in parameter help. The default iscpu. Selectinggpustill requires LCAO,device=gpuand a build withENABLE_LIBRI_GPU.Exercise the invalid
ddlavalue through a real INPUT file. Remove the five uses ofautointroduced by the EXX selector change. The LibRI mode usesRI::LRI_Cal_Mode&. The test names its list, iterator and input-reference types and uses a static helper for rejection assertions.Governance Notes
No documentation update required because the built-in help and generated INPUT manual read the choices from the
Input_Itemregistration. No governance exception is needed.