Skip to content

Use automatic CDI spec generation to generate CDI specs for other modifiers#1667

Merged
elezar merged 5 commits intoNVIDIA:mainfrom
elezar:unify-csv-and-jit-cdi
Mar 4, 2026
Merged

Use automatic CDI spec generation to generate CDI specs for other modifiers#1667
elezar merged 5 commits intoNVIDIA:mainfrom
elezar:unify-csv-and-jit-cdi

Conversation

@elezar
Copy link
Member

@elezar elezar commented Feb 19, 2026

This change ensures that we reuse the instatiation of the nvcdi library to generate CDI specs for CSV mode, feature gated modes mode, as well as jit-cdi mode. This reduces the amount of code that needs to be kept in sync when making modifications.

@elezar elezar changed the title Use automatic CDI spec generation to generate CDI specs for CSV Use automatic CDI spec generation to generate CDI specs for other modifiers Feb 19, 2026
@elezar elezar force-pushed the unify-csv-and-jit-cdi branch from 712aaa2 to 6f8fed6 Compare February 19, 2026 14:43
@elezar elezar force-pushed the unify-csv-and-jit-cdi branch 2 times, most recently from 78d9067 to 4276f96 Compare March 3, 2026 15:42

func (f *Factory) validate() error {
if f.driver == nil {
return fmt.Errorf("a driver muse be specified")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return fmt.Errorf("a driver muse be specified")
return fmt.Errorf("a driver must be specified")

elezar added 5 commits March 4, 2026 10:04
This allows for other parts of the code to detect whether we're running in testing.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar force-pushed the unify-csv-and-jit-cdi branch from 4276f96 to af7b79b Compare March 4, 2026 09:21
@elezar elezar merged commit 722b541 into NVIDIA:main Mar 4, 2026
16 checks passed
@elezar elezar deleted the unify-csv-and-jit-cdi branch March 4, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants