* LLVM / Clang git for libclc: optimized build or debug?
@ 2015-01-26 19:20 Dieter Nützel
2015-01-27 3:23 ` Michel Dänzer
0 siblings, 1 reply; 2+ messages in thread
From: Dieter Nützel @ 2015-01-26 19:20 UTC (permalink / raw)
To: Dri Devel
make[1]: Leaving directory '/opt/llvm/bindings'
llvm[0]: ***** Completed Debug+Asserts Build
llvm[0]: ***** Note: Debug build can be 10 times slower than an
llvm[0]: ***** optimized build. Use make ENABLE_OPTIMIZED=1 to
llvm[0]: ***** make an optimized build. Alternatively you can
llvm[0]: ***** configure with --enable-optimized.
304.322u 15.792s 1:50.25 290.3% 0+0k 6156432+1518784io 942pf+0w
Second:
'make -j 4' do NOT work in the first run. --- Known?
It breaks with 'killed' not known.
Thanks,
Dieter
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: LLVM / Clang git for libclc: optimized build or debug?
2015-01-26 19:20 LLVM / Clang git for libclc: optimized build or debug? Dieter Nützel
@ 2015-01-27 3:23 ` Michel Dänzer
0 siblings, 0 replies; 2+ messages in thread
From: Michel Dänzer @ 2015-01-27 3:23 UTC (permalink / raw)
To: Dieter Nützel; +Cc: Dri Devel
On 27.01.2015 04:20, Dieter Nützel wrote:
> make[1]: Leaving directory '/opt/llvm/bindings'
> llvm[0]: ***** Completed Debug+Asserts Build
> llvm[0]: ***** Note: Debug build can be 10 times slower than an
> llvm[0]: ***** optimized build. Use make ENABLE_OPTIMIZED=1 to
> llvm[0]: ***** make an optimized build. Alternatively you can
> llvm[0]: ***** configure with --enable-optimized.
> 304.322u 15.792s 1:50.25 290.3% 0+0k 6156432+1518784io 942pf+0w
FWIW, I use these debug vs. optimization related options for building LLVM:
'--enable-optimized' '--with-optimize-option=-O2 -ftree-vectorize
-march=amdfam10 -mtune=native' '--enable-assertions'
'--enable-debug-runtime' '--enable-debug-symbols'
'CPPFLAGS=-fno-omit-frame-pointer' 'CFLAGS=-fno-omit-frame-pointer'
'CXXFLAGS=-fno-omit-frame-pointer'
That gives good performance while preserving assertions and debugging
symbols. -march=amdfam10 (as opposed to -march=native or a newer AMD CPU
family) avoids generating machine code which valgrind can't handle, and
-fno-omit-frame-pointer allows profile call graphs to make sense.
> Second:
> 'make -j 4' do NOT work in the first run. --- Known?
Not to me.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-27 3:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-26 19:20 LLVM / Clang git for libclc: optimized build or debug? Dieter Nützel
2015-01-27 3:23 ` Michel Dänzer
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.