Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhwesky2010 committed Oct 28, 2021
1 parent b312dcb commit 339ac8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions paddle/fluid/operators/math/matrix_solve.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class TriangularSolveFunctor<platform::CPUDeviceContext, T> {
int a_dim_size = a->dims().size();
int b_dim_size = b->dims().size();

int M = b->dims()[b_dim_size - 2];
int N = b->dims()[b_dim_size - 1];
int M = static_cast<int>(b->dims()[b_dim_size - 2]);
int N = static_cast<int>(b->dims()[b_dim_size - 1]);
auto lda = left ? std::max(1, M) : std::max(1, N);
auto ldb = std::max(1, N);

Expand Down
4 changes: 2 additions & 2 deletions paddle/fluid/operators/math/matrix_solve.cu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ class TriangularSolveFunctor<platform::CUDADeviceContext, T> {
int a_dim_size = a->dims().size();
int b_dim_size = b->dims().size();

int M = b->dims()[b_dim_size - 2];
int N = b->dims()[b_dim_size - 1];
int M = static_cast<int>(b->dims()[b_dim_size - 2]);
int N = static_cast<int>(b->dims()[b_dim_size - 1]);
auto lda = left ? std::max(1, M) : std::max(1, N);
auto ldb = std::max(1, N);

Expand Down
5 changes: 0 additions & 5 deletions paddle/fluid/platform/dynload/mklml.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ limitations under the License. */
#include "paddle/fluid/platform/dynload/dynamic_loader.h"
#include "paddle/fluid/platform/port.h"

extern "C" void strsm_(char *side, char *uplo, char *trans, char *diag, int *n,
int *nrhs, float *alpha, float *a, int *lda, float *b,
int *ldb);

namespace paddle {
namespace platform {
namespace dynload {
Expand Down Expand Up @@ -53,7 +49,6 @@ extern void *mklml_dso_handle;
#define DECLARE_DYNAMIC_LOAD_MKLML_WRAP(__name) DYNAMIC_LOAD_MKLML_WRAP(__name)

#define MKLML_ROUTINE_EACH(__macro) \
__macro(strsm_); \
__macro(cblas_sgemm); \
__macro(cblas_dgemm); \
__macro(cblas_cgemm); \
Expand Down

1 comment on commit 339ac8f

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

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

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.