Towards an efficient use of the BLAS library for multilinear tensor contractions
Mathematical operators whose transformation rules constitute the building blocks of a multi-linear algebra are widely used in physics and engineering applications where they are very often represented as tensors. In the last century, thanks to the advances in tensor calculus, it was possible to unco...
Gespeichert in:
Veröffentlicht in: | Applied mathematics and computation 2014-05, Vol.235, p.454-468 |
---|---|
Hauptverfasser: | , , , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
container_end_page | 468 |
---|---|
container_issue | |
container_start_page | 454 |
container_title | Applied mathematics and computation |
container_volume | 235 |
creator | Di Napoli, Edoardo Fabregat-Traver, Diego Quintana-Ortí, Gregorio Bientinesi, Paolo |
description | Mathematical operators whose transformation rules constitute the building blocks of a multi-linear algebra are widely used in physics and engineering applications where they are very often represented as tensors. In the last century, thanks to the advances in tensor calculus, it was possible to uncover new research fields and make remarkable progress in the existing ones, from electromagnetism to the dynamics of fluids and from the mechanics of rigid bodies to quantum mechanics of many atoms. By now, the formal mathematical and geometrical properties of tensors are well defined and understood; conversely, in the context of scientific and high-performance computing, many tensor-related problems are still open. In this paper, we address the problem of efficiently computing contractions among two tensors of arbitrary dimension by using kernels from the highly optimized BLAS library. In particular, we establish precise conditions to determine if and when GEMM, the kernel for matrix products, can be used. Such conditions take into consideration both the nature of the operation and the storage scheme of the tensors, and induce a classification of the contractions into three groups. For each group, we provide a recipe to guide the users towards the most effective use of BLAS. |
doi_str_mv | 10.1016/j.amc.2014.02.051 |
format | Article |
fullrecord | <record><control><sourceid>proquest_cross</sourceid><recordid>TN_cdi_proquest_miscellaneous_1551058855</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><els_id>S0096300314002902</els_id><sourcerecordid>1551058855</sourcerecordid><originalsourceid>FETCH-LOGICAL-c373t-ada3cbbbe9d8ebc496d45d1a719ea93c8f3a99b62104a305c08e1393bb1a4b0e3</originalsourceid><addsrcrecordid>eNp9kE1LxDAURYMoOI7-AHdZuml9aZq2wdUofsGAguM6JOkrZmibMUkV_70dxrWrB497LtxDyCWDnAGrrre5HmxeACtzKHIQ7IgsWFPzTFSlPCYLAFllHICfkrMYtwBQV6xckNeN_9ahjVSPFLvOWYdjolNE6juaPpDerldvtHcm6PBDOx_oMPXJ9W5EHWjCMc4v68cUtE3Oj_GcnHS6j3jxd5fk_eF-c_eUrV8en-9W68zymqdMt5pbYwzKtkFjS1m1pWiZrplELbltOq6lNFXBoNQchIUGGZfcGKZLA8iX5OrQuwv-c8KY1OCixb7XI_opKiYEA9E0QsxRdoja4GMM2KldcMO8RzFQe3tqq2Z7am9PQaFmezNzc2Bw3vDlMKi4V2OxdQFtUq13_9C_FNN4aA</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>1551058855</pqid></control><display><type>article</type><title>Towards an efficient use of the BLAS library for multilinear tensor contractions</title><source>Access via ScienceDirect (Elsevier)</source><creator>Di Napoli, Edoardo ; Fabregat-Traver, Diego ; Quintana-Ortí, Gregorio ; Bientinesi, Paolo</creator><creatorcontrib>Di Napoli, Edoardo ; Fabregat-Traver, Diego ; Quintana-Ortí, Gregorio ; Bientinesi, Paolo</creatorcontrib><description>Mathematical operators whose transformation rules constitute the building blocks of a multi-linear algebra are widely used in physics and engineering applications where they are very often represented as tensors. In the last century, thanks to the advances in tensor calculus, it was possible to uncover new research fields and make remarkable progress in the existing ones, from electromagnetism to the dynamics of fluids and from the mechanics of rigid bodies to quantum mechanics of many atoms. By now, the formal mathematical and geometrical properties of tensors are well defined and understood; conversely, in the context of scientific and high-performance computing, many tensor-related problems are still open. In this paper, we address the problem of efficiently computing contractions among two tensors of arbitrary dimension by using kernels from the highly optimized BLAS library. In particular, we establish precise conditions to determine if and when GEMM, the kernel for matrix products, can be used. Such conditions take into consideration both the nature of the operation and the storage scheme of the tensors, and induce a classification of the contractions into three groups. For each group, we provide a recipe to guide the users towards the most effective use of BLAS.</description><identifier>ISSN: 0096-3003</identifier><identifier>EISSN: 1873-5649</identifier><identifier>DOI: 10.1016/j.amc.2014.02.051</identifier><language>eng</language><publisher>Elsevier Inc</publisher><subject>Algebra ; BLAS ; Computation ; High-performance multi-linear computations ; Kernels ; Libraries ; Mathematical analysis ; Mathematical models ; Rigid-body dynamics ; Tensor contractions in quantum chemistry ; Tensors</subject><ispartof>Applied mathematics and computation, 2014-05, Vol.235, p.454-468</ispartof><rights>2014 Elsevier Inc.</rights><lds50>peer_reviewed</lds50><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed><citedby>FETCH-LOGICAL-c373t-ada3cbbbe9d8ebc496d45d1a719ea93c8f3a99b62104a305c08e1393bb1a4b0e3</citedby><cites>FETCH-LOGICAL-c373t-ada3cbbbe9d8ebc496d45d1a719ea93c8f3a99b62104a305c08e1393bb1a4b0e3</cites></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><linktohtml>$$Uhttps://dx.doi.org/10.1016/j.amc.2014.02.051$$EHTML$$P50$$Gelsevier$$H</linktohtml><link.rule.ids>314,780,784,3550,27924,27925,45995</link.rule.ids></links><search><creatorcontrib>Di Napoli, Edoardo</creatorcontrib><creatorcontrib>Fabregat-Traver, Diego</creatorcontrib><creatorcontrib>Quintana-Ortí, Gregorio</creatorcontrib><creatorcontrib>Bientinesi, Paolo</creatorcontrib><title>Towards an efficient use of the BLAS library for multilinear tensor contractions</title><title>Applied mathematics and computation</title><description>Mathematical operators whose transformation rules constitute the building blocks of a multi-linear algebra are widely used in physics and engineering applications where they are very often represented as tensors. In the last century, thanks to the advances in tensor calculus, it was possible to uncover new research fields and make remarkable progress in the existing ones, from electromagnetism to the dynamics of fluids and from the mechanics of rigid bodies to quantum mechanics of many atoms. By now, the formal mathematical and geometrical properties of tensors are well defined and understood; conversely, in the context of scientific and high-performance computing, many tensor-related problems are still open. In this paper, we address the problem of efficiently computing contractions among two tensors of arbitrary dimension by using kernels from the highly optimized BLAS library. In particular, we establish precise conditions to determine if and when GEMM, the kernel for matrix products, can be used. Such conditions take into consideration both the nature of the operation and the storage scheme of the tensors, and induce a classification of the contractions into three groups. For each group, we provide a recipe to guide the users towards the most effective use of BLAS.</description><subject>Algebra</subject><subject>BLAS</subject><subject>Computation</subject><subject>High-performance multi-linear computations</subject><subject>Kernels</subject><subject>Libraries</subject><subject>Mathematical analysis</subject><subject>Mathematical models</subject><subject>Rigid-body dynamics</subject><subject>Tensor contractions in quantum chemistry</subject><subject>Tensors</subject><issn>0096-3003</issn><issn>1873-5649</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2014</creationdate><recordtype>article</recordtype><recordid>eNp9kE1LxDAURYMoOI7-AHdZuml9aZq2wdUofsGAguM6JOkrZmibMUkV_70dxrWrB497LtxDyCWDnAGrrre5HmxeACtzKHIQ7IgsWFPzTFSlPCYLAFllHICfkrMYtwBQV6xckNeN_9ahjVSPFLvOWYdjolNE6juaPpDerldvtHcm6PBDOx_oMPXJ9W5EHWjCMc4v68cUtE3Oj_GcnHS6j3jxd5fk_eF-c_eUrV8en-9W68zymqdMt5pbYwzKtkFjS1m1pWiZrplELbltOq6lNFXBoNQchIUGGZfcGKZLA8iX5OrQuwv-c8KY1OCixb7XI_opKiYEA9E0QsxRdoja4GMM2KldcMO8RzFQe3tqq2Z7am9PQaFmezNzc2Bw3vDlMKi4V2OxdQFtUq13_9C_FNN4aA</recordid><startdate>20140525</startdate><enddate>20140525</enddate><creator>Di Napoli, Edoardo</creator><creator>Fabregat-Traver, Diego</creator><creator>Quintana-Ortí, Gregorio</creator><creator>Bientinesi, Paolo</creator><general>Elsevier Inc</general><scope>AAYXX</scope><scope>CITATION</scope><scope>7SC</scope><scope>7TB</scope><scope>8FD</scope><scope>FR3</scope><scope>JQ2</scope><scope>KR7</scope><scope>L7M</scope><scope>L~C</scope><scope>L~D</scope></search><sort><creationdate>20140525</creationdate><title>Towards an efficient use of the BLAS library for multilinear tensor contractions</title><author>Di Napoli, Edoardo ; Fabregat-Traver, Diego ; Quintana-Ortí, Gregorio ; Bientinesi, Paolo</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-c373t-ada3cbbbe9d8ebc496d45d1a719ea93c8f3a99b62104a305c08e1393bb1a4b0e3</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2014</creationdate><topic>Algebra</topic><topic>BLAS</topic><topic>Computation</topic><topic>High-performance multi-linear computations</topic><topic>Kernels</topic><topic>Libraries</topic><topic>Mathematical analysis</topic><topic>Mathematical models</topic><topic>Rigid-body dynamics</topic><topic>Tensor contractions in quantum chemistry</topic><topic>Tensors</topic><toplevel>peer_reviewed</toplevel><toplevel>online_resources</toplevel><creatorcontrib>Di Napoli, Edoardo</creatorcontrib><creatorcontrib>Fabregat-Traver, Diego</creatorcontrib><creatorcontrib>Quintana-Ortí, Gregorio</creatorcontrib><creatorcontrib>Bientinesi, Paolo</creatorcontrib><collection>CrossRef</collection><collection>Computer and Information Systems Abstracts</collection><collection>Mechanical & Transportation Engineering Abstracts</collection><collection>Technology Research Database</collection><collection>Engineering Research Database</collection><collection>ProQuest Computer Science Collection</collection><collection>Civil Engineering Abstracts</collection><collection>Advanced Technologies Database with Aerospace</collection><collection>Computer and Information Systems Abstracts Academic</collection><collection>Computer and Information Systems Abstracts Professional</collection><jtitle>Applied mathematics and computation</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Di Napoli, Edoardo</au><au>Fabregat-Traver, Diego</au><au>Quintana-Ortí, Gregorio</au><au>Bientinesi, Paolo</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Towards an efficient use of the BLAS library for multilinear tensor contractions</atitle><jtitle>Applied mathematics and computation</jtitle><date>2014-05-25</date><risdate>2014</risdate><volume>235</volume><spage>454</spage><epage>468</epage><pages>454-468</pages><issn>0096-3003</issn><eissn>1873-5649</eissn><abstract>Mathematical operators whose transformation rules constitute the building blocks of a multi-linear algebra are widely used in physics and engineering applications where they are very often represented as tensors. In the last century, thanks to the advances in tensor calculus, it was possible to uncover new research fields and make remarkable progress in the existing ones, from electromagnetism to the dynamics of fluids and from the mechanics of rigid bodies to quantum mechanics of many atoms. By now, the formal mathematical and geometrical properties of tensors are well defined and understood; conversely, in the context of scientific and high-performance computing, many tensor-related problems are still open. In this paper, we address the problem of efficiently computing contractions among two tensors of arbitrary dimension by using kernels from the highly optimized BLAS library. In particular, we establish precise conditions to determine if and when GEMM, the kernel for matrix products, can be used. Such conditions take into consideration both the nature of the operation and the storage scheme of the tensors, and induce a classification of the contractions into three groups. For each group, we provide a recipe to guide the users towards the most effective use of BLAS.</abstract><pub>Elsevier Inc</pub><doi>10.1016/j.amc.2014.02.051</doi><tpages>15</tpages><oa>free_for_read</oa></addata></record> |
fulltext | fulltext |
identifier | ISSN: 0096-3003 |
ispartof | Applied mathematics and computation, 2014-05, Vol.235, p.454-468 |
issn | 0096-3003 1873-5649 |
language | eng |
recordid | cdi_proquest_miscellaneous_1551058855 |
source | Access via ScienceDirect (Elsevier) |
subjects | Algebra BLAS Computation High-performance multi-linear computations Kernels Libraries Mathematical analysis Mathematical models Rigid-body dynamics Tensor contractions in quantum chemistry Tensors |
title | Towards an efficient use of the BLAS library for multilinear tensor contractions |
url | https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-01T23%3A24%3A19IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest_cross&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Towards%20an%20efficient%20use%20of%20the%20BLAS%20library%20for%20multilinear%20tensor%20contractions&rft.jtitle=Applied%20mathematics%20and%20computation&rft.au=Di%20Napoli,%20Edoardo&rft.date=2014-05-25&rft.volume=235&rft.spage=454&rft.epage=468&rft.pages=454-468&rft.issn=0096-3003&rft.eissn=1873-5649&rft_id=info:doi/10.1016/j.amc.2014.02.051&rft_dat=%3Cproquest_cross%3E1551058855%3C/proquest_cross%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=1551058855&rft_id=info:pmid/&rft_els_id=S0096300314002902&rfr_iscdi=true |