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

[Core] Update doc for Ray core accelerator support #41849

Merged
merged 6 commits into from Dec 13, 2023

Conversation

jjyao
Copy link
Contributor

@jjyao jjyao commented Dec 13, 2023

Why are these changes needed?

  • Include docs for accelerators other than GPU.
  • Replace RuntimeContext.get_resource_ids() with RuntimeContext.get_accelerator_ids()

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
@jjyao jjyao marked this pull request as ready for review December 13, 2023 06:09
@jjyao jjyao requested a review from a team as a code owner December 13, 2023 06:09
Copy link
Contributor

@angelinalg angelinalg left a comment

Choose a reason for hiding this comment

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

Just a small grammar nit.

python/ray/runtime_context.py Outdated Show resolved Hide resolved
Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
@@ -87,14 +87,14 @@ def construct_metadata() -> WorkerMetadata:
node_id = ray.get_runtime_context().get_node_id()
node_ip = ray.util.get_node_ip_address()
hostname = socket.gethostname()
resource_ids = ray.get_runtime_context().get_resource_ids()
accelerator_ids = ray.get_runtime_context().get_accelerator_ids()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@matthewdeng I deprecated get_resource_ids() and introduced get_accelerator_ids() as we discussed. You may want to change train side as well.

Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
@jjyao jjyao merged commit 7643209 into ray-project:master Dec 13, 2023
14 checks passed
@jjyao jjyao deleted the jjyao/accelerators branch December 13, 2023 22:40
jjyao added a commit that referenced this pull request Dec 13, 2023
- Include docs for accelerators other than GPU
- Replace RuntimeContext.get_resource_ids() with RuntimeContext.get_accelerator_ids()

Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
architkulkarni pushed a commit that referenced this pull request Dec 14, 2023
- Include docs for accelerators other than GPU
- Replace RuntimeContext.get_resource_ids() with RuntimeContext.get_accelerator_ids()

Signed-off-by: Jiajun Yao <jeromeyjj@gmail.com>
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.

None yet

5 participants