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 llvm-openmp to host deps on osx #159

Closed
wants to merge 14 commits into from

Conversation

Tobias-Fischer
Copy link
Contributor

@Tobias-Fischer Tobias-Fischer commented Jan 24, 2023

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

llvm-openmp should be pinned to 14. However, for some reason the llvm-openmp build version (not host version) is used for the version pin at the moment. This should resolve this issue.

Issue originally encountered in conda-forge/norse-feedstock#11 where:

package pytorch-1.13.0-cpu_py310h09eaf1a_0 requires llvm-openmp >=15.0.6, but none of the providers can be installed

Both osx-64 and osx-arm64 have implicitly already pulled in llvm-openmp in the host deps in previous builds.

@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@Tobias-Fischer
Copy link
Contributor Author

@conda-forge-admin, please rerender

Fixes

+ python ./test/run_test.py
Traceback (most recent call last):
  File "/Users/runner/miniforge3/conda-bld/pytorch-recipe_1673797381436/test_tmp/./test/run_test.py", line 22, in <module>
    from torch.testing._internal.common_utils import (
  File "/Users/runner/miniforge3/conda-bld/pytorch-recipe_1673797381436/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib/python3.11/site-packages/torch/testing/_internal/common_utils.py", line 57, in <module>
    import expecttest
@Tobias-Fischer
Copy link
Contributor Author

Do we really not care at all if the tests pass? Why do we bother running them in the CI then anyhow?

- OMP_NUM_THREADS=4 python ./test/run_test.py || true # [not win]

@hmaarrfk
Copy link
Contributor

I think it is just that pytorch is so heavy. It is hard to get them to pass on limited resources.

@Tobias-Fischer
Copy link
Contributor Author

Ok that makes sense

@hmaarrfk
Copy link
Contributor

i mean, i tried to debug them a while back. it is just very hard to disentangle:

  1. Limited compute power.
  2. Numerical error
  3. Buggy code
  4. Using newer versions of libraries that introduce more numerical error

We did it for scipy and numpy. You can try to run the tests. That might be good task to tackle to better understand how we are doing.

I haven't heard of too many people complaining of segfaults, so i'm crossing my fingers that we are in a good place.

@Tobias-Fischer
Copy link
Contributor Author

@conda-forge-admin, please rerender

conda-forge-webservices[bot] and others added 2 commits January 25, 2023 01:28
@@ -1,5 +1,5 @@
MACOSX_SDK_VERSION: # [osx]
- 12.3 # [osx]
- 11.3 # [osx]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why? I think this was useful to ensure that certain hardware optimizations were available.

Copy link
Contributor

@ngam ngam Jan 28, 2023

Choose a reason for hiding this comment

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

Why? I think this was useful to ensure that certain hardware optimizations were available.

Because CI fails .. It can't download the SDK image.

12.3 SDK should be available in the newest OSX images on azure and github actions, that was our workaround. At any rate, having 12.3+ is critical for MPS (metal) support, specifically for enabling it automatically.

Copy link
Contributor

Choose a reason for hiding this comment

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

You're correct though that the 12.3 SDK is not available from the regular repo we use...

Copy link
Contributor

Choose a reason for hiding this comment

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

Workaround --- use macOS-12 images to get 12.3 SDK:

azure:
settings_osx:
pool:
vmImage: macos-12

@Tobias-Fischer
Copy link
Contributor Author

Because CI fails .. It can't download the SDK image.

@Tobias-Fischer
Copy link
Contributor Author

@conda-forge-admin, please rerender

@Tobias-Fischer
Copy link
Contributor Author

I seem to be missing something .. any clues @ngam @hmaarrfk?

+++ '[' -f /Users/runner/work/1/s/.ci_support/osx_64_numpy1.20python3.8.____cpython.yaml ']'
++++ cat /Users/runner/work/1/s/.ci_support/osx_64_numpy1.20python3.8.____cpython.yaml
++++ shyaml get-value MACOSX_SDK_VERSION.0 0
+++ export MACOSX_SDK_VERSION=12.3
+++ MACOSX_SDK_VERSION=12.3
++++ cat /Users/runner/work/1/s/.ci_support/osx_64_numpy1.20python3.8.____cpython.yaml
++++ shyaml get-value WITH_LATEST_OSX_SDK.0 0
+++ export WITH_LATEST_OSX_SDK=0
+++ WITH_LATEST_OSX_SDK=0
+++ [[ 0 != \0 ]]
+++ [[ 12.3 == \0 ]]
+++ export CONDA_BUILD_SYSROOT=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
+++ CONDA_BUILD_SYSROOT=/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
+++ [[ ! -d /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk ]]
+++ echo 'Downloading 12.3 sdk'
Downloading 12.3 sdk
+++ curl -L -O https://github.com/phracker/MacOSX-SDKs/releases/download/11.3/MacOSX12.3.sdk.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100     9  100     9    0     0     21      0 --:--:-- --:--:-- --:--:--    21

It tries to download the 12.3 SDK from https://github.com/phracker/MacOSX-SDKs/ but it is not available. Are there any other variables I need to set?

@hmaarrfk
Copy link
Contributor

It may be that we had a workaround for this in conda-smithy.

Could you also add:

skip: true    # [linux]
skip: true    # [py!=39]

during the debugging process

@ngam
Copy link
Contributor

ngam commented Jan 28, 2023

I will look if conda-smithy changed something recently or if the azure image changed substantially

edit:

@ngam
Copy link
Contributor

ngam commented Jan 28, 2023

Ah, I think the problem is that 12.3 is housed elsewhere, not under Xcode 14.2. Let me try to double check the details. It used to be that all these SDKs got linked here: /Library/Developer/CommandLineTools/SDKs/ but that might be different now...

@ngam
Copy link
Contributor

ngam commented Jan 28, 2023

Basically, this is why:

SDK SDK Name Xcode Version
macOS 12.0 macosx12.0 13.1
macOS 12.1 macosx12.1 13.2.1
macOS 12.3 macosx12.3 13.3.1, 13.4, 13.4.1, 14.0.1
macOS 13.0 macosx13.0 14.1
macOS 13.1 macosx13.1 14.2

A quick solution is to simply specify 13.1 instead of 12.3 for the time being. We need to resolve this issue at some point system-wide. The repo we rely on for SDKs is no longer maintained: https://github.com/phracker/MacOSX-SDKs.

@Tobias-Fischer how about the following changes:

skip: true    # [linux]
skip: true    # [py!=39]

and then 12.3 to 13.1 to test.

@Tobias-Fischer
Copy link
Contributor Author

@conda-forge-admin, please rerender

@hmaarrfk
Copy link
Contributor

I feel like they pulled something
phracker/MacOSX-SDKs#36 (comment)

@ngam
Copy link
Contributor

ngam commented Jan 28, 2023

I feel like they pulled something
phracker/MacOSX-SDKs#36 (comment)

That's 11.3, we are after either 12.3 or 13.1 (depending on which one you're following)

