From af4e4f92dc9e5da160eb6c6870a7b38b863f1c6c Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Tue, 28 Oct 2014 02:45:06 +0000
Subject: [PATCH] getting rid of sub_arrays, nvidia driver memory leak
---
src/axpy.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/axpy.c b/src/axpy.c
index c4ec1eb..10ffca4 100644
--- a/src/axpy.c
+++ b/src/axpy.c
@@ -1,24 +1,24 @@
#include "mini_blas.h"
-inline void axpy_cpu(int N, float ALPHA, float *X, int INCX, float *Y, int INCY)
+void axpy_cpu(int N, float ALPHA, float *X, int INCX, float *Y, int INCY)
{
int i;
for(i = 0; i < N; ++i) Y[i*INCY] += ALPHA*X[i*INCX];
}
-inline void scal_cpu(int N, float ALPHA, float *X, int INCX)
+void scal_cpu(int N, float ALPHA, float *X, int INCX)
{
int i;
for(i = 0; i < N; ++i) X[i*INCX] *= ALPHA;
}
-inline void copy_cpu(int N, float *X, int INCX, float *Y, int INCY)
+void copy_cpu(int N, float *X, int INCX, float *Y, int INCY)
{
int i;
for(i = 0; i < N; ++i) Y[i*INCY] = X[i*INCX];
}
-inline float dot_cpu(int N, float *X, int INCX, float *Y, int INCY)
+float dot_cpu(int N, float *X, int INCX, float *Y, int INCY)
{
int i;
float dot = 0;
--
Gitblit v1.10.0