Browse Source

Merge pull request #2937 from martin-frbg/pwr-buffersz

Increase and unify BUFFERSIZE on POWER;fix gcc inline warning
tags/v0.3.12
Martin Kroeker GitHub 5 years ago
parent
commit
6f9460f0f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      common_power.h
  2. +1
    -1
      kernel/power/zgemv_t_4.c

+ 2
- 2
common_power.h View File

@@ -844,8 +844,8 @@ Lmcount$lazy_ptr:
#define BUFFER_SIZE ( 2 << 20) #define BUFFER_SIZE ( 2 << 20)
#elif defined(PPC440FP2) #elif defined(PPC440FP2)
#define BUFFER_SIZE ( 16 << 20) #define BUFFER_SIZE ( 16 << 20)
#elif defined(POWER8) || defined(POWER9) || defined(POWER10)
#define BUFFER_SIZE ( 64 << 20)
#elif defined(POWER6) || defined(POWER8) || defined(POWER9) || defined(POWER10)
#define BUFFER_SIZE ( 64 << 22)
#else #else
#define BUFFER_SIZE ( 16 << 20) #define BUFFER_SIZE ( 16 << 20)
#endif #endif


+ 1
- 1
kernel/power/zgemv_t_4.c View File

@@ -513,7 +513,7 @@ static void zgemv_kernel_4x1(BLASLONG n, FLOAT *ap, FLOAT *x, FLOAT *y, FLOAT al


#endif #endif


static __attribute__((always_inline)) void copy_x(BLASLONG n, FLOAT *src, FLOAT *dest, BLASLONG inc_src) {
static __attribute__((always_inline)) inline void copy_x(BLASLONG n, FLOAT *src, FLOAT *dest, BLASLONG inc_src) {
BLASLONG i; BLASLONG i;
for (i = 0; i < n; i++) { for (i = 0; i < n; i++) {
*dest = *src; *dest = *src;


Loading…
Cancel
Save