{"pub_number":"US12373515B2","doc_number":"12373515","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Computational primitives using a matrix multiplication accelerator","abstract_text":"A method for performing a fundamental computational primitive in a device is provided, where the device includes a processor and a matrix multiplication accelerator (MMA). The method includes configuring a streaming engine in the device to stream data for the fundamental computational primitive from memory, configuring the MMA to format the data, and executing the fundamental computational primitive by the device.","claims":[{"number":1,"text":"A device comprising: a memory; a processor coupled to the memory; and a matrix multiplication accelerator (MMA) coupled to the processor and including a multiplier matrix buffer and a multiplicand matrix buffer, wherein the device is operable to: receive a data vector including a filter of a length greater than a width of the multiplicand matrix buffer; decompose the filter into a plurality of smaller filters, wherein sizes of the smaller filters are less than the width of the multiplicand matrix buffer; format the data vector based on a computational primitive; and configure, based on the computational primitive, the MMA to format the data vector.","independent":true},{"number":2,"text":"The device of claim 1, wherein the processor is configurable to decompose the filter into the plurality of smaller filters.","independent":false,"depends_on":[1]},{"number":3,"text":"The device of claim 1, wherein the data vector comprises a row of a matrix, and wherein the MMA is configurable to execute the computational primitive by at least copying the data vector to a column in the multiplicand matrix buffer.","independent":false,"depends_on":[1]},{"number":4,"text":"The device of claim 1, wherein the device is operable to configure the MMA to offset load data in the multiplicand matrix buffer.","independent":false,"depends_on":[1]},{"number":5,"text":"The device of claim 1, wherein the MMA is configurable to execute the computational primitive to generate an output, and wherein the processor is configurable to add zero padding to the output of the MMA.","independent":false,"depends_on":[1]},{"number":6,"text":"The device of claim 1, wherein the MMA is configurable to execute the computational primitive to generate an output, and wherein the processor is configurable to perform seam removal on the output of the MMA.","independent":false,"depends_on":[1]},{"number":7,"text":"The device of claim 1, wherein the MMA is configurable to execute the computational primitive to generate an output, and wherein the processor is configurable to perform column subsampling on the output of the MMA according to a specified stride.","independent":false,"depends_on":[1]},{"number":8,"text":"The device of claim 1, further comprising a streaming engine configurable to tile data of a plurality of feature maps into a filtering matrix.","independent":false,"depends_on":[1]}],"description":"CROSS-REFERENCE TO RELATED APPLICATIONS\nThis application is a continuation of U.S. patent application Ser. No. 17/367,389, filed Jul. 4, 2021, currently pending and scheduled to grant as U.S. Pat. No. 11,960,567 on Apr. 16, 2024, which is a continuation of U.S. patent application Ser. No. 15/907,356, filed Feb. 28, 2018, which claims benefit of U.S. Provisional Patent Application No. 62/465,620, filed Mar. 1, 2017, the entireties of all of which are incorporated herein by reference.\nBACKGROUND\nApplications such as speech recognition, intelligent industrial control, object detection and recognition, and vision are increasingly being migrated to embedded devices. Hardware acceleration may be needed in such devices to support the computational needs of the algorithms used in such applications.\nSUMMARY\nExamples of the present disclosure relate to implementing fundamental computational primitives using a matrix multiplication accelerator. In one aspect, a method for performing a fundamental computational primitive in a device is provided, where the device includes a processor and a matrix multiplication accelerator (MMA). The method includes configuring a streaming engine in the device to stream data for the fundamental computational primitive from memory, configuring the MMA to format the data, and executing the fundamental computational primitive by the device.\nIn one aspect, a device is provided that includes a memory, a processor coupled to the memory, and a matrix multiplication accelerator (MMA) coupled to the processor, the MMA including a multiplier buffer and a first multiplicand buffer, wherein the device is operable to configure a streaming engine in the device to stream data for a fundamental computational primitive from the memory, configure the MMA to format the data and execute the fundamental computational primitive.\nBRIEF DESCRIPTION OF THE DRAWINGS\nFIG.\n1\ndepicts an example device configurable to implement fundamental computational primitives using a ma","inventors":[{"name":"Arthur John Redfern","slug":"arthur-john-redfern","city":"Plano","country":"US"},{"name":"Timothy David Anderson","slug":"timothy-david-anderson","city":"University Park","country":"US"},{"name":"Kai Chirca","slug":"kai-chirca","city":"Dallas","country":"US"},{"name":"Chenchi Luo","slug":"chenchi-luo","city":"Plano","country":"US"},{"name":"Zhenhua Yu","slug":"zhenhua-yu","city":"Santa Clara","country":"US"}],"assignees":[{"name":"TEXAS INSTRUMENTS INCORPORATED","slug":"texas-instruments-incorporated","country":"US"}],"examiners":[],"cpc_codes":["G06F 17/141","G06F 17/16","G06N 3/045","G06N 3/063"],"ipc_codes":["G06F 17/14","G06F 17/16","G06N 3/045","G06N 3/063"],"filing_date":"2024-04-12","pub_date":"2025-07-29","grant_date":"2025-07-29","expiration_date":"2044-04-12","family_members":[],"citations_made":[{"pub_number":"US4897717A","category":"applicant"},{"pub_number":"US5099447A","category":"applicant"},{"pub_number":"US5745793A","category":"applicant"},{"pub_number":"US5870568A","category":"applicant"},{"pub_number":"US5982375A","category":"applicant"},{"pub_number":"US8301749B1","category":"applicant"},{"pub_number":"US9606803B2","category":"applicant"},{"pub_number":"US9645974B1","category":"applicant"},{"pub_number":"US10114613B2","category":"applicant"},{"pub_number":"US20020191692A1","category":"applicant"},{"pub_number":"US20040136316A1","category":"applicant"},{"pub_number":"US20060095721A1","category":"examiner"},{"pub_number":"US20090292758A1","category":"applicant"},{"pub_number":"US20090300091A1","category":"applicant"},{"pub_number":"US20110153707A1","category":"applicant"},{"pub_number":"US20120011348A1","category":"applicant"},{"pub_number":"US20120072917A1","category":"applicant"},{"pub_number":"US20120140814A1","category":"applicant"},{"pub_number":"US20120216096A1","category":"applicant"},{"pub_number":"US20120251013A1","category":"applicant"},{"pub_number":"US20120268298A1","category":"applicant"},{"pub_number":"US20130262548A1","category":"applicant"},{"pub_number":"US20140167987A1","category":"applicant"},{"pub_number":"US20140365548A1","category":"applicant"},{"pub_number":"US20150019840A1","category":"applicant"},{"pub_number":"US20160373158A1","category":"applicant"},{"pub_number":"US20170139710A1","category":"applicant"},{"pub_number":"US20170153890A1","category":"applicant"},{"pub_number":"US20170153959A1","category":"applicant"},{"pub_number":"US20170168898A1","category":"applicant"},{"pub_number":"US20170249150A1","category":"applicant"},{"pub_number":"US20170308381A1","category":"applicant"},{"pub_number":"US20190266218A1","category":"applicant"},{"pub_number":"US20200051551A1","category":"applicant"},{"pub_number":"CN101933005","category":"applicant"},{"pub_number":"CN103714044","category":"applicant"},{"pub_number":"CN104899182","category":"applicant"},{"pub_number":"CN104915322","category":"applicant"},{"pub_number":"CN106228238","category":"applicant"},{"pub_number":"JP2481338","category":"applicant"}],"non_patent_literature":["Utku Aydoinat, et al.","“","An Open CL(TM) Deep Learning Accelerator on Arria 10","”",", arxiv.org,Cornell University Library, 201 Olin Library, Cornell University Ithaca, NY 14853, Jan. 13, 2017, XP080741254.","Hussain Tassadaq, et al.","“","PPMC: A Program Pattern Based Mwmory Controller","”",", Mar. 19, 2012, International Conference on Financial Cryptography and Data Security; [Lecture Notes in Computer Science; Lect. Noptes Computer], Springer, Berlin, Heidelberg, pp. 89-101, XP047379471, ISBN: 978-3-642-17318-9."],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":40,"npl_citations":10,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3483854,"pagerank_rank":3483854,"velocity_rank":3483854,"family_citations":0}}