[openib-general] Re: OpenSM: No support for debug build

Michael S. Tsirkin mst at mellanox.co.il
Mon Aug 8 06:24:37 PDT 2005


Quoting r. Eitan Zahavi <eitan at mellanox.co.il>:
> -g = include debug information in executables and libs

IMO, there's no actual reason not to include this flag in release build.
You can always strip at the install stage if you want to.

> -O0 = prevent optimization
> 
> release mode uses:
> 
>         -O6 = max optimization for speed up

That would explain why does it take forever to build.
-O6 looks like an overkill. AFAIK, going above -O2 doesnt necessarily give
you a speedup.

libibverbs uses -O2, and thats used to run MPI.

-- 
MST



More information about the general mailing list