{"pub_number":"US12379927B2","doc_number":"12379927","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"BFLOAT16 scale and/or reduce instructions","abstract_text":"Techniques for scale and reduction of BF16 data elements are described. An exemplary instruction includes fields for an having fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of a packed data destination operand, wherein the opcode is to indicate that execution circuitry is to perform, for each data element position of the packed data source operands, a floating point scale operation of a BF16 data element of the first packed data source by multiplying the data element by a power of 2 value, wherein a value of the exponent of the power of 2 value is a floor value of a BF16 data element of the second packed data source, and store a result of the floating point scale operation into a corresponding data element position of the packed data destination operand.","claims":[{"number":1,"text":"An apparatus comprising: decode circuitry to decode an instance of a single instruction, the single instruction to include fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of a packed data destination operand, wherein the opcode is to indicate that execution circuitry is to perform, for each data element position of the packed data source operands, a floating point scale operation of a BF16 data element of the first packed data source by multiplying the data element by a power of 2 value, wherein a value of an exponent of the power of 2 value is a floor value of a BF16 data element of the second packed data source, and store a result of the floating point scale operation into a corresponding data element position of the packed data destination operand; and the execution circuitry to execute the decoded instruction according to the opcode.","independent":true},{"number":2,"text":"The apparatus of claim 1, wherein the field for the identification of the first source operand is to identify a vector register.","independent":false,"depends_on":[1]},{"number":3,"text":"The apparatus of claim 1, wherein the field for the identification of the first source operand is to identify a memory location.","independent":false,"depends_on":[1]},{"number":4,"text":"The apparatus of claim 1, wherein the execution circuitry is to use a round to nearest even rounding mode during execution of the decoded instruction.","independent":false,"depends_on":[1]},{"number":5,"text":"The apparatus of claim 1, wherein the floor value is a zero when the data element of the second packed data source is a denormal.","independent":false,"depends_on":[1]},{"number":6,"text":"The apparatus of claim 1, wherein the data element of the first packed data source is a zero when the data element of the first packed data source is a denormal.","independent":false,"depends_on":[1]},{"number":7,"text":"The apparatus of claim 1, wherein the instruction is to further include one or more fields for a writemask register.","independent":false,"depends_on":[1]},{"number":8,"text":"A system comprising: memory to store an instance of a single instruction; decode circuitry to decode the instance of the single instruction, the single instruction to include fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of a packed data destination operand, wherein the opcode is to indicate that execution circuitry is to perform, for each data element position of the packed data source operands, a floating point scale operation of a BF16 data element of the first packed data source by multiplying the data element by a power of 2 value, wherein a value of an exponent of the power of 2 value is a floor value of a BF16 data element of the second packed data source, and store a result of the floating point scale operation into a corresponding data element position of the packed data destination operand; and the execution circuitry to execute the deco","independent":true}],"description":"BACKGROUND\nIn recent years fused-multiply-accumulate (FMA) units with lower-precision multiplications and higher-precision accumulation have proven useful in machine learning/artificial intelligence applications, most notably in training deep neural networks due to their extreme computational intensity. Compared to classical IEEE-754 32-bit (FP32) and 64-bit (FP64) arithmetic, this reduced precision arithmetic can naturally be sped up disproportional to their shortened width.\nBRIEF DESCRIPTION OF DRAWINGS\nVarious embodiments in accordance with the present disclosure will be described with reference to the drawings, in which:\nFIG.\n1\nillustrates different floating point representation formats.\nFIG.\n2\nillustrates an exemplary execution of an instruction to calculate a scale of BF16 data elements.\nFIG.\n3\nillustrates an embodiment of method performed by a processor to process a calculate a scale of BF16 data elements instruction.\nFIG.\n4\nillustrates exemplary embodiments of pseudo code representing the execution and format of a calculate a scale of BF16 data elements instruction\nFIG.\n5\nillustrates embodiments of execution of an extract a reduced argument of BF16 data elements instruction according to some embodiments.\nFIG.\n6\nillustrates embodiments of an exemplary method performed by a processor to process an instruction to extract a reduced argument of BF16 data elements according to some embodiments.\nFIG.\n7\nillustrates exemplary embodiments of pseudo code representing the execution and format of an extract a reduced argument of BF16 data elements instruction.\nFIG.\n8\nillustrates embodiments of execution of a round BF16 data elements instruction according to some embodiments.\nFIG.\n9\nillustrates embodiments of an exemplary method performed by a processor to process an instruction to round BF16 data elements according to some embodiments.\nFIG.\n10\nillustrates exemplary embodiments of pseudo code representing the execution and format of a round BF16 data elements instruction.","inventors":[{"name":"Menachem Adelman","slug":"menachem-adelman","city":"Haifa","country":"IL"},{"name":"Alexander Heinecke","slug":"alexander-heinecke","city":"San Jose","country":"US"},{"name":"Robert Valentine","slug":"robert-valentine","city":"Kiryat Tivon","country":"IL"},{"name":"Zeev Sperber","slug":"zeev-sperber","city":"Zikhron Yaakov","country":"IL"},{"name":"Amit Gradstein","slug":"amit-gradstein","city":"Binyamina","country":"IL"},{"name":"Mark Charney","slug":"mark-charney","city":"Lexington","country":"US"},{"name":"Evangelos Georganas","slug":"evangelos-georganas","city":"San Mateo","country":"US"},{"name":"Dhiraj Kalamkar","slug":"dhiraj-kalamkar","city":"Bangalore","country":"IN"},{"name":"Christopher Hughes","slug":"christopher-hughes","city":"Santa Clara","country":"US"},{"name":"Cristina Anderson","slug":"cristina-anderson","city":"Hillsboro","country":"US"}],"assignees":[{"name":"Intel Corporation","slug":"intel-corporation","country":"US"}],"examiners":[],"cpc_codes":["G06F 9/30014","G06F 9/30036","G06F 9/30038","G06F 9/30101","G06F 9/30145"],"ipc_codes":["G06F 9/30"],"filing_date":"2021-08-31","pub_date":"2025-08-05","grant_date":"2025-08-05","expiration_date":"2041-08-31","family_members":[],"citations_made":[{"pub_number":"US4815021A","category":"applicant"},{"pub_number":"US9448765B2","category":"examiner"},{"pub_number":"US9606770B2","category":"examiner"},{"pub_number":"US11366663B2","category":"examiner"},{"pub_number":"US11372643B2","category":"examiner"},{"pub_number":"US20030018676A1","category":"applicant"},{"pub_number":"US20110047358A1","category":"applicant"},{"pub_number":"US20140067894A1","category":"applicant"},{"pub_number":"US20150088946A1","category":"examiner"},{"pub_number":"US20160224512A1","category":"applicant"},{"pub_number":"US20190079768A1","category":"applicant"},{"pub_number":"US20190220278A1","category":"examiner"},{"pub_number":"US20190384575A1","category":"applicant"},{"pub_number":"US20200184309A1","category":"applicant"},{"pub_number":"US20200371794A1","category":"applicant"},{"pub_number":"US20200371805A1","category":"applicant"},{"pub_number":"US20210117194A1","category":"applicant"},{"pub_number":"US20210157589A1","category":"applicant"},{"pub_number":"US20220121727A1","category":"applicant"},{"pub_number":"US20220413805A1","category":"examiner"},{"pub_number":"US20230068781A1","category":"examiner"},{"pub_number":"US20240045682A1","category":"examiner"},{"pub_number":"CN112199119A","category":"applicant"},{"pub_number":"GB2186105A","category":"applicant"},{"pub_number":"WO2008036946A1","category":"applicant"},{"pub_number":"WO2020190814A1","category":"applicant"}],"non_patent_literature":["European Search Report and Search Opinion, EP App. No. 22185939.0, Jan. 20, 2023, 9 pages.","European Search Report and Search Opinion, EP App. No. 22185990.3, Jan. 20, 2023, 10 pages.","Extended European Search Report and Search Opinion for Application No. 22183762.8, Dec. 21, 2022, 9 pages.","Intel,","“","Intel (registered) 64 and IA-32 Architectures Software Developer's Manual","”",", vol. 2 (2A, 2B","&","2C): Instruction Set Reference, A-Z, Order No. 325383-055US, Jun. 2015, 1011 pages."],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":26,"npl_citations":10,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3478137,"pagerank_rank":3478137,"velocity_rank":3478137,"family_citations":0}}