Matrix Core Programming on AMD CDNA3 and CDNA4 Architecture