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

Stucked at Compiling surel_gacc on Macbook M1 chip #8

Open
fs302 opened this issue Dec 26, 2022 · 3 comments
Open

Stucked at Compiling surel_gacc on Macbook M1 chip #8

fs302 opened this issue Dec 26, 2022 · 3 comments

Comments

@fs302
Copy link

fs302 commented Dec 26, 2022

Hi there, when trying to run this repo at MacBook Pro (13-inch, M1, 2020), I found some obstacles:

  1. failed at recover conda environment using conda env create -f environment.yml
    image
  2. failed at compiling surel_gacc
    image
    Hope to get help with these issues. Can we run SUREL without c acceleration?
@fs302 fs302 changed the title Stuck at Compiling surel_gacc on Macbook M1 chip Stucked at Compiling surel_gacc on Macbook M1 chip Dec 26, 2022
@VeritasYin
Copy link
Collaborator

Hello, thank you for your interest in our work. Note that SUREL has not been tested on MacOS.

  1. environment.yml is exported from Ubuntu 20.04, some packages may not work on Mac.
  2. SUREL depends on C extensions. From the error trace, it looks like your environment doesn't have openmp properly configured.

@venomouscyanide
Copy link

Hi,

Sorry for inserting myself into the conversation 😅

I saw the issue and had remembered facing the same problem on my M1 as well. The fix that worked for me:
You need to update the clang compiler to one that comes with Homebrew.
Prerequisite: Make sure homebrew is installed (https://docs.brew.sh/Installation) on your macbook.
Steps after making sure homebrew is installed:

  1. Install llvm on your homebrew: brew install llvm
  2. Point to the brew clang compiler (could be different version for you): export CC=/opt/homebrew/Cellar/llvm/13.0.1_1/bin/clang

This should ideally work. Please double-check if you have the clang compiler in this path export CC=/opt/homebrew/Cellar/llvm/13.0.1_1/bin/clang. It could be a different version for you.

@fs302
Copy link
Author

fs302 commented Dec 27, 2022

@venomouscyanide many thanks! It works.

But another Error raised after run the script python main.py --dataset ogbl-collab --metric hit --num_step 4 --num_walk 200 --use_val

image

from surel_gacc import run_sample ImportError: dynamic module does not define module export function (PyInit_surel_gacc)

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

No branches or pull requests

3 participants