mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: unit: add --driver-load-path arg
Add --driver-load-path option to specify which library to
load for driver.
There is already an --unit-load-path option that can be
used to specify where to load units from.
Example usage:
./nvgpu_unit --nvtest --unit-load-path units/dgpu \
--no-color --num-threads 1 \
--driver-load-path ./libnvgpu-drv-dgpu.so
Jira NVGPU-5217
Change-Id: I6af5d2029138b25a6715154779b812d30052e9e9
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2333498
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
88d3640bc5
commit
80285be2da
@@ -31,6 +31,11 @@
|
||||
#define __stringify(x) #x
|
||||
#define stringify(x) __stringify(x)
|
||||
|
||||
#ifndef __DEFAULT_ARG_DRIVER_LOAD_PATH
|
||||
#define __DEFAULT_ARG_DRIVER_LOAD_PATH ./libnvgpu-drv.so
|
||||
#endif
|
||||
#define DEFAULT_ARG_DRIVER_LOAD_PATH stringify(__DEFAULT_ARG_DRIVER_LOAD_PATH)
|
||||
|
||||
#ifndef __DEFAULT_ARG_UNIT_LOAD_PATH
|
||||
#define __DEFAULT_ARG_UNIT_LOAD_PATH build/units
|
||||
#endif
|
||||
@@ -50,6 +55,8 @@ struct unit_fw_args {
|
||||
bool debug;
|
||||
const char *binary_name;
|
||||
|
||||
const char *driver_load_path;
|
||||
|
||||
const char *unit_name;
|
||||
const char *unit_load_path;
|
||||
const char *unit_to_run;
|
||||
|
||||
@@ -42,7 +42,7 @@ struct unit_fw {
|
||||
struct unit_results *results;
|
||||
|
||||
/*
|
||||
* nvgpu-drv interface. Currently the only two directly referenced
|
||||
* driver library interface. Currently the only two directly referenced
|
||||
* functions are:
|
||||
*
|
||||
* nvgpu_posix_probe()
|
||||
|
||||
Reference in New Issue
Block a user