Skip to content

Commit

Permalink
Merge pull request #18 from agosztolai/osx_arm
Browse files Browse the repository at this point in the history
add instructions and environments for ARM-based macs
  • Loading branch information
agosztolai authored Oct 23, 2023
2 parents 175dff4 + a5e5bca commit 357e6ca
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 12 deletions.
27 changes: 15 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,32 @@ The code is tested for both cpu and gpu (CUDA) machines running Linux or OSX. Al

We recommend you install the code in a fresh Anaconda virtual environment, as follows.

First, clone this repository,
- First, clone this repository,

```
git clone https://github.com/agosztolai/MARBLE
```

Then, create an new anaconda environment using the provided environment file that matches your system.
- Then, create an new anaconda environment using the provided environment file that matches your system.
- For Linux machines with CUDA:

For Linux machines with CUDA:
`conda env create -f environment.yml`
- For Intel-based Mac:

```
conda env create -f environment.yml
```

For Mac without CUDA:
`conda env create -f environment_osx_intel.yml`

```
conda env create -f environment_cpu_osx.yml
```
- For recent M1/M2/M3 Mac:
- Install cmake `brew install cmake` or using the installer on the [cmake website](https://cmake.org/download/)
- Create the environment

This will install all the requires dependencies. Finally, install by running inside the main folder
`conda env create -f environment_osx_arm.yml`
- Activate the environment `conda activate MARBLE`
- Install pytorch geometric
`pip install -r requirements_osx_arm.txt`
- All the required dependencies are now installed. Finally, activate the environment and install by running inside the main folder

```
conda activate MARBLE
pip install .
```

Expand Down
109 changes: 109 additions & 0 deletions environment_osx_arm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: MARBLE
channels:
- pytorch
- defaults
dependencies:
- blas=1.0=openblas
- bottleneck=1.3.5=py39heec5a64_0
- brotli=1.0.9=h1a28f6b_7
- brotli-bin=1.0.9=h1a28f6b_7
- brotlipy=0.7.0=py39h1a28f6b_1002
- bzip2=1.0.8=h620ffc9_4
- ca-certificates=2023.08.22=hca03da5_0
- certifi=2023.7.22=py39hca03da5_0
- cffi=1.15.1=py39h80987f9_3
- charset-normalizer=2.0.4=pyhd3eb1b0_0
- contourpy=1.0.5=py39h525c30c_0
- cryptography=41.0.3=py39hd4332d6_0
- cycler=0.11.0=pyhd3eb1b0_0
- ffmpeg=4.2.2=h04105a8_0
- fonttools=4.25.0=pyhd3eb1b0_0
- freetype=2.12.1=h1192e45_0
- gettext=0.21.0=h13f89a0_1
- giflib=5.2.1=h80987f9_3
- gmp=6.2.1=hc377ac9_3
- gnutls=3.6.15=h887c41c_0
- icu=73.1=h313beb8_0
- idna=3.4=py39hca03da5_0
- importlib_resources=5.2.0=pyhd3eb1b0_1
- jpeg=9e=h80987f9_1
- kiwisolver=1.4.4=py39h313beb8_0
- lame=3.100=h1a28f6b_0
- lcms2=2.12=hba8e193_0
- lerc=3.0=hc377ac9_0
- libbrotlicommon=1.0.9=h1a28f6b_7
- libbrotlidec=1.0.9=h1a28f6b_7
- libbrotlienc=1.0.9=h1a28f6b_7
- libcxx=14.0.6=h848a8c0_0
- libdeflate=1.17=h80987f9_1
- libffi=3.4.4=hca03da5_0
- libgfortran=5.0.0=11_3_0_hca03da5_28
- libgfortran5=11.3.0=h009349e_28
- libiconv=1.16=h1a28f6b_2
- libidn2=2.3.4=h80987f9_0
- libopenblas=0.3.21=h269037a_0
- libopus=1.3=h1a28f6b_1
- libpng=1.6.39=h80987f9_0
- libtasn1=4.19.0=h80987f9_0
- libtiff=4.5.1=h313beb8_0
- libunistring=0.9.10=h1a28f6b_0
- libvpx=1.10.0=hc377ac9_0
- libwebp=1.3.2=ha3663a8_0
- libwebp-base=1.3.2=h80987f9_0
- libxml2=2.10.4=h0dcf63f_1
- llvm-openmp=14.0.6=hc6e5704_0
- lz4-c=1.9.4=h313beb8_0
- matplotlib=3.7.2=py39hca03da5_0
- matplotlib-base=3.7.2=py39h46d7db6_0
- munkres=1.1.4=py_0
- ncurses=6.4=h313beb8_0
- nettle=3.7.3=h84b5d62_1
- networkx=3.1=py39hca03da5_0
- numexpr=2.8.7=py39hecc3335_0
- numpy=1.26.0=py39h3b2db8e_0
- numpy-base=1.26.0=py39ha9811e2_0
- openh264=1.8.0=h98b2900_0
- openjpeg=2.3.0=h7a6adac_2
- openssl=3.0.11=h1a28f6b_2
- packaging=23.1=py39hca03da5_0
- pandas=2.1.1=py39h46d7db6_0
- pillow=10.0.1=py39h3b245a6_0
- pip=23.3=py39hca03da5_0
- pybind11=2.10.4=py39h48ca7d4_0
- pybind11-global=2.10.4=py39h48ca7d4_0
- pycparser=2.21=pyhd3eb1b0_0
- pyopenssl=23.2.0=py39hca03da5_0
- pyparsing=3.0.9=py39hca03da5_0
- pysocks=1.7.1=py39hca03da5_0
- python=3.9.18=hb885b13_0
- python-dateutil=2.8.2=pyhd3eb1b0_0
- python-tzdata=2023.3=pyhd3eb1b0_0
- pytorch=1.12.1=py3.9_0
- pytz=2023.3.post1=py39hca03da5_0
- pyyaml=6.0=py39h80987f9_1
- readline=8.2=h1a28f6b_0
- requests=2.31.0=py39hca03da5_0
- scipy=1.11.3=py39h20cbe94_0
- seaborn=0.12.2=py39hca03da5_0
- setuptools=68.0.0=py39hca03da5_0
- scikit-learn=1.3.0=py39h46d7db6_0
- six=1.16.0=pyhd3eb1b0_1
- sqlite=3.41.2=h80987f9_0
- tk=8.6.12=hb8d0fd4_0
- torchaudio=0.12.1=py39_cpu
- torchvision=0.13.1=py39_cpu
- tornado=6.3.3=py39h80987f9_0
- tqdm=4.65.0=py39h86d0a89_0
- typing_extensions=4.7.1=py39hca03da5_0
- tzdata=2023c=h04d1e81_0
- urllib3=1.26.16=py39hca03da5_0
- wheel=0.41.2=py39hca03da5_0
- x264=1!152.20180806=h1a28f6b_0
- xz=5.4.2=h80987f9_0
- yaml=0.2.5=h1a28f6b_0
- zipp=3.11.0=py39hca03da5_0
- zlib=1.2.13=h5a0b063_0
- zstd=1.5.5=hd90d995_0
- pip:
- ninja==1.11.1.1
- teaspoon==1.3.1
File renamed without changes.
6 changes: 6 additions & 0 deletions requirements_osx_arm.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
git+https://github.com/pyg-team/pyg-lib.git
torch_scatter
torch_sparse
torch_cluster
torch_spline_conv
torch_geometric==2.1.0

0 comments on commit 357e6ca

Please sign in to comment.