Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure each imex domain.cliqueId has a unique set of channel numbers #187

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

ArangoGutierrez
Copy link
Collaborator

No description provided.

cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
cmd/nvidia-dra-controller/imex.go Outdated Show resolved Hide resolved
@klueska
Copy link
Collaborator

klueska commented Oct 25, 2024

Looking good. I have some ideas to simplify it even further, but let's do them as a follow-up.

@ArangoGutierrez
Copy link
Collaborator Author

Looking good. I have some ideas to simplify it even further, but let's do them as a follow-up.

Thanks!

@ArangoGutierrez ArangoGutierrez merged commit b80afe7 into NVIDIA:main Oct 25, 2024
6 checks passed
newDriverResources.Pools[addedDomain] = generateImexChannelPool(addedDomain, ImexChannelLimit)
controller.Update(&newDriverResources)
driverResources = newDriverResources
driverResources := driverResources.DeepCopy()
Copy link
Collaborator

Choose a reason for hiding this comment

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

this was a bug -- we actually want the following (i.e. no : because we want to overwrite the original):

driverResources = driverResources.DeepCopy()

It's fixed in my refactoring:
#189

delete(newDriverResources.Pools, removedDomain)
controller.Update(&newDriverResources)
driverResources = newDriverResources
driverResources := driverResources.DeepCopy()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Likewise here...

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.

3 participants