Corrected errors in BLIS test code.
authorJianzhong Xu <xuj@ti.com>
Mon, 23 May 2016 14:47:05 +0000 (14:47 +0000)
committerJianzhong Xu <xuj@ti.com>
Mon, 23 May 2016 14:47:05 +0000 (14:47 +0000)
src/ti/linalg/blis/testsuite/src/test_ger.c
src/ti/linalg/blis/testsuite/src/test_her.c
src/ti/linalg/blis/testsuite/src/test_her2.c
src/ti/linalg/blis/testsuite/src/test_syr.c
src/ti/linalg/blis/testsuite/src/test_syr2.c
src/ti/linalg/blis/testsuite/src/test_trsv.c

index 2139260927a678a19628f8c5cf1947c4c396e8b4..8d7029fdfc59cab91e29e89fdfd21d5df1e62dcb 100644 (file)
@@ -228,7 +228,7 @@ void libblis_test_ger_experiment( test_params_t* params,
                //but need to re-initialize C for each of iteration of n_repeats
                for(j = 0; j < test_way; j++)
                {
-                       bli_copym( &a_save[i], &a[i] );
+                       bli_copym( &a_save[j], &a[j] );
                }
 #else
                bli_copym( &a_save, &a );
index 660c31fe494e9e1fc97708cb0e7675d7056d6b7a..0d90ab6189a18ffef76ed775a7ddefaa50c2f0ba 100644 (file)
@@ -232,7 +232,7 @@ void libblis_test_her_experiment( test_params_t* params,
                //but need to re-initialize C for each of iteration of n_repeats
                for(j = 0; j < test_way; j++)
                {
-                       bli_copym( &a_save[i], &a[i] );
+                       bli_copym( &a_save[j], &a[j] );
                }
 #else
                bli_copym( &a_save, &a );
index c77f813db07f6c01836dbb295da4a0e1822203c0..16c204f6570f0664224227b840c2e5110f2a4cb6 100644 (file)
@@ -241,7 +241,7 @@ void libblis_test_her2_experiment( test_params_t* params,
                //but need to re-initialize C for each of iteration of n_repeats
                for(j = 0; j < test_way; j++)
                {
-                       bli_copym( &a_save[i], &a[i] );
+                       bli_copym( &a_save[j], &a[j] );
                }
 #else
                bli_copym( &a_save, &a );
index 782dada3a3673ae91f8b53a082a059bade3ec355..643a5655f53703425f8429e372c9cbda4e978610 100644 (file)
@@ -232,7 +232,7 @@ void libblis_test_syr_experiment( test_params_t* params,
                //but need to re-initialize C for each of iteration of n_repeats
                for(j = 0; j < test_way; j++)
                {
-                       bli_copym( &a_save[i], &a[i] );
+                       bli_copym( &a_save[j], &a[j] );
                }
 #else
                bli_copym( &a_save, &a );
index 45c2c79562922a3f4611e7572e3a701ed0f0980f..885df9f1f53e8f43561cd55e020e8f9c8d6d514f 100644 (file)
@@ -239,7 +239,7 @@ void libblis_test_syr2_experiment( test_params_t* params,
                //but need to re-initialize C for each of iteration of n_repeats
                for(j = 0; j < test_way; j++)
                {
-                       bli_copym( &a_save[i], &a[i] );
+                       bli_copym( &a_save[j], &a[j] );
                }
 #else
                bli_copym( &a_save, &a );
index 8f0cb335d3cd798c8f589bdbffed7ea3d23dcf95..700cf22f6ebc2cd44037f517620ff22a2db3a68d 100644 (file)
@@ -233,9 +233,12 @@ void libblis_test_trsv_experiment( test_params_t* params,
        for ( i = 0; i < n_repeats; ++i )
        {
 #ifdef BLIS_ENABLE_MULTITHREAD_TEST
+        //printf("initialize the CBLAS OpenCL kernel\n");
                // Need only one call to initialize the CBLAS OpenCL kernel
                bli_copyv( &x_save[0], &x[0] );
-               libblis_test_trsv_impl( iface, &alpha, &a, &x[i] );
+        //printf("run trsv\n");
+               libblis_test_trsv_impl( iface, &alpha, &a, &x[0] );
+        //printf("trsv finished\n");
                //but need to re-initialize C for each of iteration of n_repeats
                for(j = 0; j < test_way; j++)
                {