* [PATCH] ibsim: fix non-debug path in run_opensm.sh script
@ 2011-08-05 23:29 Rolf Manderscheid
[not found] ` <E1QpTpr-00026L-B8-nLM+XIojDeH72zTlGHhC+rDks+cytr/Z@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Rolf Manderscheid @ 2011-08-05 23:29 UTC (permalink / raw)
To: alexne-VPRAkNaXOzVWk0Htik3J/w; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA
Signed-off-by: Rolf Manderscheid <rvm-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
---
scripts/run_opensm.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/scripts/run_opensm.sh b/scripts/run_opensm.sh
index a225d81..a299dc0 100755
--- a/scripts/run_opensm.sh
+++ b/scripts/run_opensm.sh
@@ -29,7 +29,7 @@ if [ -z "$debug" ] ; then
export SIM_HOST
export OSM_TMP_DIR
export OSM_CACHE_DIR
- time LD_PRELOAD=${umad2sim} ${cmd} ${cmd_args}
+ LD_PRELOAD=${umad2sim} time ${cmd} ${cmd_args}
rc=$?
exit $rc
else
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <E1QpTpr-00026L-B8-nLM+XIojDeH72zTlGHhC+rDks+cytr/Z@public.gmane.org>]
* Re: [PATCH] ibsim: fix non-debug path in run_opensm.sh script [not found] ` <E1QpTpr-00026L-B8-nLM+XIojDeH72zTlGHhC+rDks+cytr/Z@public.gmane.org> @ 2011-08-09 14:57 ` Alex Netes [not found] ` <20110809145727.GB2056-iQai9MGU/dze+A/uUDamNg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Alex Netes @ 2011-08-09 14:57 UTC (permalink / raw) To: Rolf Manderscheid; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA Hi Rolf, On 17:29 Fri 05 Aug , Rolf Manderscheid wrote: > > Signed-off-by: Rolf Manderscheid <rvm-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org> > --- > scripts/run_opensm.sh | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/scripts/run_opensm.sh b/scripts/run_opensm.sh > index a225d81..a299dc0 100755 > --- a/scripts/run_opensm.sh > +++ b/scripts/run_opensm.sh > @@ -29,7 +29,7 @@ if [ -z "$debug" ] ; then > export SIM_HOST > export OSM_TMP_DIR > export OSM_CACHE_DIR > - time LD_PRELOAD=${umad2sim} ${cmd} ${cmd_args} > + LD_PRELOAD=${umad2sim} time ${cmd} ${cmd_args} > rc=$? > exit $rc > else > -- This is what I get, when running the commands in the old way: $ time LD_PRELOAD=/home/ibsim/umad2sim/libumad2sim.so smpquery nd -D 0 ibwarn: [18137] sim_connect: attached as client 0 at node "S-0008f10500650bfe" Node Description:.Voltaire sLB-4018 Line 8 Chip 1 4700 #4700-A368 real 0m0.016s user 0m0.002s sys 0m0.013s This what I get, when running the commands in the new way: $ LD_PRELOAD=/home/ibsim/umad2sim/libumad2sim.so time smpquery nd -D 0 ibwarn: [18139] sim_connect: attached as client 0 at node "S-0008f10500650bfe" Node Description:.Voltaire sLB-4018 Line 8 Chip 1 4700 #4700-A368 0.00user 0.01system 0:00.02elapsed 80%CPU (0avgtext+0avgdata 876maxresident)k 0inputs+416outputs (0major+322minor)pagefaults 0swaps -- Alex -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20110809145727.GB2056-iQai9MGU/dze+A/uUDamNg@public.gmane.org>]
* Re: [PATCH] ibsim: fix non-debug path in run_opensm.sh script [not found] ` <20110809145727.GB2056-iQai9MGU/dze+A/uUDamNg@public.gmane.org> @ 2011-08-09 17:53 ` Jason Gunthorpe 2011-08-10 16:08 ` Rolf Manderscheid 1 sibling, 0 replies; 4+ messages in thread From: Jason Gunthorpe @ 2011-08-09 17:53 UTC (permalink / raw) To: Alex Netes; +Cc: Rolf Manderscheid, linux-rdma-u79uwXL29TY76Z2rM5mHXA On Tue, Aug 09, 2011 at 05:57:27PM +0300, Alex Netes wrote: > This is what I get, when running the commands in the old way: The construct 'time FOO=x cmd' is a bashism. The script either needs to use #!/bin/bash or the patch from Rolf to make it work properly on systems that use a POSIX shell as /bin/sh (ie Debian and dervied) The difference in time output reflects one being the bash built in and the other being the shell utils command. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ibsim: fix non-debug path in run_opensm.sh script [not found] ` <20110809145727.GB2056-iQai9MGU/dze+A/uUDamNg@public.gmane.org> 2011-08-09 17:53 ` Jason Gunthorpe @ 2011-08-10 16:08 ` Rolf Manderscheid 1 sibling, 0 replies; 4+ messages in thread From: Rolf Manderscheid @ 2011-08-10 16:08 UTC (permalink / raw) To: Alex Netes; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA Hi Alex, On 11-08-09 08:57 AM, Alex Netes wrote > This is what I get, when running the commands in the old way: > > ... I get: time: cannot run LD_PRELOAD=scripts/../umad2sim/libumad2sim.so: No such file or directory Command exited with non-zero status 127 0.00user 0.00system 0:00.00elapsed ?%CPU (0avgtext+0avgdata 1344maxresident)k 0inputs+0outputs (0major+70minor)pagefaults 0swaps Rolf -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-10 16:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-05 23:29 [PATCH] ibsim: fix non-debug path in run_opensm.sh script Rolf Manderscheid
[not found] ` <E1QpTpr-00026L-B8-nLM+XIojDeH72zTlGHhC+rDks+cytr/Z@public.gmane.org>
2011-08-09 14:57 ` Alex Netes
[not found] ` <20110809145727.GB2056-iQai9MGU/dze+A/uUDamNg@public.gmane.org>
2011-08-09 17:53 ` Jason Gunthorpe
2011-08-10 16:08 ` Rolf Manderscheid
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox