From 7260e3a2710296665dbceb427e447da38175513f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 16 Nov 2022 11:57:13 +0100 Subject: indexamajig: Add --cpu-pin Similar code was stripped out 3.5 years ago by 4f4e5d05269eee6b192c271f2f9730a1ad3a4fbd. However, it seems there are still systems where it improves performance a lot. --- meson.build | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 65a65823..8f6567fa 100644 --- a/meson.build +++ b/meson.build @@ -62,6 +62,12 @@ if cc.has_function('clock_gettime', prefix: '#include ') conf_data.set10('HAVE_CLOCK_GETTIME', true) endif +if cc.has_function('sched_setaffinity', + prefix: '#include ', + args: '-D_GNU_SOURCE') + conf_data.set10('HAVE_SCHED_SETAFFINITY', true) +endif + # ************************ libcrystfel (subdir) ************************ subdir('libcrystfel') -- cgit v1.2.3