@Tobias-Fischer
Copy link
Contributor Author

Is there anything we can do here in the meantime to push this PR forward?

Co-authored-by: ngam <67342040+ngam@users.noreply.github.com>
@ngam
Copy link
Contributor

ngam commented Jan 31, 2023

Do we know if this will actually fix things? Can we test? This PR seems fine to me without tests and it should likely be okay to add it from the perspective of PyTorch, though I am not sure about your goals...

Let's wait for @hmaarrfk to finalize it, in particular make a final call on #159 (comment)

@Tobias-Fischer
Copy link
Contributor Author

Good point - I am reasonably confused now.

From the 1.13.1 build logs on osx-64 python 3.10 (https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=642018&view=logs&jobId=c35410bf-a820-56fd-e231-d3cd4bead63c&j=a8dee1cf-d17f-5cb0-b53f-4a93dfdbfb0c&t=929f6101-935e-5679-3be5-15b073490bac):

INFO :: The inputs making up the hashes for the built packages are as follows:
{
  "pytorch-1.13.1-cpu_py310h09eaf1a": {
    "recipe": {
      "CONDA_BUILD_SYSROOT": "/Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk",
      "c_compiler": "clang",
      "c_compiler_version": "13",
      "channel_targets": "conda-forge main",
      "cuda_compiler_version": "None",
      "cxx_compiler": "clangxx",
      "cxx_compiler_version": "13",
      "libprotobuf": "3.21",
      "llvm_openmp": "14",
      "mkl": "2022",
      "numpy": "1.21",
      "python": "3.10.* *_cpython",
      "target_platform": "osx-64"
    }
  },
  "pytorch-cpu-1.13.1-cpu_py310h439f030": {
    "recipe": {
      "channel_targets": "conda-forge main",
      "cuda_compiler_version": "None",
      "pytorch": "1.12",
      "target_platform": "osx-64"
    }
  }
}

But then when trying to build norse (https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=650727&view=logs&jobId=15f8dc28-9f6f-5e3a-5b3c-2b169071e5be&j=15f8dc28-9f6f-5e3a-5b3c-2b169071e5be&t=63fa899e-c160-5185-75c4-c5fd30c90374):

package pytorch-1.13.1-cpu_py310h09eaf1a_0 requires llvm-openmp >=15.0.7, but none of the providers can be installed

I have no idea what's going on there?!?

@ngam
Copy link
Contributor

ngam commented Feb 1, 2023

Things like

package pytorch-1.13.1-cpu_py310h09eaf1a_0 requires llvm-openmp >=15.0.7, but none of the providers can be installed

are a sign of some other underlying issue. Did the problems start in conda-forge/norse-feedstock#11?

@ngam
Copy link
Contributor

ngam commented Feb 1, 2023

Something weird is going on:

(test) ~$ micromamba install llvm-openmp==14 clang_osx-arm64 python clangxx_osx-arm64 pytorch make 

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache

Transaction

  Prefix: /Users/ngam/.micromamba/envs/test

  Updating specs:

   - llvm-openmp==14
   - clang_osx-arm64
   - python
   - clangxx_osx-arm64
   - pytorch
   - make


  Package                    Version  Build                 Channel                     Size
──────────────────────────────────────────────────────────────────────────────────────────────
  Install:
