-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing Cross-Backend GPU Error Computation via NN Output Saving …
…and Loading (#858) * Save and load NN outputs for cross-backend test In order to improve testing and cross-backend checks, this change introduces the ability to save and load base files for the GPU error test. A new `baseFileName` argument is added to the `runFP16Test` function in `testnnevalcanary.cpp`. When provided, this argument enables the test to load a previously saved base file instead of recomputing the base positions from scratch. This allows a backend to load a baseline NN output file during testing. The commit introduces two new functions in `testnnevalcanary.cpp`: `saveBaseToFile` and `loadBaseFromFile`. The former takes a vector of NNOutput and saves it to a binary file specified by `baseFileName`, while the latter loads and populates a vector with NNOutput from a binary file. By allowing the test to load base files, it becomes easier to compare and validate results between different backends. This enhances the overall accuracy and reliability of the testing process. * Return 1 if testgpuerror is not successful * Set expected concurrent evals to 2 for Eigen This commit sets the expected concurrent evaluations to 2 for Eigen backend to fix a problem of memory usage explosion by too many concurrent evaluations.
- Loading branch information
1 parent
55023a4
commit 9d2043e
Showing
4 changed files
with
111 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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