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

feat: accept UUID in CUDA_VISIBLE_DEVICES round robin assignment #5360

Merged
merged 5 commits into from
Nov 8, 2022

Conversation

JoanFM
Copy link
Member

@JoanFM JoanFM commented Nov 7, 2022

Goals:
Accept UUID assignment when ROUND-ROBIN assignment of CUDA_VISIBLE_DEVICES.

@github-actions github-actions bot added size/S area/core This issue/PR affects the core codebase area/testing This issue/PR affects testing labels Nov 7, 2022
@JoanFM JoanFM linked an issue Nov 7, 2022 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Nov 7, 2022

Codecov Report

Merging #5360 (38bec69) into master (bef22c8) will increase coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5360      +/-   ##
==========================================
+ Coverage   86.72%   86.83%   +0.10%     
==========================================
  Files          99       99              
  Lines        6488     6494       +6     
==========================================
+ Hits         5627     5639      +12     
+ Misses        861      855       -6     
Flag Coverage Δ
jina 86.83% <100.00%> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...untimes/request_handlers/worker_request_handler.py 97.50% <ø> (ø)
jina/serve/networking.py 88.73% <100.00%> (+0.44%) ⬆️
...ina/serve/runtimes/gateway/graph/topology_graph.py 99.47% <100.00%> (+0.01%) ⬆️
jina/serve/instrumentation/_aio_server.py 88.57% <0.00%> (+11.42%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions github-actions bot added the area/docs This issue/PR affects the docs label Nov 7, 2022
@JoanFM JoanFM marked this pull request as ready for review November 8, 2022 08:41
docs/fundamentals/flow/topologies.md Outdated Show resolved Hide resolved
docs/fundamentals/flow/topologies.md Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

📝 Docs are deployed on https://feat-RR-UUID--jina-docs.netlify.app 🎉

@JoanFM JoanFM requested a review from alexcg1 November 8, 2022 10:51
Copy link
Contributor

@samsja samsja left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@alexcg1 alexcg1 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Comment on lines +755 to +762
int(parts[0])
except:
use_uuids = True

if not use_uuids:
return [int(p) for p in parts]
else:
return parts
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it supported to have only some parts as UUID? Should we do this check for every part?

Copy link
Member Author

Choose a reason for hiding this comment

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

I understand that if u pass the first as UUID, all of them will, other checks feel like overkill

@JoanFM JoanFM merged commit a34df71 into master Nov 8, 2022
@JoanFM JoanFM deleted the feat-RR-UUID branch November 8, 2022 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core This issue/PR affects the core codebase area/docs This issue/PR affects the docs area/testing This issue/PR affects testing size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Round-Robin GPU scheduling does not follow CUDA_VISIBLE_DEVICES spec
4 participants