diff --git a/userspace/include/unit/args.h b/userspace/include/unit/args.h index 4e2cf9037..6b63fe5e7 100644 --- a/userspace/include/unit/args.h +++ b/userspace/include/unit/args.h @@ -32,8 +32,12 @@ #define stringify(x) __stringify(x) #ifndef __DEFAULT_ARG_DRIVER_LOAD_PATH +#if defined(__NVGPU_POSIX__) +#define __DEFAULT_ARG_DRIVER_LOAD_PATH ./build/libnvgpu-drv-igpu.so +#else #define __DEFAULT_ARG_DRIVER_LOAD_PATH ./libnvgpu-drv-igpu.so #endif +#endif #define DEFAULT_ARG_DRIVER_LOAD_PATH stringify(__DEFAULT_ARG_DRIVER_LOAD_PATH) #ifndef __DEFAULT_ARG_UNIT_LOAD_PATH