Commit a919026a authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only pin the main thread in the unit tests if pinning is supported on this platform.

parent 1823a387
......@@ -464,7 +464,10 @@ void runner_doself2_force_vec(struct runner *r, struct cell *ci);
/* And go... */
int main(int argc, char *argv[]) {
#ifdef HAVE_SETAFFINITY
engine_pin();
#endif
size_t runs = 0, particles = 0;
double h = 1.23485, size = 1., rho = 2.5;
double perturbation = 0.;
......
......@@ -335,7 +335,10 @@ void runner_doself_subset_branch_density(struct runner *r,
/* And go... */
int main(int argc, char *argv[]) {
#ifdef HAVE_SETAFFINITY
engine_pin();
#endif
size_t runs = 0, particles = 0;
double h = 1.23485, size = 1., rho = 1.;
double perturbation = 0., h_pert = 0.;
......
......@@ -380,7 +380,10 @@ void test_boundary_conditions(struct cell **cells, struct runner runner,
/* And go... */
int main(int argc, char *argv[]) {
#ifdef HAVE_SETAFFINITY
engine_pin();
#endif
size_t runs = 0, particles = 0;
double h = 1.23485, size = 1., rho = 1.;
double perturbation = 0.;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment