Skip to content

Commit acfd3f7

Browse files
committed
Fix bugs #1
1 parent 1d8b4e7 commit acfd3f7

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

source/module_base/kernels/dsp/dsp_connector.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#ifndef DSP_CONNECTOR_H
2+
#define DSP_CONNECTOR_H
13
#ifdef __DSP
24

35
// Base dsp functions
@@ -12,7 +14,7 @@ void free_ht(void* ptr);
1214
void sgemm_mt_(const char *transa, const char *transb,
1315
const int *m, const int *n, const int *k,
1416
const float *alpha, const float *a, const int *lda,
15-
const float *b, const int *ldb, const const float *beta,
17+
const float *b, const int *ldb, const float *beta,
1618
const float *c, const int *ldc);
1719

1820
void dgemm_mt_(const char *transa, const char *transb,
@@ -37,7 +39,7 @@ void cgemm_mt_(const char *transa, const char *transb,
3739
void sgemm_mth_(const char *transa, const char *transb,
3840
const int *m, const int *n, const int *k,
3941
const float *alpha, const float *a, const int *lda,
40-
const float *b, const int *ldb, const const float *beta,
42+
const float *b, const int *ldb, const float *beta,
4143
const float *c, const int *ldc);
4244

4345
void dgemm_mth_(const char *transa, const char *transb,
@@ -60,4 +62,5 @@ void cgemm_mth_(const char *transa, const char *transb,
6062

6163
//#define zgemm_ zgemm_mt
6264

65+
#endif
6366
#endif

source/module_base/module_device/memory_op.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "module_base/memory.h"
44
#include "module_base/tool_threading.h"
55
#ifdef __DSP
6-
#include "module_base/kernels/dsp_connector.h"
6+
#include "module_base/kernels/dsp/dsp_connector.h"
77
#endif
88

99
#include <complex>

source/module_esolver/esolver_ks_pw.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
#include <ATen/kernels/blas.h>
5050
#include <ATen/kernels/lapack.h>
5151

52+
#ifdef __DSP
53+
#include "module_base/kernels/dsp/dsp_connector.h"
54+
#endif
55+
5256
namespace ModuleESolver
5357
{
5458

0 commit comments

Comments
 (0)