From 45db303354770e43807c656c2c93bfb5d6b229f9 Mon Sep 17 00:00:00 2001 From: Philip Elcan Date: Wed, 10 Oct 2018 09:50:00 -0400 Subject: [PATCH] gpu: nvgpu: unit: update params for on target runs When run on target, presumably as part of GVS, we need to run multithreaded, without colors and with the nvtest output. This updates unit.sh to apply those params on target. Also use the long parameter names since they should be self documenting. JIRA NVGPU-1042 Change-Id: I27f0d1371df9b553262e1ebe1e4b258202c322d2 Signed-off-by: Philip Elcan Reviewed-on: https://git-master.nvidia.com/r/1924617 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- userspace/unit.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userspace/unit.sh b/userspace/unit.sh index 155c3727f..403f63516 100755 --- a/userspace/unit.sh +++ b/userspace/unit.sh @@ -15,7 +15,9 @@ if [ -f nvgpu_unit ]; then # if the executable is in the current directory, we are running on # target, so use that dir structure LD_LIBRARY_PATH=".:units" - NVGPU_UNIT="./nvgpu_unit -n -L units/" + cores=$(cat /proc/cpuinfo |grep processor |wc -l) + NVGPU_UNIT="./nvgpu_unit --nvtest --unit-load-path units/ --no-color \ + --num-threads $cores" else # running on host LD_LIBRARY_PATH="build:build/units"