[flang-commits] [PATCH] D102652: [flang] Implement MATMUL in the runtime
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Mon May 17 14:08:51 PDT 2021
klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added subscribers: jdoerfert, mgorny.
Herald added a reviewer: sscalpone.
klausler requested review of this revision.
Define an API for the transformational intrinsic function MATMUL,
implement it, and add some basic unit tests. The large number of
possible argument type combinations are covered by a set of
generalized templates that are instantiated for each valid
pair of possible argument types.
Places where BLAS-2/3 routines could be called for acceleration
are marked with TODOs. Handling for other special cases (e.g.,
known-shape 3x3 matrices and vectors) are deferred.
Some minor tweaks were made to the recent related implementation
of DOT_PRODUCT to reflect lessons learned.
https://reviews.llvm.org/D102652
Files:
flang/runtime/CMakeLists.txt
flang/runtime/dot-product.cpp
flang/runtime/matmul.cpp
flang/runtime/matmul.h
flang/runtime/reduction.h
flang/unittests/RuntimeGTest/CMakeLists.txt
flang/unittests/RuntimeGTest/Matmul.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102652.345993.patch
Type: text/x-patch
Size: 26224 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210517/e913a1ae/attachment-0001.bin>
More information about the flang-commits
mailing list