Skip to content

TODO: machine setting as API #41

Open

Description

@ShuhaoZhangTony

/** * TODO: expose this clearly to user via API. * * @return */ public static int next_cpu() { ArrayList[] mapping_node = Platform.getNodes(3); ArrayList list = mapping_node[socket]; Integer core = list.get(cpu); cpu++; if (cpu == 24) {//assume one socket 24 cores. socket++; cpu = 0; } return core; }

Activity

  1. changed the title [-]TODO[/-] [+]TODO: machine setting as API[/+] on Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions