Hi,

According to our installation guide:

*One useful setting for this variable when building Sage is MAKE='make 
-jNUM' to tell the make program to run NUM jobs in parallel when building. 
Note that some Sage packages may not support this variable.*

and our main build scripts are sprinkled with $(MAKE) instead of invoking 
"make" directly. 

But as I understand the jobserver 
(https://www.gnu.org/software/make/manual/html_node/Job-Slots.html), only 
the top-level make command should get "-jNUM" flag and sub make commands 
should not get "-jNUM flag, for the jobserver to work across all make 
commands.

Hence we should revise the paragraph in the installation guide to not 
recommend  to define *MAKE='make -jNUM', but to build sage by make -jNUM at 
the top-level.*

*Am I right?*

Moreover I think SAGE_NUM_THREADS environment variable should be used if a 
sage package wants to run parallel jobs, instead of relying on *MAKE='make 
-jNUM'.*


*Do you agree?*

I am considering this issue since currently doc build does not do parallel 
jobs, and the above issue seems related.

Thank you for attention in advance.

Kwankyu




-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/f8796edd-2e2b-4ece-b093-28786ff57bc9n%40googlegroups.com.

Reply via email to