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

Add OSX Support #115

Closed
wants to merge 10 commits into from
Closed

Add OSX Support #115

wants to merge 10 commits into from

Conversation

SimonBoothroyd
Copy link

@SimonBoothroyd SimonBoothroyd commented Oct 14, 2023

This PR updates how the custom ops lib is loaded to support OSX (and in theory Windows), and enables OSX tests in the CI

Fixes #102
Fixes #62

@SimonBoothroyd
Copy link
Author

@mikemhenry could you please trigger the CI here? The tests are all passing on my fork so this should be ready for review.

strategy:
fail-fast: false
matrix:
include:

# Oldest supported versions
- name: Linux (CUDA 10.2, Python 3.8, PyTorch 1.11)
os: ubuntu-18.04
Copy link
Contributor

Choose a reason for hiding this comment

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

Why go back to ubuntu-18 from 22?

Copy link
Author

Choose a reason for hiding this comment

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

🤦 good catch, thanks! fixed in 5b4051a

- name: Prepare dependencies (Mac)
if: ${{ contains(matrix.os, 'macos') }}
run: |
sed -i '' -e "s/- cudatoolkit/# - cudatoolkit/" \
Copy link
Contributor

Choose a reason for hiding this comment

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

It really looks like you are trying to install cudatoolkit here in OSX.
Not sure how to make it more obvious that you are commenting out the line.
Perhaps sed -i '' "/- cudatoolkit/d"

Copy link
Author

Choose a reason for hiding this comment

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

hmm yeah I see what you mean! this should be swapped over in 4014ff4

if: ${{ contains(matrix.os, 'macos') }}
run: |
sed -i '' -e "/- cudatoolkit/d" \
-e "/- gxx_linux-64/d" \
Copy link
Contributor

Choose a reason for hiding this comment

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

You dont need to install some version of gxx for Mac?

@RaulPPelaez
Copy link
Contributor

@peastman, I believe someone has to manually allow the new CI to run. Could you do so?

@peastman
Copy link
Member

It already ran without me doing anything. Two builds failed, one from CUDA not being available and one from running out of disk space.

@RaulPPelaez
Copy link
Contributor

CUDA builds seem unrelated to this PR.
However the 10.2 one is strange. CUDA is not available but that should not be a problem. In fact it seems like the Doctest is interpreting the warning as an error.
What I find surprising is that this is the first time we see this.
@SimonBoothroyd currently the CI is picking the C++ compiler from the docker runner.
For conda-forge you can use this instead:
https://docs.conda.io/projects/conda-build/en/latest/resources/compiler-tools.html

@SimonBoothroyd
Copy link
Author

However the 10.2 one is strange. CUDA is not available but that should not be a problem. In fact it seems like the Doctest is interpreting the warning as an error.

Hmm strange... can someone re-trigger the CI to see if this failure was a one off due to some runner issue?

currently the CI is picking the C++ compiler from the docker runner.

Sure I can swap to conda distributed compilers if you'd prefer - should be swapped in 1794c6e

@SimonBoothroyd SimonBoothroyd closed this by deleting the head repository Nov 27, 2023
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.

Incorrect library name on Mac Add OSX to CI testing matrix
3 participants