Repository navigation
[apps] Fix log algorithm bug, tighten FP result checks for several kernels, add check for FFT imaginary parts; [hw] Fix axi_cut parameter names for gate-level simulation - #554
Open
hopang-0221 wants to merge 2 commits into
Conversation
…rnels, add check for FFT imaginary parts; [hw] Fix axi_cut parameter names for gate-level simulation
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.
Summary
log: missingxfactor in the polynomial.__log_1xf64/__log_2xf32computedy = P(x)·zinstead ofy = P(x)·x·z(z = x²), as in the Cepheslogf/sse_mathfunlog_psreference. The fix adds the missingvfmulfor both precisions.cos,exp,logandfftusedTHRESHOLD 1, which hid thelogbug. It is now1e-4, as forsoftmaxand the LLM kernels.fftimaginary check. The "Img part" check compared the real parts again (samples_reim[i]vssamples_copy[i][0]). It now comparessamples_reim[i + NFFT]withsamples_copy[i][1].logis added to thesimulateapp list; it was not simulated before.ara_soc:axi_cutparameter names underTARGET_GATESIM.i_system_cutoverrodereq_t/resp_t, whichaxi_cut(axi v0.39.5) namesaxi_req_t/axi_resp_t. RTL simulation and CI never build this instance.Changelog
Fixed
xfactor in thelogkernel polynomial (FP64 and FP32)fftresult checkaxi_cutparameter names inara_socfor gate-level simulationAdded
login CIChanged
cos,exp,logandfftfrom 1 to 1e-4Checklist