Ticket #57669: patch-taucs-build.2.diff
File patch-taucs-build.2.diff, 3.6 KB (added by mbrethen, 6 years ago) |
---|
-
config/darwin.mk
old new 8 8 PATHSEP=/ 9 9 DEFFLG=-D 10 10 11 #CC = gcc 12 CFLAGS = -O3 -faltivec11 CC = @@CC@@ 12 CFLAGS = @@CFLAGS@@ -DBLAS_LIBRARIES=vecLibFort -DLAPACK_LIBRARIES=vecLibFort 13 13 COUTFLG = -o ./ 14 14 15 FC = $(CC)16 FFLAGS = $(CFLAGS)15 FC = @@FC@@ 16 FFLAGS = @@FFLAGS@@ 17 17 FOUTFLG = $(COUTFLG) 18 18 19 LD = $( CC)20 LDFLAGS = $(CFLAGS)19 LD = $(FC) 20 LDFLAGS = @@LDFLAGS@@ 21 21 LOUTFLG = $(COUTFLG) 22 22 23 23 AR = ar -cr … … 26 26 RANLIB = ranlib 27 27 RM = rm -rf 28 28 29 LIBBLAS = - framework vecLib29 LIBBLAS = -lvecLibFort 30 30 LIBLAPACK = 31 LIBMETIS = - Lexternal/lib/darwin -lmetis31 LIBMETIS = -lmetis 32 32 33 LIBF77 = - Lexternal/lib/darwin -lf2c33 LIBF77 = -lf2c 34 34 # crypto is for ftime, which is used by the timing routines 35 35 # the documentation says its in libcompat, but on my system 36 36 # there is no libcompat, but libcrypto provides it 37 LIBC = -lm -lcrypto37 LIBC = 38 38 39 39 ######################################################### 40 40 -
progs/taucs_blas_underscore_test.c
old new 26 26 dgemm_("N","N", &n,&n,&n, &alpha, &A,&ld, &B,&ld, &beta, &C,&ld); 27 27 28 28 printf("\n\n"); 29 printf("Linking with dgemm_ succe dded\n");29 printf("Linking with dgemm_ succeeded\n"); 30 30 printf("\n\n"); 31 31 32 32 if (C == 97.0) { -
progs/test_linsolve.c
old new 81 81 rc = taucs_linsolve(A,NULL,1, y,b,colamd,opt_arg); 82 82 if (rc == TAUCS_SUCCESS) return TAUCS_ERROR; 83 83 84 printf("TESING SYMMETRIC ORDERINGS SUCCE DDED\n");84 printf("TESING SYMMETRIC ORDERINGS SUCCEEDED\n"); 85 85 86 86 return TAUCS_SUCCESS; 87 87 } … … 116 116 rc = taucs_linsolve(A,NULL,1, y,b,llmd,opt_arg); 117 117 if (rc == TAUCS_SUCCESS) return TAUCS_ERROR; 118 118 119 printf("TESING SPD FACTORIZATIONS SUCCE DDED\n");119 printf("TESING SPD FACTORIZATIONS SUCCEEDED\n"); 120 120 121 121 return TAUCS_SUCCESS; 122 122 } … … 176 176 rc = taucs_linsolve(NULL,&F,0, NULL,NULL,factor,opt_arg); 177 177 if (rc != TAUCS_SUCCESS) return rc; 178 178 179 printf("TESING SPD FACTORSOLVE SUCCE DDED\n");179 printf("TESING SPD FACTORSOLVE SUCCEEDED\n"); 180 180 181 181 return TAUCS_SUCCESS; 182 182 } -
src/taucs_timer.c
old new 245 245 #include <sys/time.h> 246 246 #include <sys/resource.h> 247 247 #include <sys/types.h> 248 #include <sys/timeb.h>249 248 250 249 double taucs_wtime() 251 250 { 252 struct time bT;251 struct timeval T; 253 252 /*static int first_time = 1;*/ 254 253 /* static time_t start_time, time_diff; 255 static time_t start_mi ll, mill_diff;254 static time_t start_micro, micro_diff; 256 255 */ 257 256 258 257 static time_t time_diff; 259 static time_t mi ll_diff;258 static time_t micro_diff; 260 259 /*int rc;*/ 261 260 double dt; 262 261 263 (void) ftime( &T);262 (void) gettimeofday( &T,NULL ); 264 263 /* 265 264 if (first_time) { 266 265 first_time = 0; 267 start_time = T.t ime;268 start_mi ll = T.millitm;266 start_time = T.tv_sec; 267 start_micro = T.tv_usec; 269 268 } 270 269 271 time_diff = T.t ime- start_time;272 mi ll_diff = T.millitm - start_mill;270 time_diff = T.tv_sec - start_time; 271 micro_diff = T.tv_usec - start_micro; 273 272 */ 274 time_diff = T.t ime;275 mi ll_diff = T.millitm;273 time_diff = T.tv_sec; 274 micro_diff = T.tv_usec; 276 275 277 dt = ((double) time_diff) + (1e- 3) * ((double) mill_diff);276 dt = ((double) time_diff) + (1e-6) * ((double) micro_diff); 278 277 279 278 return dt; 280 279 }