Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

cublas gemm support fp64 #1421

Merged
merged 2 commits into from
May 15, 2023
Merged

Conversation

FisherWY
Copy link
Contributor

  1. 在Paddle侧单测打开matmul单测后检查到CINN的matmul尚未支持float64,此PR完成了该数据类型的支持
  2. 使用新单测体系重写了matmul的单测

@paddle-bot
Copy link

paddle-bot bot commented May 12, 2023

Thanks for your contribution!

@FisherWY
Copy link
Contributor Author

描述

修改的单测

序号 算子 单测文件
46 matmul test_matmul_op.py

算子类型

  • ElementWise:输入张量索引和输出张量索引之间存在一对一的对应关系
  • Broadcast:输入张量索引和输出张量索引之间存在一对多的对应关系
  • Injective:单射算子,可以将一个输出 axis 映射到一个输入 axis
  • Reduction:输入张量索引和输出张量索引之间存在多对一的对应关系
  • OutFusible:复杂算子,仍然可以将一对一的算子融合到其输出中。
  • kNonFusible:无法融合的算子

OpMapper

  • 该算子是否 OpMapper? 如果是,请贴出在 Paddle 中对应的 OpMaker 代码路径。(给出 Github 链接更好)

Test Cases Checklist

张量维度

  • 1D 张量
  • 2D 张量
  • 3D 张量
  • 4D 张量

special shape

挑选 2D/3D/4D 张量中的一个,测试下面的特殊情况。

  • 其中一个维度为 1
  • 其中一个维度小于 1024
  • 其中一个维度大于 1024
  • 向量的所有维度都是 1

张量数据类型

  • bool
  • uint8
  • int8
  • int16
  • int32
  • int64
  • float16
  • float32
  • float64

广播

  • 这个算子是否支持广播?
  • 广播的测试样例

算子属性

算子属性的测试用例。

  • 属性:
    • transpose_x
    • transpose_y
  • 使用 OpTestHelper 测试上述属性的笛卡尔积组合

Copy link
Collaborator

@thisjiang thisjiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thisjiang thisjiang merged commit 00a14d0 into PaddlePaddle:develop May 15, 2023
jiahy0825 pushed a commit to jiahy0825/CINN that referenced this pull request May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants