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

Cleanup multinode papers100m get_num_workers #8368

Merged
merged 1 commit into from
Nov 14, 2023
Merged

Conversation

puririshi98
Copy link
Contributor

address comments from discussion at end of #8071

@@ -19,15 +19,15 @@
from torch_geometric.nn import GCNConv


def get_num_workers(world_size: int) -> int:
def get_num_workers() -> int:
num_workers = None
if hasattr(os, "sched_getaffinity"):
Copy link
Member

Choose a reason for hiding this comment

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

I also wonder, on which platform with pyg and CUDA os.sched_getaffinity is not available and then you have to fallback to os.cpu_count...

@flxmr os.sched_getaffinity is only available on UNIX systems: https://docs.python.org/3/library/os.html#interface-to-the-scheduler
but since this script is already specialised for a slurm cluster, I think we could also drop it. I'm fine as is though.

@rusty1s rusty1s changed the title cleanup multinode papers100m get_num_workers Cleanup multinode papers100m get_num_workers Nov 14, 2023
@rusty1s rusty1s merged commit 88d7986 into master Nov 14, 2023
14 of 15 checks passed
@rusty1s rusty1s deleted the fixi-multinode-num-work branch November 14, 2023 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants