Repository navigation
Conversation
…tests. Check CI before moving to other precisions
…ted comments in dorgx family
…make work successfully on my local machine
…econd pass on documentation for my touched functions
…nt for other precisions
Adding non-trivial terminating case to recursive larft
Added missing parameter to clarft_ut call inside clarft
Fixed compilation warnings related to unused parameters
|
This may be none of my business, sorry if so. It looks a lot to me like Also, 27000+ lines of code is quite a lot. Might it make sense to break this down into chunks? Also also, from a |
?ACXPY was a bit of a hack job by me to try to avoid calling {c,z}gemm in some cases, but after some more development we concluded that it's just better to use GEMM unless we want to take on the mantle of adding this to BLAS and pushing for it to be optimized, which is a bit beyond the scope of what I am able to do at this point. We also agree that doing all this in one go was not the correct move and we are breaking this down as follows:
I would like to keep this draft around so that I can reference it in the new PRs and give some reasoning for why we are doing some things as I think it makes some of them more defensible (And reminds me to actually finish the job instead of sitting around on it for way too long), but we can delete it if that's poor practice/not how we want to work in this repository. For the 3 that are not made yet, I may add more smaller PRs to keep it more reasonable. It's my first time really working in a repo this large, so I appreciate all the insight and help structuring everything in a sensible way! I'll keep the rebase idea in mind as I am fixing other conflicts as I did the merge previously and that kinda made the history hard to read (only 3 commits but I can see how larger PRs would drastically complicate this) |
My understanding of general practice in this project is it would definitely want to be in BLAS. It being optimised isn't a thing the reference implementation needs to do, though; that only needs to be correct (and have good tests).
Looks like a good plan to me.
That's not for me to say, but it being in draft makes it clear what is going on at least to me.
@jprhyne Based on my experience dealing with other large projects, getting the branch strategy right can make things a lot easier. I suggested above that you With that smaller set of commits, you would then rebase those against current An alternative approach is to boil things down to one huge commit, rebase that against
You may also need to actually rebase this set of changes against sub-parts you've already made, to avoid clashes and redundancy. This is quite a complex set of activities, but I don't think it's simplifiable a lot further. One possibility would be to make sub-PRs by If you'd like to discuss this further, it would probably make most sense to do over email or even something like Teams. |
Description
Hey Y'all!
I implementted some performance improvements for computing the explicit Q factor in the X{or,un}gY routines. This takes 2 forms.
C_1is 0. This leads to some improvements in performance as well as on the first iteration assuming thatC_2is I. This also leads to some performance improvements especially as the block size increasesimprovements down the line which I am in the process of implementing.
A more formal writeup of this can be found at my repository for my Master's Project
I compiled the tex file with the current version of pdftex on a linux machine.
In addition, I have attached some performance plots of computing the Q factor from the QR and LQ factorizations in double precision to motivate why I think it will be beneficial to refactor xLARFT to return a T matrix of the same shape as the triangular factor even before implementing the panel factorization. To see the justification of the panel factorization, see the above linked repository folder
dorgqrDorglqOptPerfExperiments.pdf
dorgqrDorglqPerfExperiments.pdf
dorgqrPerfExperiments.pdf
I ran these experiments on an AMD EPYC 7502 CPU and I ran each experiment 10 times reporting the mean of those experiments. To see the form of these experiments, see the files titled
timeDorgqrVsDorglq.c,timeDorgqrVsDorglq.sh, andtime_dorgqr_vs_dorglq.batchfound here. The .c file is the main driver that calls our FORTRAN routines and times execution, the .sh file calls our .c file with varying inputs, and the .batch file is what is used to run the job via slurm on the HPC I used.The main takeaway from these figures is that the slight improvements that we see in QR are not present as much in the LQ factorization so even without the more efficient panel factorization.
Checklist