The Cooperative Computing Tools (cctools) enable large scale distributed computations to harness hundreds to thousands of machines from clusters, clouds, and grids.
But it's not packaged in the stable version for Darwin. So I tried to compile it manually:
cctools-7.0.11-source/resource_monitor/src
➜ make
COMPILE rmonitor_helper.o
rmonitor_helper.c:380:49: error: use of undeclared identifier 'AF_NETLINK'
if(fd > -1 && (domain != AF_LOCAL || domain != AF_NETLINK)) {
^
rmonitor_helper.c:594:2: error: use of undeclared identifier 'sighandler_t'
sighandler_t old_handler = signal(SIGCONT, exit_signal_handler);
^
rmonitor_helper.c:624:3: warning: implicit declaration of function 'sigtimedwait' is invalid in C99 [-Wimplicit-function-declaration]
sigtimedwait(&all_signals, NULL, &timeout);
^
rmonitor_helper.c:626:19: error: use of undeclared identifier 'old_handler'
signal(SIGCONT, old_handler);
^
rmonitor_helper.c:628:19: error: use of undeclared identifier 'old_handler'
signal(SIGCONT, old_handler);
^
1 warning and 4 errors generated.
make: *** [rmonitor_helper.o] Error 1
make-ing the whole cctools executes successfully but resource_monitor is not generated. This is different from when I tried to compile it in Linux. Is this intended?
@rkkautsar, thank you for your report. Yes this is expected, as the resource monitor is no supported in Darwin, as it will not really measure anything useful. It is a documentation bug...
From the manpage:
But it's not packaged in the stable version for Darwin. So I tried to compile it manually:
make
-ing the whole cctools executes successfully butresource_monitor
is not generated. This is different from when I tried to compile it in Linux. Is this intended?