mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: igpu and dgpu driver libs
Different build flags are used for iGPU and dGPU in safety build. In order to support dGPU in unit tests, a separate library is needed for the driver. Added makefiles to build: - libnvgpu-drv-igpu.so - libnvgpu-drv-dpgu.so Updated scripts and units makefiles to use libnvgpu-drv-igu by default. Jira NVGPU-5217 Change-Id: Ibcc56088723cec5cb2d0ac42725102ae0c886014 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2333499 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
80285be2da
commit
4f682bf107
@@ -23,7 +23,7 @@
|
||||
#
|
||||
# Execute the unit test. Args to this script are passed on to the unit test
|
||||
# core. This just serves to set the LD_LIBRARY_PATH environment variable such
|
||||
# that unit tests are found and nvgpu-drv is found.
|
||||
# that unit tests are found and nvgpu-drv-igpu is found.
|
||||
#
|
||||
|
||||
options=$(getopt -o t: --long test-level: -- "$@")
|
||||
@@ -34,13 +34,13 @@ pushd $this_script_dir
|
||||
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"
|
||||
LD_LIBRARY_PATH=".:units/igpu"
|
||||
cores=$(cat /proc/cpuinfo |grep processor |wc -l)
|
||||
|
||||
# Ignore number of cores for now; it seems that the parallel unit
|
||||
# tests are just too buggy and that they really don't save much
|
||||
# actual computing time.
|
||||
NVGPU_UNIT="./nvgpu_unit --nvtest --unit-load-path units/ --no-color \
|
||||
NVGPU_UNIT="./nvgpu_unit --nvtest --unit-load-path units/igpu --no-color \
|
||||
--num-threads 1"
|
||||
else
|
||||
# running on host
|
||||
|
||||
Reference in New Issue
Block a user