Skip to content

Commit

Permalink
Fixing omp mac issue
Browse files Browse the repository at this point in the history
  • Loading branch information
TeachRaccooon committed Apr 1, 2024
1 parent ecf60d3 commit 9e1e036
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RandLAPACK/drivers/rl_rbki.hh
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,13 @@ int RBKI<T, RNG>::call(
}

// Copy R_ii over to R's (in transposed format).
#if !defined(__APPLE__)
omp_set_num_threads(this->num_threads_some);
#endif
util::transposition(0, k, Y_i, n, R_ii, n, 1);
#if !defined(__APPLE__)
omp_set_num_threads(this->num_threads_rest);
#endif

if(this -> timing) {
r_cpy_t_stop = high_resolution_clock::now();
Expand Down

0 comments on commit 9e1e036

Please sign in to comment.