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

update updateAcceleratorMetrics to take an array of accelerator ids #21

Open
smedegaard opened this issue Nov 14, 2024 · 0 comments
Open

Comments

@smedegaard
Copy link
Collaborator

Update SystemInfo.updateAcceleratorMetrics() to take accelerators_id : ArrayList<Integer> as an argument.

only update the accelerator metrics for the ids in the arguemnts.

If the list is empty or null, update all accelerators.

    public void updateAcceleratorMetrics() {
        if (this.acceleratorUtil != null) {
            List<Accelerator> updatedAccelerators =
                    this.acceleratorUtil.getUpdatedAcceleratorsUtilization(this.accelerators);

            updateAccelerators(updatedAccelerators);
        }
    }
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

No branches or pull requests

1 participant