Skip to content

Commit 1b1050f

Browse files
committed
fix some error
1 parent 064c000 commit 1b1050f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

source/source_base/module_external/blas_connector.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ void zherk_(const char* uplo, const char* trans, const int* n, const int* k,
186186
const std::complex<double>* a, const int* lda,
187187
const double* beta,
188188
std::complex<double>* c, const int* ldc);
189+
190+
// === Symmetric rank-k update ===
191+
void dsyrk_(const char* uplo, const char* trans, const int* n, const int* k,
192+
const double* alpha,
193+
const double* a, const int* lda,
194+
const double* beta,
195+
double* c,
196+
const int* ldc);
189197
}
190198

191199
// Class BlasConnector provide the connector to fortran lapack routine.

source/source_base/test/blas_connector_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ TEST(blas_connector, AxpyGpu) {
226226

227227
TEST(blas_connector, dcopy_) {
228228
typedef double T;
229-
long const size = 8;
229+
int const size = 8;
230230
int const incx = 1;
231231
int const incy = 1;
232232
std::array<T, size> x_const, result, answer;
@@ -241,7 +241,7 @@ TEST(blas_connector, dcopy_) {
241241

242242
TEST(blas_connector, zcopy_) {
243243
typedef std::complex<double> T;
244-
long const size = 8;
244+
int const size = 8;
245245
int const incx = 1;
246246
int const incy = 1;
247247
std::array<T, size> x_const, result, answer;
@@ -259,7 +259,7 @@ TEST(blas_connector, zcopy_) {
259259
}
260260

261261
TEST(blas_connector, copy) {
262-
long const size = 8;
262+
int const size = 8;
263263
int const incx = 1;
264264
int const incy = 1;
265265
std::complex<double> result[8], answer[8];

0 commit comments

Comments
 (0)