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 <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1924617
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Philip Elcan
2018-10-10 09:50:00 -04:00
committed by mobile promotions
parent 78eca5bdc3
commit 45db303354

View File

@@ -15,7 +15,9 @@ if [ -f nvgpu_unit ]; then
# if the executable is in the current directory, we are running on # if the executable is in the current directory, we are running on
# target, so use that dir structure # target, so use that dir structure
LD_LIBRARY_PATH=".:units" 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 else
# running on host # running on host
LD_LIBRARY_PATH="build:build/units" LD_LIBRARY_PATH="build:build/units"