Open amahmudTT opened 1 month ago
@rdjogoTT FYI
This turned out to be a big change, fixing this in one single PR is impossible as many files have the default argument in the middle and its position needs to be changed if other default arguments are to be maintained. The call hierarchy needs to be correct too. since sometimes the template argument is passed down the chain, so instead of trying to make one large PR, we need to handle one low level/third party file along with its consumers at a time. Say one file in the third party should be modified while fixing everything related to that file in the call chain.
We could use this PR as one of the cleanup items to help new-hires get used to the pipeline. I mean submitting PRs, reviewing them etc.
Some functions have default argument for the template parameter defining is_fp32_dest_acc_en. When we generated the define DST_ACCUM_MODE which was meant to be passed to all the functions taking in the template parameter is_fp32_dest_acc_en. We missed some of those which have default arguments for this parameter. This may be harmless in some cases but opens up opportunities for bugs.
One example is
We call the above function from /tt_metal/include/compute_kernel_api/reg_api.h
We need to remove the default arguments and pass the defined DST_ACCUM_MODE that is defined. In the above example having the right code would actually follow a different code path.