【问题标题】:matrix multiplication without aggregation with cublasSgemm. How to?不使用 cublasSgemm 进行聚合的矩阵乘法。如何?
【发布时间】:2013-05-03 23:08:17
【问题描述】:

是否可以仅调用 cublasSgemm 或必须为每一行使用 cublasSscal??

//  A[m * k]     B[k  * n]    
//  | 1   |    | 7 1 4 7 |    | 7  1  4  7|     
//  | 2   |  * | 8 2 5 8 | =  |16  4 10 16|
//  | 3   |    | 9 3 6 9 |    |27  9 18 27|  

【问题讨论】:

    标签: cuda


    【解决方案1】:

    CUBLAS(或标准 BLAS)中没有 Hadamard product 或广播,并且无法按照您的要求使用 gemm。

    【讨论】:

    • [b]谢谢。重现此功能的步骤是什么?这也不起作用。[/b] [code] float* iterMatrix = pDevMatrix3D; for( size_t index = 0; index
    • @user2347380 我建议您接受这个答案并提出另一个问题。不建议在 cmets 区提出新问题。读取 cmets 中未格式化的代码也很困难。开始一个新问题将更容易阅读具体回答。
    猜你喜欢
    • 2016-03-31
    • 2016-12-24
    • 2013-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多