diff options
author | Hans Johnson <hans-johnson@uiowa.edu> | 2016-07-09 11:18:08 -0500 |
---|---|---|
committer | Hans Johnson <hans-johnson@uiowa.edu> | 2016-07-09 11:19:33 -0500 |
commit | 9c7f84bd600f53c59f89f16ad745e3be5cab2f07 (patch) | |
tree | cecbca4ae14e2eff829cfd9627c83237d2f339b6 /CBLAS | |
parent | 78d32fd2a6d030d388981f096014c764ff7898f5 (diff) | |
download | lapack-9c7f84bd600f53c59f89f16ad745e3be5cab2f07.tar.gz lapack-9c7f84bd600f53c59f89f16ad745e3be5cab2f07.tar.bz2 lapack-9c7f84bd600f53c59f89f16ad745e3be5cab2f07.zip |
STYLE: Remove trailing whitespace in MISC files
This is mostly a long term maintenance improvement.
Many coding styles require elimination of trailing whitespace, and
many editors and source code management configurations automatically
gobble up whitespace. When these tools gobble up whitespace, it
complicates reviewing the meaningful code changes.
By removing whitespace on one patch, it makes future
code reviews much easier.
=SCRIPT====================================================================
if which tempfile &>/dev/null; then
TEMPMAKER=tempfile
elif which mktemp &>/dev/null; then
TEMPMAKER=mktemp
else
echo "Cannot find tempfile program." 2>&1
exit 1
fi
MYTEMP=$($TEMPMAKER)
trap 'rm -f $MYTEMP' SIGINT SIGTERM
stripit() {
echo "stripping $1"
sed 's/[ \t]*$//' "$1" > $MYTEMP
cp $MYTEMP "$1"
}
if [ $# -gt 0 ]; then
while [ "$1" != "" ]; do
stripit $1
shift
done
else
while read -t 2; do
stripit $REPLY
done
fi
rm $MYTEMP
=================================================
Diffstat (limited to 'CBLAS')
-rw-r--r-- | CBLAS/Makefile | 2 | ||||
-rw-r--r-- | CBLAS/Makefile.in | 6 | ||||
-rw-r--r-- | CBLAS/README | 16 | ||||
-rw-r--r-- | CBLAS/cmake/tmp.jIUCyIMYeG | 0 | ||||
-rw-r--r-- | CBLAS/examples/Makefile | 6 | ||||
-rw-r--r-- | CBLAS/src/Makefile | 42 | ||||
-rw-r--r-- | CBLAS/testing/Makefile | 28 |
7 files changed, 50 insertions, 50 deletions
diff --git a/CBLAS/Makefile b/CBLAS/Makefile index 3da723c3..c4ab4e87 100644 --- a/CBLAS/Makefile +++ b/CBLAS/Makefile @@ -22,6 +22,6 @@ cblas_testing: runtst: cd testing && $(MAKE) run - + example: all cd examples && make all diff --git a/CBLAS/Makefile.in b/CBLAS/Makefile.in index fe014304..8fb9d139 100644 --- a/CBLAS/Makefile.in +++ b/CBLAS/Makefile.in @@ -5,7 +5,7 @@ # If you compile, change the name to Makefile.in. # # - + #----------------------------------------------------------------------------- # Shell #----------------------------------------------------------------------------- @@ -21,7 +21,7 @@ PLAT = LINUX #----------------------------------------------------------------------------- # Libraries and includes #----------------------------------------------------------------------------- - + BLLIB = $(home)/lib/librefblas.a CBLIB = ../lib/libcblas.a @@ -38,7 +38,7 @@ LOADER = $(FC) #----------------------------------------------------------------------------- CFLAGS = -O3 -DADD_ -FFLAGS = -O3 +FFLAGS = -O3 #----------------------------------------------------------------------------- # Archive programs and flags diff --git a/CBLAS/README b/CBLAS/README index 2ad513b5..6c87ed69 100644 --- a/CBLAS/README +++ b/CBLAS/README @@ -6,25 +6,25 @@ INSTALLATION BLASLIB is your Legacy BLAS library (by default the Reference BLAS shipped within LAPACK) Then type: - + prompt> make - + which will create the CBLAS library. CREATING THE TESTERS type: - + prompt> make cblas_testing - + This will create the BLAS library if necessary, then compile the CBLAS testings. EXECUTING THE TESTERS type: - + prompt> make runtst - + _______________________________________________________________________________ This package contains C interface to Legacy BLAS. @@ -34,7 +34,7 @@ _______________________________________________________________________________ This release updates an inconsistency between the BLAST document and the interface. According to the document, the enumerated types for - the C interface to the BLAS are not typedef'ed. + the C interface to the BLAS are not typedef'ed. It also updates the Level 2 and 3 testers which check for correct exiting of routines when called with bad arguments. This is done by @@ -56,4 +56,4 @@ _______________________________________________________________________________ Updated by Julie Langou (08/22/2014): Integrate CBLAS package into LAPACK -Improve headers for mangling +Improve headers for mangling diff --git a/CBLAS/cmake/tmp.jIUCyIMYeG b/CBLAS/cmake/tmp.jIUCyIMYeG new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/CBLAS/cmake/tmp.jIUCyIMYeG diff --git a/CBLAS/examples/Makefile b/CBLAS/examples/Makefile index cd75a6ea..61a00c97 100644 --- a/CBLAS/examples/Makefile +++ b/CBLAS/examples/Makefile @@ -2,13 +2,13 @@ include ../../make.inc all: example1 example2 -example1: +example1: $(CC) -c $(CFLAGS) -I../include cblas_example1.c $(LOADER) -o cblas_ex1 cblas_example1.o $(CBLASLIB) $(BLASLIB) -example2: +example2: $(CC) -c $(CFLAGS) -I../include cblas_example2.c $(LOADER) -o cblas_ex2 cblas_example2.o $(CBLASLIB) $(BLASLIB) - + cleanall: rm -f *.o cblas_ex1 cblas_ex2 diff --git a/CBLAS/src/Makefile b/CBLAS/src/Makefile index d5c73cbb..30dd476b 100644 --- a/CBLAS/src/Makefile +++ b/CBLAS/src/Makefile @@ -8,21 +8,21 @@ include ../../make.inc all: cblaslib clean: - rm -f *.o a.out core + rm -f *.o a.out core # Error handling routines for level 2 & 3 errhand = cblas_globals.o cblas_xerbla.o xerbla.o # Object files of all routines -alev = $(alev1) $(alev2) $(alev3) $(errhand) +alev = $(alev1) $(alev2) $(alev3) $(errhand) # # # CBLAS routines # # Level 1 # -# +# # # All object files for single real precision @@ -31,7 +31,7 @@ slev1 = cblas_srotg.o cblas_srotmg.o cblas_srot.o cblas_srotm.o \ cblas_sswap.o cblas_sscal.o cblas_scopy.o cblas_saxpy.o \ cblas_sdot.o cblas_sdsdot.o cblas_snrm2.o cblas_sasum.o \ cblas_isamax.o sdotsub.o sdsdotsub.o snrm2sub.o sasumsub.o \ - isamaxsub.o + isamaxsub.o # # All object files for double real precision # @@ -46,7 +46,7 @@ dlev1 = cblas_drotg.o cblas_drotmg.o cblas_drot.o cblas_drotm.o \ # clev1 = cblas_cswap.o cblas_cscal.o cblas_csscal.o cblas_ccopy.o \ cblas_caxpy.o cblas_cdotu_sub.o cblas_cdotc_sub.o \ - cblas_icamax.o cdotcsub.o cdotusub.o icamaxsub.o + cblas_icamax.o cdotcsub.o cdotusub.o icamaxsub.o # # All object files for double complex precision @@ -54,7 +54,7 @@ clev1 = cblas_cswap.o cblas_cscal.o cblas_csscal.o cblas_ccopy.o \ zlev1 = cblas_zswap.o cblas_zscal.o cblas_zdscal.o cblas_zcopy.o \ cblas_zaxpy.o cblas_zdotu_sub.o cblas_zdotc_sub.o cblas_dznrm2.o \ cblas_dzasum.o cblas_izamax.o zdotcsub.o zdotusub.o \ - dzasumsub.o dznrm2sub.o izamaxsub.o + dzasumsub.o dznrm2sub.o izamaxsub.o # # Common files for single / complex precision @@ -77,7 +77,7 @@ slib1: $(slev1) $(sclev1) $(RANLIB) $(CBLASLIB) # Double real precision -dlib1: $(dlev1) +dlib1: $(dlev1) $(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(dlev1) $(RANLIB) $(CBLASLIB) @@ -102,7 +102,7 @@ all1: $(alev1) # # Level 2 # -# +# # # All object files for single real precision @@ -110,15 +110,15 @@ all1: $(alev1) slev2 = cblas_sgemv.o cblas_sgbmv.o cblas_sger.o cblas_ssbmv.o cblas_sspmv.o \ cblas_sspr.o cblas_sspr2.o cblas_ssymv.o cblas_ssyr.o cblas_ssyr2.o \ cblas_stbmv.o cblas_stbsv.o cblas_stpmv.o cblas_stpsv.o cblas_strmv.o \ - cblas_strsv.o - + cblas_strsv.o + # # All object files for double real precision # dlev2 = cblas_dgemv.o cblas_dgbmv.o cblas_dger.o cblas_dsbmv.o cblas_dspmv.o \ cblas_dspr.o cblas_dspr2.o cblas_dsymv.o cblas_dsyr.o cblas_dsyr2.o \ cblas_dtbmv.o cblas_dtbsv.o cblas_dtpmv.o cblas_dtpsv.o cblas_dtrmv.o \ - cblas_dtrsv.o + cblas_dtrsv.o # # All object files for single complex precision @@ -126,7 +126,7 @@ dlev2 = cblas_dgemv.o cblas_dgbmv.o cblas_dger.o cblas_dsbmv.o cblas_dspmv.o \ clev2 = cblas_cgemv.o cblas_cgbmv.o cblas_chemv.o cblas_chbmv.o cblas_chpmv.o \ cblas_ctrmv.o cblas_ctbmv.o cblas_ctpmv.o cblas_ctrsv.o cblas_ctbsv.o \ cblas_ctpsv.o cblas_cgeru.o cblas_cgerc.o cblas_cher.o cblas_cher2.o \ - cblas_chpr.o cblas_chpr2.o + cblas_chpr.o cblas_chpr2.o # # All object files for double complex precision @@ -134,7 +134,7 @@ clev2 = cblas_cgemv.o cblas_cgbmv.o cblas_chemv.o cblas_chbmv.o cblas_chpmv.o \ zlev2 = cblas_zgemv.o cblas_zgbmv.o cblas_zhemv.o cblas_zhbmv.o cblas_zhpmv.o \ cblas_ztrmv.o cblas_ztbmv.o cblas_ztpmv.o cblas_ztrsv.o cblas_ztbsv.o \ cblas_ztpsv.o cblas_zgeru.o cblas_zgerc.o cblas_zher.o cblas_zher2.o \ - cblas_zhpr.o cblas_zhpr2.o + cblas_zhpr.o cblas_zhpr2.o # # All object files # @@ -174,19 +174,19 @@ all2: $(alev2) $(errhand) # # Level 3 # -# +# # # All object files for single real precision # slev3 = cblas_sgemm.o cblas_ssymm.o cblas_ssyrk.o cblas_ssyr2k.o cblas_strmm.o\ cblas_strsm.o - + # # All object files for double real precision # dlev3 = cblas_dgemm.o cblas_dsymm.o cblas_dsyrk.o cblas_dsyr2k.o cblas_dtrmm.o\ - cblas_dtrsm.o + cblas_dtrsm.o # # All object files for single complex precision @@ -231,12 +231,12 @@ zlib3: $(zlev3) $(errhand) # All precisions all3: $(alev3) $(errhand) - $(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(alev3) + $(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(alev3) $(RANLIB) $(CBLASLIB) # All levels and precisions -cblaslib: $(alev) - $(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(alev) +cblaslib: $(alev) + $(ARCH) $(ARCHFLAGS) $(CBLASLIB) $(alev) $(RANLIB) $(CBLASLIB) FRC: @@ -244,6 +244,6 @@ FRC: .c.o: $(CC) -c $(CFLAGS) -I ../include -o $@ $< - -.f.o: + +.f.o: $(FORTRAN) $(OPTS) -c $< -o $@ diff --git a/CBLAS/testing/Makefile b/CBLAS/testing/Makefile index b4213e41..4a4ced3e 100644 --- a/CBLAS/testing/Makefile +++ b/CBLAS/testing/Makefile @@ -1,11 +1,11 @@ # -# The Makefile compiles c wrappers and testers for CBLAS. +# The Makefile compiles c wrappers and testers for CBLAS. # include ../../make.inc # Archive files necessary to compile -LIB = $(CBLASLIB) $(BLASLIB) +LIB = $(CBLASLIB) $(BLASLIB) # Object files for single real precision stestl1o = c_sblas1.o @@ -29,23 +29,23 @@ ctestl2o = c_cblas2.o c_c2chke.o auxiliary.o c_xerbla.o ctestl3o = c_cblas3.o c_c3chke.o auxiliary.o c_xerbla.o # Object files for double complex precision -ztestl1o = c_zblas1.o +ztestl1o = c_zblas1.o ztestl2o = c_zblas2.o c_z2chke.o auxiliary.o c_xerbla.o ztestl3o = c_zblas3.o c_z3chke.o auxiliary.o c_xerbla.o -all: all1 all2 all3 -all1: stest1 dtest1 ctest1 ztest1 +all: all1 all2 all3 +all1: stest1 dtest1 ctest1 ztest1 all2: stest2 dtest2 ctest2 ztest2 all3: stest3 dtest3 ctest3 ztest3 clean: rm -f core *.o *.out x* cleanobj: - rm -f core *.o a.out + rm -f core *.o a.out cleanexe: - rm -f x* + rm -f x* stest1: xscblat1 dtest1: xdcblat1 @@ -80,7 +80,7 @@ xdcblat2: $(dtestl2o) c_dblat2.o $(LOADER) $(LOADOPTS) -o xdcblat2 c_dblat2.o $(dtestl2o) $(LIB) xdcblat3: $(dtestl3o) c_dblat3.o $(LOADER) $(LOADOPTS) -o xdcblat3 c_dblat3.o $(dtestl3o) $(LIB) - + # Single complex xccblat1: $(ctestl1o) c_cblat1.o $(LOADER) $(LOADOPTS) -o xccblat1 c_cblat1.o $(ctestl1o) $(LIB) @@ -89,14 +89,14 @@ xccblat2: $(ctestl2o) c_cblat2.o xccblat3: $(ctestl3o) c_cblat3.o $(LOADER) $(LOADOPTS) -o xccblat3 c_cblat3.o $(ctestl3o) $(LIB) -# Double complex +# Double complex xzcblat1: $(ztestl1o) c_zblat1.o $(LOADER) $(LOADOPTS) -o xzcblat1 c_zblat1.o $(ztestl1o) $(LIB) xzcblat2: $(ztestl2o) c_zblat2.o $(LOADER) $(LOADOPTS) -o xzcblat2 c_zblat2.o $(ztestl2o) $(LIB) xzcblat3: $(ztestl3o) c_zblat3.o $(LOADER) $(LOADOPTS) -o xzcblat3 c_zblat3.o $(ztestl3o) $(LIB) - + # RUN TESTS run: @@ -123,12 +123,12 @@ run: @echo "--> TESTING CBLAS 3 - COMPLEX PRECISION <--" @./xccblat3 < cin3 > ctest3.out @echo "--> TESTING CBLAS 3 - DOUBLE COMPLEX PRECISION <--" - @./xzcblat3 < zin3 > ztest3.out - + @./xzcblat3 < zin3 > ztest3.out + .SUFFIXES: .o .f .c .c.o: $(CC) -c $(CFLAGS) -I ../include -o $@ $< - -.f.o: + +.f.o: $(FORTRAN) $(OPTS) -c $< -o $@ |