──────────────────────────────────────────────────────────────────────────────────────────────

  + bzip2                      1.0.8  h3422bc3_4            conda-forge/osx-arm64     Cached
  + ca-certificates        2022.12.7  h4653dfc_0            conda-forge/osx-arm64     Cached
  + cctools_osx-arm64        973.0.1  hef52d2f_11           conda-forge/osx-arm64        1MB
  + cffi                      1.15.1  py310h2399d43_3       conda-forge/osx-arm64      219kB
  + clang                     14.0.6  hce30654_0            conda-forge/osx-arm64      130kB
  + clang-14                  14.0.6  default_h81a5282_0    conda-forge/osx-arm64      984kB
  + clang_osx-arm64           14.0.6  h15773ab_4            conda-forge/osx-arm64       19kB
  + clangxx                   14.0.6  default_hb7ecf47_0    conda-forge/osx-arm64      130kB
  + clangxx_osx-arm64         14.0.6  he29aa18_4            conda-forge/osx-arm64       18kB
  + compiler-rt               14.0.6  h30b49de_0            conda-forge/osx-arm64       85kB
  + compiler-rt_osx-arm64     14.0.6  h48302dc_0            conda-forge/noarch          16MB
  + ld64_osx-arm64               609  h7167370_11           conda-forge/osx-arm64      975kB
  + libblas                    3.9.0  16_osxarm64_openblas  conda-forge/osx-arm64     Cached
  + libcblas                   3.9.0  16_osxarm64_openblas  conda-forge/osx-arm64     Cached
  + libclang-cpp14            14.0.6  default_h81a5282_0    conda-forge/osx-arm64       14MB
  + libcxx                    14.0.6  h2692d47_0            conda-forge/osx-arm64     Cached
  + libffi                     3.4.2  h3422bc3_5            conda-forge/osx-arm64     Cached
  + libgfortran                5.0.0  11_3_0_hd922786_27    conda-forge/osx-arm64     Cached
  + libgfortran5              11.3.0  hdaf2cc0_27           conda-forge/osx-arm64     Cached
  + liblapack                  3.9.0  16_osxarm64_openblas  conda-forge/osx-arm64     Cached
  + libllvm14                 14.0.6  hf6e71e7_1            conda-forge/osx-arm64       26MB
  + libopenblas               0.3.21  openmp_hcb59c3b_1     conda-forge/osx-arm64        4MB
  + libprotobuf               3.20.2  hb5ab8b9_0            conda-forge/osx-arm64        2MB
  + libsqlite                 3.40.0  h76d750c_0            conda-forge/osx-arm64     Cached
  + libzlib                   1.2.13  h03a7124_4            conda-forge/osx-arm64     Cached
  + llvm-openmp               14.0.0  hd125106_0            conda-forge/osx-arm64      304kB
  + llvm-tools                14.0.6  hf6e71e7_1            conda-forge/osx-arm64       12MB
  + make                         4.3  he57ea6c_1            conda-forge/osx-arm64      253kB
  + ncurses                      6.3  h07bb92c_1            conda-forge/osx-arm64     Cached
  + ninja                     1.11.0  hf86a087_0            conda-forge/osx-arm64      118kB
  + numpy                     1.24.1  py310h3d2048e_0       conda-forge/osx-arm64        6MB
  + openssl                    3.0.7  h03a7124_2            conda-forge/osx-arm64     Cached
  + pip                         23.0  pyhd8ed1ab_0          conda-forge/noarch        Cached
  + pycparser                   2.21  pyhd8ed1ab_0          conda-forge/noarch        Cached
  + python                    3.10.8  h3ba56d0_0_cpython    conda-forge/osx-arm64       11MB
  + python_abi                  3.10  3_cp310               conda-forge/osx-arm64        6kB
  + pytorch                   1.11.0  cpu_py310h61528c5_1   conda-forge/osx-arm64       36MB
  + readline                   8.1.2  h46ed386_0            conda-forge/osx-arm64     Cached
  + setuptools                66.1.1  pyhd8ed1ab_0          conda-forge/noarch        Cached
  + sigtool                    0.1.3  h44b9a77_0            conda-forge/osx-arm64      210kB
  + sleef                      3.5.1  h156473d_2            conda-forge/osx-arm64      372kB
  + tapi                   1100.0.11  he4954df_0            conda-forge/osx-arm64      191kB
  + tk                        8.6.12  he1e0b03_0            conda-forge/osx-arm64     Cached
  + typing_extensions          4.4.0  pyha770c72_0          conda-forge/noarch          30kB
  + tzdata                     2022g  h191b570_0            conda-forge/noarch        Cached
  + wheel                     0.38.4  pyhd8ed1ab_0          conda-forge/noarch        Cached
  + xz                         5.2.6  h57fd34a_0            conda-forge/osx-arm64     Cached

  Summary:

  Install: 47 packages

  Total download: 131MB

──────────────────────────────────────────────────────────────────────────────────────────────


Confirm changes: [Y/n] n

(test) ~$ micromamba install llvm-openmp clang_osx-arm64 python clangxx_osx-arm64 pytorch==1.13 make

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache

Transaction

  Prefix: /Users/ngam/.micromamba/envs/test

  Updating specs:

   - llvm-openmp
   - clang_osx-arm64
   - python
   - clangxx_osx-arm64
   - pytorch==1.13
   - make


  Package                    Version  Build                 Channel                     Size
