buildtool update
Hi all,
I just pushed a small fix for buildtool which solves some glitches with matching regular expressions (see [1] for details).
It shouldn't cause any problems, just make sure to run
g++ buildtool.cpp -o btool
after your next pull to re-compile.
Best Regards, Eduard
Hi Eduard, I've written a small batch file to recompile btool using a line I've read somewhere on this forum. The line is:
g++ -O3 buildtool.cpp -o btool.exe -fopenmp
Is the '-fopenmp' option significative or should I take it out? Thanks.
-- View this message in context: http://inkscape.13.x6.nabble.com/buildtool-update-tp4975847p4975890.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Hi Luca,
OpenMP is necessary for multi-threaded compilation (which I did not try myself yet).
So if you currently use the "-j" switch of btool to use multiple compilation threads you might want to keep the -fopenmp flag. Otherwise it's unnecessary.
Regards, Eduard
P.S.: I *think* I read about issues with multiple compilation threads in btool somewhere (which is why I never tried to use them so far) but I can't remember where... Anybody knows the latest status of multi-threaded compilation with buildtool on Windows? If it actually works it could easily cut my buildtimes in half! (if only I had known... ;-) ) Also we might want to update the Wiki since the recommended command line for compiling does *not* include -fopenmp while we still advertise the (then useless) "-j" switch
Am 07.03.2016 um 11:02 schrieb LucaDC:
Hi Eduard, I've written a small batch file to recompile btool using a line I've read somewhere on this forum. The line is:
g++ -O3 buildtool.cpp -o btool.exe -fopenmp
Is the '-fopenmp' option significative or should I take it out? Thanks.
-- View this message in context: http://inkscape.13.x6.nabble.com/buildtool-update-tp4975847p4975890.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Thank you Eduard, I supposed that the flag had something to do with the -j option and in fact I vaguely remember I must have seen that line in the context of explaining how to add that feature. Currently I'm not using multithreading for compiling so I wouldn't have noticed the difference.
In the Wiki page: http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows it's suggested to try the command without the -fopenmp option first and the the one with it only if the first fails: why should the first fail and not the second? Probably the line without the option should be the last one.
I suppose that the same can be applied to the 64bit version so the corresponding Wiki page should be updated too:
http://wiki.inkscape.org/wiki/index.php/Compiling_Inkscape_on_Windows_64-bit
Regards.
-- View this message in context: http://inkscape.13.x6.nabble.com/buildtool-update-tp4975847p4975892.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Quick update: Just tested multi-threaded compilation with btool and Inkscape seems to build just fine.
@Nicolas and Johan: Do you know of any reasons not to use multiple compilation threads or did this simply go unnoticed so far? Otherwise I'll update the recommended command line in the Wiki to include the "-fopenmp" flag so people can actually profit from this feature.
Regards, Eduard
Am 07.03.2016 um 11:48 schrieb Eduard Braun:
Hi Luca,
OpenMP is necessary for multi-threaded compilation (which I did not try myself yet).
So if you currently use the "-j" switch of btool to use multiple compilation threads you might want to keep the -fopenmp flag. Otherwise it's unnecessary.
Regards, Eduard
P.S.: I *think* I read about issues with multiple compilation threads in btool somewhere (which is why I never tried to use them so far) but I can't remember where... Anybody knows the latest status of multi-threaded compilation with buildtool on Windows? If it actually works it could easily cut my buildtimes in half! (if only I had known... ;-) ) Also we might want to update the Wiki since the recommended command line for compiling does *not* include -fopenmp while we still advertise the (then useless) "-j" switch
Am 07.03.2016 um 11:02 schrieb LucaDC:
Hi Eduard, I've written a small batch file to recompile btool using a line I've read somewhere on this forum. The line is:
g++ -O3 buildtool.cpp -o btool.exe -fopenmp
Is the '-fopenmp' option significative or should I take it out? Thanks.
-- View this message in context: http://inkscape.13.x6.nabble.com/buildtool-update-tp4975847p4975890.html Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://makebettercode.com/inteldaal-eval _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
participants (2)
-
Eduard Braun
-
LucaDC