Does it build with LIBRARY_PATH? You'll need LD_LIBRARY_PATH in your environment for running.
The performance improvements I saw were using fast on long tests. Many of the quick tests are short enough that load time dominates and there very well might be more overhead in tcmalloc to start up. Ali On 26.07.2012 14:49, Lisa Hsu wrote: > Our tcmalloc is in a non-standard location and even with this changeset and > setting LIBRARY_PATH in my environment, the only way I could get it to > build and run with by putting this in the SConstruct: > > main.Append(LIBPATH="/path/to/tcmalloc/lib") > > Am I missing something here? > > Lisa > > On Thu, Jul 12, 2012 at 1:06 PM, Andreas Hansson <[email protected]>wrote: > >> changeset a8749b39f1f8 in /z/repo/gem5 details: http://repo.gem5.org/gem5?cmd=changeset;node=a8749b39f1f8 [1] description: scons: Add LIBRARY_PATH from the user environment to Scons This patch adds the LIBRARY_PATH from the users OS environment to Scons build environment. This path is used when linking to search for libraries, and this patch enables tcmalloc to be used during the build even if it is not placed in the default search paths. diffstat: SConstruct | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diffs (14 lines): diff -r fdfe72857f89 -r a8749b39f1f8 SConstruct --- a/SConstruct Thu Jul 12 08:39:20 2012 -0500 +++ b/SConstruct Thu Jul 12 12:56:11 2012 -0400 @@ -177,8 +177,8 @@ # Set up the main build environment. # ######################################################################## -use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH', 'PATH', - 'PYTHONPATH', 'RANLIB', 'SWIG' ]) +use_vars = set([ 'AS', 'AR', 'CC', 'CXX', 'HOME', 'LD_LIBRARY_PATH', + 'LIBRARY_PATH', 'PATH', 'PYTHONPATH', 'RANLIB', 'SWIG' ]) use_env = {} for key,val in os.environ.iteritems(): _______________________________________________ gem5-dev mailing list [email protected] [2] http://m5sim.org/mailman/listinfo/gem5-dev [3] > > _______________________________________________ > gem5-dev mailing list > [email protected] > http://m5sim.org/mailman/listinfo/gem5-dev Links: ------ [1] http://repo.gem5.org/gem5?cmd=changeset;node=a8749b39f1f8 [2] mailto:[email protected] [3] http://m5sim.org/mailman/listinfo/gem5-dev _______________________________________________ gem5-dev mailing list [email protected] http://m5sim.org/mailman/listinfo/gem5-dev