──────────────────────────────────────────────────────────────────────────────────────────────
  Install:
──────────────────────────────────────────────────────────────────────────────────────────────

  + bzip2                      1.0.8  h3422bc3_4            conda-forge/osx-arm64     Cached
  + ca-certificates        2022.12.7  h4653dfc_0            conda-forge/osx-arm64     Cached
  + cctools_osx-arm64        973.0.1  hef52d2f_11           conda-forge/osx-arm64        1MB
  + cffi                      1.15.1  py311hae827db_3       conda-forge/osx-arm64     Cached
  + clang                     14.0.6  hce30654_0            conda-forge/osx-arm64      130kB
  + clang-14                  14.0.6  default_h81a5282_0    conda-forge/osx-arm64      984kB
  + clang_osx-arm64           14.0.6  h15773ab_4            conda-forge/osx-arm64       19kB
  + clangxx                   14.0.6  default_hb7ecf47_0    conda-forge/osx-arm64      130kB
  + clangxx_osx-arm64         14.0.6  he29aa18_4            conda-forge/osx-arm64       18kB
  + compiler-rt               14.0.6  h30b49de_0            conda-forge/osx-arm64       85kB
  + compiler-rt_osx-arm64     14.0.6  h48302dc_0            conda-forge/noarch          16MB
  + ld64_osx-arm64               609  h7167370_11           conda-forge/osx-arm64      975kB
  + libblas                    3.9.0  16_osxarm64_openblas  conda-forge/osx-arm64     Cached
  + libcblas                   3.9.0  16_osxarm64_openblas  conda-forge/osx-arm64     Cached
  + libclang-cpp14            14.0.6  default_h81a5282_0    conda-forge/osx-arm64       14MB
  + libcxx                    14.0.6  h2692d47_0            conda-forge/osx-arm64     Cached
  + libffi                     3.4.2  h3422bc3_5            conda-forge/osx-arm64     Cached
  + libgfortran                5.0.0  11_3_0_hd922786_27    conda-forge/osx-arm64     Cached
  + libgfortran5              11.3.0  hdaf2cc0_27           conda-forge/osx-arm64     Cached
  + liblapack                  3.9.0  16_osxarm64_openblas  conda-forge/osx-arm64     Cached
  + libllvm14                 14.0.6  hf6e71e7_1            conda-forge/osx-arm64       26MB
  + libopenblas               0.3.21  openmp_hc731615_3     conda-forge/osx-arm64     Cached
  + libprotobuf              3.21.12  hb5ab8b9_0            conda-forge/osx-arm64        2MB
  + libsqlite                 3.40.0  h76d750c_0            conda-forge/osx-arm64     Cached
  + libzlib                   1.2.13  h03a7124_4            conda-forge/osx-arm64     Cached
  + llvm-openmp               15.0.7  h7cfbb63_0            conda-forge/osx-arm64     Cached
  + llvm-tools                14.0.6  hf6e71e7_1            conda-forge/osx-arm64       12MB
  + make                         4.3  he57ea6c_1            conda-forge/osx-arm64      253kB
  + ncurses                      6.3  h07bb92c_1            conda-forge/osx-arm64     Cached
  + ninja                     1.11.0  hf86a087_0            conda-forge/osx-arm64      118kB
  + numpy                     1.24.1  py311h60f8152_0       conda-forge/osx-arm64     Cached
  + openssl                    3.0.7  h03a7124_2            conda-forge/osx-arm64     Cached
  + pip                         23.0  pyhd8ed1ab_0          conda-forge/noarch        Cached
  + pycparser                   2.21  pyhd8ed1ab_0          conda-forge/noarch        Cached
  + python                    3.11.0  h3ba56d0_1_cpython    conda-forge/osx-arm64     Cached
  + python_abi                  3.11  3_cp311               conda-forge/osx-arm64     Cached
  + pytorch                   1.13.0  cpu_py311h98403b3_0   conda-forge/osx-arm64       41MB
  + readline                   8.1.2  h46ed386_0            conda-forge/osx-arm64     Cached
  + setuptools                66.1.1  pyhd8ed1ab_0          conda-forge/noarch        Cached
  + sigtool                    0.1.3  h44b9a77_0            conda-forge/osx-arm64      210kB
  + sleef                      3.5.1  h156473d_2            conda-forge/osx-arm64      372kB
  + tapi                   1100.0.11  he4954df_0            conda-forge/osx-arm64      191kB
  + tk                        8.6.12  he1e0b03_0            conda-forge/osx-arm64     Cached
  + typing_extensions          4.4.0  pyha770c72_0          conda-forge/noarch          30kB
  + tzdata                     2022g  h191b570_0            conda-forge/noarch        Cached
  + wheel                     0.38.4  pyhd8ed1ab_0          conda-forge/noarch        Cached
  + xz                         5.2.6  h57fd34a_0            conda-forge/osx-arm64     Cached

  Summary:

  Install: 47 packages

  Total download: 115MB

