Fixed a barrier bug and a thread decorator bug

This commit is contained in:
Tyler Smith
2014-03-18 16:37:28 -05:00
parent aa2405f8b2
commit fb42983bd9

View File

@@ -96,7 +96,8 @@ void bli_barrier( thread_comm_t* communicator, dim_t t_id )
dim_t my_threads_arrived;
_Pragma("omp atomic capture")
my_threads_arrived = communicator->barrier_threads_arrived++;
my_threads_arrived = ++(communicator->barrier_threads_arrived);
/*
bli_set_lock(&communicator->barrier_lock);
my_threads_arrived = communicator->barrier_threads_arrived + 1;
@@ -242,18 +243,16 @@ void bli_level3_thread_decorator( dim_t n_threads,
void* cntl,
void** thread )
{
//_Pragma( "omp parallel num_threads(n_threads)" )
_Pragma( "omp parallel num_threads(n_threads)" )
{
// dim_t omp_id = omp_get_thread_num();
dim_t omp_id = omp_get_thread_num();
func( alpha,
// bli_gemm_int ( alpha,
a,
b,
beta,
c,
(gemm_t*)cntl,
// thread[omp_id] );
(gemm_thrinfo_t*)thread[0] );
cntl,
thread[omp_id] );
}
}