]> 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_rl_ker_var2.c
1. Replaced lib_clock64() with lib_clock_read().
[dense-linear-algebra-libraries/linalg.git] / src / ti / linalg / blis / frame / 3 / trsm / bli_trsm_rl_ker_var2.c
index ac0b20eee6e1ddd354b7a940a0bcda476d2ee7dd..2bd31192b152f6d17db5615fbb561f1cb20ad3e1 100644 (file)
@@ -251,8 +251,8 @@ void PASTEMAC(ch,varname)( \
        lib_emt_Handle emt_handle_c1 = NULL; \
 \
        /*For DSP timing*/ \
-       volatile uint64_t counter_start_ker, counter_start_nr, counter_start_mr; \
-       volatile uint64_t counter_end_ker, counter_end_nr, counter_end_mr; \
+       uint64_t counter_start_ker, counter_start_nr, counter_start_mr; \
+       uint64_t counter_end_ker, counter_end_nr, counter_end_mr; \
        extern profile_data_t *bli_trsm_profile_data; \
        /*
           Assumptions/assertions:
@@ -472,7 +472,7 @@ void PASTEMAC(ch,varname)( \
        n_cur = ( bli_is_not_edge_f( 0, n_iter, n_left ) ? NR : n_left ); \
        if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
        { \
-               counter_start_nr = lib_clock64();  \
+               counter_start_nr = lib_clock_read();  \
        } \
        \
        if(rs_c == 1) \
@@ -637,7 +637,7 @@ void PASTEMAC(ch,varname)( \
 \
                        if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
                        { \
-                               counter_start_mr = lib_clock64();  \
+                               counter_start_mr = lib_clock_read();  \
                        } \
                        for ( i = 0; i < m_iter; ++i ) \
                        { \
@@ -715,7 +715,7 @@ void PASTEMAC(ch,varname)( \
                                /* Handle interior and edge cases separately. */ \
                                if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
                                { \
-                                       counter_start_ker = lib_clock64();  \
+                                       counter_start_ker = lib_clock_read();  \
                                } \
                                if ( m_cur == MR && n_cur == NR ) \
                                { \
@@ -748,7 +748,7 @@ void PASTEMAC(ch,varname)( \
                                } \
                                if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
                                { \
-                                       counter_end_ker = lib_clock64();  \
+                                       counter_end_ker = lib_clock_read();  \
                                        bli_profile_data_update(bli_trsm_profile_data[bli_get_thread_num()+BLIS_MAX_NUM_THREADS*BLIS_PROFILE_KER_LOOP_IND],\
                                                                                        (counter_end_ker-counter_start_ker), 2*k_b21*m_cur*n_cur); \
                                } \
@@ -773,7 +773,7 @@ void PASTEMAC(ch,varname)( \
                        } /*MR loop*/\
                        if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
                        { \
-                               counter_end_mr = lib_clock64();  \
+                               counter_end_mr = lib_clock_read();  \
                                bli_profile_data_update(bli_trsm_profile_data[bli_get_thread_num()+BLIS_MAX_NUM_THREADS*BLIS_PROFILE_IR_LOOP_IND], \
                                                                                (counter_end_mr-counter_start_mr), 2*k*m*n_cur); \
                        } \
@@ -790,7 +790,7 @@ void PASTEMAC(ch,varname)( \
                        /* Loop over the m dimension (MR rows at a time). */ \
                        if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
                        { \
-                               counter_start_mr = lib_clock64();  \
+                               counter_start_mr = lib_clock_read();  \
                        } \
 \
                        for ( i = 0; i < m_iter; ++i ) \
@@ -850,7 +850,7 @@ void PASTEMAC(ch,varname)( \
                                /* Handle interior and edge cases separately. */ \
                                if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
                                { \
-                                       counter_start_ker = lib_clock64();  \
+                                       counter_start_ker = lib_clock_read();  \
                                } \
                                if (BLIS_ENABLE_C66X_IDMA_KERVAR2 == 1) \
                                { \
@@ -916,7 +916,7 @@ void PASTEMAC(ch,varname)( \
                                } \
                                if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
                                { \
-                                       counter_end_ker = lib_clock64();  \
+                                       counter_end_ker = lib_clock_read();  \
                                        bli_profile_data_update(bli_trsm_profile_data[bli_get_thread_num()+BLIS_MAX_NUM_THREADS*BLIS_PROFILE_KER_LOOP_IND],\
                                                                                        (counter_end_ker-counter_start_ker), 2*k*m_cur*n_cur); \
                                } \
@@ -929,7 +929,7 @@ void PASTEMAC(ch,varname)( \
                        \
                        if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
                        { \
-                               counter_end_mr = lib_clock64();  \
+                               counter_end_mr = lib_clock_read();  \
                                bli_profile_data_update(bli_trsm_profile_data[bli_get_thread_num()+BLIS_MAX_NUM_THREADS*BLIS_PROFILE_IR_LOOP_IND], \
                                                                                (counter_end_mr-counter_start_mr), 2*k*m*n_cur); \
                        } \
@@ -997,7 +997,7 @@ void PASTEMAC(ch,varname)( \
        \
        if (BLIS_ENABLE_PROFILE_KERVAR2 == 1) \
        { \
-               counter_end_nr = lib_clock64();  \
+               counter_end_nr = lib_clock_read();  \
                bli_profile_data_update(bli_trsm_profile_data[bli_get_thread_num()+BLIS_MAX_NUM_THREADS*BLIS_PROFILE_JR_LOOP_IND], \
                                                                (counter_end_nr-counter_start_nr), 2*k*m*n); \
        } \