──────────────────────────────────────────────────────────────────────────────────────────────


Confirm changes: [Y/n] 

@ngam
Copy link
Contributor

ngam commented Feb 1, 2023

(test) ~$ micromamba install llvm-openmp==14 clang_osx-arm64 python clangxx_osx-arm64 pytorch==1.13 make 

                                           __
          __  ______ ___  ____ _____ ___  / /_  ____ _
         / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
        / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
       / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
      /_/

conda-forge/osx-arm64                                       Using cache
conda-forge/noarch                                          Using cache
error    libmamba Could not solve for environment specs
    Encountered problems while solving:
      - package pytorch-1.13.0-cpu_py310h7410233_0 requires llvm-openmp >=15.0.5, but none of the providers can be installed
    
    The environment can't be solved, aborting the operation
    
critical libmamba Could not solve for environment specs

@ngam
Copy link
Contributor

ngam commented Feb 1, 2023

Okay, the problem is that we have double pins on llvm-openmp somehow...

osx-64/pytorch-1.13.1-cpu_py38hc21d861_0.conda

No Description

Uploaded Sun Jan 15 19:46:13 2023
md5 checksum 895ac10478971f4e6c4d845f52e6b3f8
arch x86_64
build cpu_py38hc21d861_0
constrains pytorch-cpu = 1.13.1, pytorch-gpu = 99999999
depends cffi, libcblas >=3.9.0,<4.0a0, libcxx >=13.0.1, libprotobuf >=3.21.12,<3.22.0a0, llvm-openmp >=14.0.6, llvm-openmp >=15.0.7, mkl >=2022.2.1,<2023.0a0, ninja, numpy >=1.20.3,<2.0a0, python >=3.8,<3.9.0a0, python_abi 3.8.* *_cp38, setuptools, sleef >=3.5.1,<4.0a0, typing_extensions
has_prefix True
license BSD-3-Clause
license_family BSD
machine x86_64
operatingsystem darwin
platform osx
subdir osx-64
target-triplet x86_64-any-darwin
timestamp 1673811583760

@ngam
Copy link
Contributor

ngam commented Feb 1, 2023

I think what you did here will fix it!

