Browse Source

Added the unit testcase for dsdot.

tags/v0.1alpha2^2
Xianyi Zhang 15 years ago
parent
commit
1d60510959
4 changed files with 9 additions and 1 deletions
  1. +4
    -0
      common_reference.h
  2. +1
    -1
      utest/Makefile
  3. +2
    -0
      utest/common_utest.h
  4. +2
    -0
      utest/main.c

+ 4
- 0
common_reference.h View File

@@ -60,4 +60,8 @@ float _Complex BLASFUNC_REF(cdotc) (blasint *, float *, blasint *, float *,
double _Complex BLASFUNC_REF(zdotu) (blasint *, double *, blasint *, double *, blasint *);
double _Complex BLASFUNC_REF(zdotc) (blasint *, double *, blasint *, double *, blasint *);

void BLASFUNC_REF(drotmg)(double *, double *, double *, double *, double *);

double BLASFUNC_REF(dsdot)(blasint *, float *, blasint *, float *, blasint*);
#endif

+ 1
- 1
utest/Makefile View File

@@ -5,7 +5,7 @@ include $(TOPDIR)/Makefile.system
TARGET=openblas_utest
CUNIT_LIB=/usr/local/lib/libcunit.a

OBJS=main.o test_rot.o test_swap.o test_axpy.o test_dotu.o test_rotmg.o
OBJS=main.o test_rot.o test_swap.o test_axpy.o test_dotu.o test_rotmg.o test_dsdot.o

all : run_test



+ 2
- 0
utest/common_utest.h View File

@@ -59,4 +59,6 @@ void test_zdotu_offset_1(void);

void test_drotmg(void);

void test_dsdot_n_1(void);

#endif

+ 2
- 0
utest/main.c View File

@@ -56,6 +56,8 @@ CU_TestInfo test_level1[]={
{"Testing zdotu with input x & y offset == 1",test_zdotu_offset_1},

{"Testing drotmg",test_drotmg},

{"Testing dsdot with n == 1",test_dsdot_n_1},
CU_TEST_INFO_NULL,
};



Loading…
Cancel
Save