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

Updating the readme with MacOS install tips. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sbonner0
Copy link

Adding a few tips I needed to get this to run on an Intel based MacOS install.

I haven't tested on my M1 machine yet but will update further if any extra steps are needed.

@KiddoZhu
Copy link
Owner

KiddoZhu commented Aug 15, 2022

Great help!

The code doesn't rely on OpenMP as a hard constraint. The extension loader in TorchDrug uses these lines to detect whether OpenMP is available. If OpenMP is not available, it will fall back to the native parallel of PyTorch. I have no idea what the speed difference is, but PyTorch recommends to use OpenMP for CPU parallel. If you only use Mac for debug purpose, I feel OpenMP is not a must.

I am not a Mac user, so please correct me if I am wrong.

@sbonner0
Copy link
Author

sbonner0 commented Sep 7, 2022

Thanks!

I agree that OpenMP shouldn't be a hard constraint, however I still needed to take the steps detailed in the PR to even be able to install with on MacOS at all. I'll create a new venv and test if this is still the case.

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.

2 participants