INFO :: The inputs making up the hashes for the built packages are as follows:
{
  "pytorch-1.13.1-cpu_py39h756ec90": {
    "recipe": {
      "CONDA_BUILD_SYSROOT": "/Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk",
      "build_platform": "osx-64",
      "c_compiler": "clang",
      "c_compiler_version": "14",
      "channel_targets": "conda-forge main",
      "cuda_compiler_version": "None",
      "cxx_compiler": "clangxx",
      "cxx_compiler_version": "14",
      "libcblas": "3.9 *netlib",
      "liblapack": "3.9 *netlib",
      "libprotobuf": "3.21",
      "llvm_openmp": "14",
      "numpy": "1.20",
      "openblas": "0.3.*",
      "python": "3.9.* *_cpython",
      "target_platform": "osx-arm64"
    }
  },

@ngam
Copy link
Contributor

ngam commented Feb 1, 2023

@conda-forge-admin, please rerender

@ngam
Copy link
Contributor

ngam commented Feb 1, 2023

Actually, let's also check the artifacts. Give me a second to download them.

@ngam
Copy link
Contributor

ngam commented Feb 1, 2023

Ooops, redenering deleted everything!

Anyway, I believe we will be good to go after this PR. Here's the would-be printout:

{
  "info": {
    "subdir": "osx-arm64"
  },
  "packages": {},
  "packages.conda": {
    "pytorch-1.13.1-cpu_py39h756ec90_1.conda": {
      "build": "cpu_py39h756ec90_1",
      "build_number": 1,
      "constrains": [
        "pytorch-gpu = 99999999",
        "pytorch-cpu = 1.13.1"
      ],
      "depends": [
        "cffi",
        "libcblas >=3.9.0,<4.0a0",
        "libcxx >=14.0.6",
        "liblapack >=3.9.0,<4.0a0",
        "libprotobuf >=3.21.12,<3.22.0a0",
        "llvm-openmp >=14.0.6",
        "ninja",
        "numpy >=1.20.3,<2.0a0",
        "python >=3.9,<3.10.0a0",
        "python >=3.9,<3.10.0a0 *_cpython",
        "python_abi 3.9.* *_cp39",
        "setuptools",
        "sleef >=3.5.1,<4.0a0",
        "typing_extensions"
      ],
      "license": "BSD-3-Clause",
      "license_family": "BSD",
      "md5": "3239c938cc2af3c8e074e735bf4b2dfb",
      "name": "pytorch",
      "sha256": "9141cc342993e13650fed94e8f608575d70c74507882cd2a47e9b0c84617ad63",
      "size": 37318724,
      "subdir": "osx-arm64",
      "timestamp": 1675212167514,
      "version": "1.13.1"
    },
    "pytorch-cpu-1.13.1-cpu_py39h41a499b_1.conda": {
      "build": "cpu_py39h41a499b_1",
      "build_number": 1,
      "depends": [
        "pytorch 1.13.1 cpu_py39h756ec90_1"
      ],
      "license": "BSD-3-Clause",
      "license_family": "BSD",
      "md5": "a14d23ed07276e57e805459b649ad83b",
      "name": "pytorch-cpu",
      "sha256": "6e062fcebe1daea0b55a42d78ca66559c5b4307ea4bf28fe039cbf900f18e719",
      "size": 18454,
      "subdir": "osx-arm64",
      "timestamp": 1675212313166,
      "track_features": "pytorch-cpu",
      "version": "1.13.1"
    }
  },
  "removed": [],
  "repodata_version": 1
}

@ngam ngam mentioned this pull request Feb 1, 2023
1 task
@Tobias-Fischer
Copy link
Contributor Author

@conda-forge-admin, please rerender

@Tobias-Fischer
Copy link
Contributor Author

Many thanks for checking @ngam - sounds like this will do the job :). Is there anything else I can do here?

@@ -1,5 +1,6 @@
MACOSX_SDK_VERSION: # [osx]
- 12.3 # [osx]
- 13.1 # [osx and arm64]
- 11.0 # [osx and x86_64]
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to modify this to make osx64 pass. Currently it is failing with something MPS related, and my guess is that this needs to go back 12.3+, perhaps 13.1, for both... but let me check.

@ngam ngam mentioned this pull request Feb 3, 2023
5 tasks
@hmaarrfk hmaarrfk closed this in #162 Feb 7, 2023
@Tobias-Fischer Tobias-Fischer deleted the patch-2 branch February 7, 2023 11:43
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.

3 participants