Skip to content

Xelink info generation feature #1369

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

Closed
wants to merge 0 commits into from
Closed

Xelink info generation feature #1369

wants to merge 0 commits into from

Conversation

hsyrja
Copy link
Contributor

@hsyrja hsyrja commented Mar 31, 2023

This adds xelink info generation option to gpu_fakedev generator.

Copy link
Contributor

@tkatila tkatila left a comment

Choose a reason for hiding this comment

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

Did you run make lint? It seems to be failing in the CI.

Copy link
Contributor

@eero-t eero-t left a comment

Choose a reason for hiding this comment

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

It's a bit disturbing that the earlier gpu_fakedev.go code uses the pattern of:

  • define function
  • use function (in another function)

But the new code does the opposite.

Could the new functions be ordered so that their functions code is before they are used?

(IMHO that makes the code also marginally easier to review, as you first see / review the function as-is, and then the context in which it is used.)

@eero-t
Copy link
Contributor

eero-t commented Apr 13, 2023

Btw. Why I do not have an option to mark my comments as resolved? Is that reserved only for project maintainers?

@eero-t
Copy link
Contributor

eero-t commented Apr 19, 2023

@hsyrja can you set the resolved items as resolved (as I cannot)?

@tkatila can you approve this for CI checks? Any comments on it?

@tkatila
Copy link
Contributor

tkatila commented Apr 19, 2023

@tkatila can you approve this for CI checks? Any comments on it?

Approved for CI.

@mythi
Copy link
Contributor

mythi commented Apr 21, 2023

commits must be squashed

@tkatila
Copy link
Contributor

tkatila commented Apr 25, 2023

@hsyrja can you squash? We could then merge.

@mythi
Copy link
Contributor

mythi commented May 5, 2023

@hsyrja it's still two commits.

@tkatila
Copy link
Contributor

tkatila commented May 23, 2023

I triggered the checks. If there's no new findings, I think it's fine to squash and merge.

@tkatila
Copy link
Contributor

tkatila commented May 23, 2023

@hsyrja feel free to squash and we can merge. GPU e2e is currently broken.

Comment on lines 85 to 88
func min(val1 int, val2 int) int {
// TODO replace this with template version of Min(), once Golang standard library gets one
return int(math.Min(float64(val1), float64(val2)))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Latest Go release added generic min() & max() functions:

I.e. this function can be removed when Intel k8s devices project upgrades to go v1.21.

Copy link
Contributor

Choose a reason for hiding this comment

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

my thinking is to follow kubernetes, likely after our 0.28 release

@eero-t
Copy link
Contributor

eero-t commented Sep 8, 2023

@hsyrja Ukri's DRA support changes were merged to fakedev code, so your PR will now conflict with the code in the repository, and needs to be rebases & fixed (along with commit squashing requested earlier).

@mythi
Copy link
Contributor

mythi commented Oct 23, 2023

@hsyrja Ukri's DRA support changes were merged to fakedev code, so your PR will now conflict with the code in the repository, and needs to be rebases & fixed (along with commit squashing requested earlier).

Looks like this PR is not important so should we just close it?

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.

4 participants