]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - dense-linear-algebra-libraries/linalg.git/blobdiff - src/ti/linalg/blis/frame/3/trsm/bli_trsm_blk_var1b.c
1. Replaced lib_clock64() with lib_clock_read().
[dense-linear-algebra-libraries/linalg.git] / src / ti / linalg / blis / frame / 3 / trsm / bli_trsm_blk_var1b.c
index 9dc5bead6acd9ebaa9a5f334fd8c1d229e3e2352..c6154d12a717428956ad12bbc5812e3510643566 100644 (file)
@@ -60,8 +60,10 @@ void bli_trsm_blk_var1b( obj_t*  a,
 #ifdef BLIS_ENABLE_C66X_EDMA
        dim_t b_alg_next;
 #endif
-        volatile int counter_start;
-           volatile int counter_end;
+#ifdef BLIS_ENABLE_CYCLE_COUNT
+    uint64_t counter_start;
+    uint64_t counter_end;
+#endif
 //     printf("blk_var1b\n");
 
     // Initialize object for packing B.
@@ -210,8 +212,10 @@ void bli_trsm_blk_var1b( obj_t*  a,
 #endif
 
                // Perform trsm subproblem.
-               //TSCL = 0;
-               //counter_start = TSCL;
+#ifdef BLIS_ENABLE_CYCLE_COUNT
+               lib_clock_enable();
+               counter_start = lib_clock_read();
+#endif
                bli_trsm_int( &BLIS_ONE,
                              a1_pack,
                              b_pack,
@@ -220,12 +224,13 @@ void bli_trsm_blk_var1b( obj_t*  a,
                              cntl_sub_trsm( cntl ),
                       trsm_thread_sub_trsm( thread ) );
 
-               //counter_end = TSCL;
-               //if(lib_get_coreID()==0)
+#ifdef BLIS_ENABLE_CYCLE_COUNT
+               counter_end = lib_clock_read();
+               if(lib_get_coreID()==0)
                {
-                       //printf("%d\n", (counter_end-counter_start));
+                       printf("%d\n", (counter_end-counter_start));
                }
-
+#endif
 #ifdef BLIS_ENABLE_C66X_EDMA
                bli_obj_alias_to(c2, c1);
 #endif