From 31790cc69d5ed29fcb20387ee3a4e9899321cda3 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Thu, 12 Dec 2019 11:41:00 -0600 Subject: [PATCH] LD_PRELOAD interference fixed Change-Id: Ib44aa28a71326900f5a71bbb37dbd8049cc3e3a2 --- bin/rpl_run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/rpl_run.sh b/bin/rpl_run.sh index 3847e9db1c..19febd0ad1 100755 --- a/bin/rpl_run.sh +++ b/bin/rpl_run.sh @@ -233,16 +233,17 @@ run() { fi API_TRACE="" + LD_PRELOAD="" if [ "$ROCTX_TRACE" = 1 ] ; then API_TRACE=${API_TRACE}":roctx" fi if [ "$KFD_TRACE" = 1 ] ; then API_TRACE=${API_TRACE}":kfd" - export LD_PRELOAD="libkfdwrapper64.so libhsakmt.so.1" + export LD_PRELOAD="libkfdwrapper64.so libhsakmt.so.1 $LD_PRELOAD" fi if [ "$HIP_TRACE" = 1 ] ; then API_TRACE=${API_TRACE}":hip" - export LD_PRELOAD=libmcwamp_hsa.so + export LD_PRELOAD="libmcwamp_hsa.so $LD_PRELOAD" fi if [ "$SYS_TRACE" = 1 ] ; then API_TRACE=${API_TRACE}":sys"