Skip to content

Request i?max i?sum API #2068

Closed
Closed

Description

@tianzhipengfei

I am wondering all API are listed in cblas.h? In my opinion, i?max, i?sum are very common operations, but I cannot find them in cblas.h but in f77blas.h. So I don't know whether I didn't find them or OpenBLAS doesn't support them currently.

Activity

  1. brada4 commented on Mar 25, 2019

    @brada4
    Contributor

    In cblas.h all functions are prepended with cblas_

    float  cblas_sasum (OPENBLAS_CONST blasint n, OPENBLAS_CONST float  *x, OPENBLAS_CONST blasint incx);
    double cblas_dasum (OPENBLAS_CONST blasint n, OPENBLAS_CONST double *x, OPENBLAS_CONST blasint incx);
    float  cblas_scasum(OPENBLAS_CONST blasint n, OPENBLAS_CONST void  *x, OPENBLAS_CONST blasint incx);
    double cblas_dzasum(OPENBLAS_CONST blasint n, OPENBLAS_CONST void *x, OPENBLAS_CONST blasint incx);
    CBLAS_INDEX cblas_isamax(OPENBLAS_CONST blasint n, OPENBLAS_CONST float  *x, OPENBLAS_CONST blasint incx);
    CBLAS_INDEX cblas_idamax(OPENBLAS_CONST blasint n, OPENBLAS_CONST double *x, OPENBLAS_CONST blasint incx);
    CBLAS_INDEX cblas_icamax(OPENBLAS_CONST blasint n, OPENBLAS_CONST void  *x, OPENBLAS_CONST blasint incx);
    CBLAS_INDEX cblas_izamax(OPENBLAS_CONST blasint n, OPENBLAS_CONST void *x, OPENBLAS_CONST blasint incx);
    
  2. martin-frbg commented on Mar 30, 2019

    @martin-frbg
    Collaborator

    This was reported (and fixed) for cblas_i?amin in #1637, somehow I managed to miss that cblas_i?max and cblas_i?min have the same problem. I do not think OpenBLAS has a non-absolute sum, though that should be trivial to implement. (Not sure if this should be named i?sum or simply ?sum - or even both)

  3. tianzhipengfei commented on Mar 30, 2019

    @tianzhipengfei
    Author

    This was reported (and fixed) for cblas_i?amin in #1637, somehow I managed to miss that cblas_i?max and cblas_i?min have the same problem. I do not think OpenBLAS has a non-absolute sum, though that should be trivial to implement. (Not sure if this should be named i?sum or simply ?sum - or even both)

    Thanks a lot. Because non-absolute sum operation is very common in neural network, is it possible that OpenBLAS (in C Language) will support non-absolute operation such as sum, max, min?

    (BTW, maybe ?sum is better, i?sum is a mistake. Sorry for that)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions