[Insight-developers] Dashboard
William A. Hoffman
billlist at nycap.rr.com
Thu Mar 10 10:36:03 EST 2005
For the SGI's I was able to speed up the compile times by using
all the processors on the SGI. So, if you have multiprocessor SGI's
you can do this:
http://www.itk.org/Testing/Sites/rapture.sci.utah.edu/IRIX64-CC-7.3/20050309-0500-Nightly/Notes.html
# create a file that does a -J25 when building static libs:
FILE(WRITE "$ENV{HOME}/Dashboards/MyTests/Insight-CC-tmp/ParallelRules.cmake"
"SET(CMAKE_CXX_CREATE_STATIC_LIBRARY \"<CMAKE_CXX_COMPILER> -J25 -ar -o <TARGET> <OBJECTS>\")")
# in the cmake cache tell it to use the rule file above
CMAKE_USER_MAKE_RULES_OVERRIDE:STRING=$ENV{HOME}/Dashboards/MyTests/Insight-CC-tmp/ParallelRules.cmake
# for the make command use -j20
MAKECOMMAND:STRING=gmake -i -j20
Basically, it means when the CC is compiling template instances it compiles them in
parallel.
-Bill
More information about the Insight-developers
mailing list