-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Building on Mac M3: Graphbolt forces OPENMP and CUDA on #7833
Comments
This issue has been automatically marked as stale due to lack of activity. It will be closed if no further activity occurs. Thank you |
Given that nothing has changed, I'm pretty sure this is still an issue. That test that directly includes omp.h doesn't need to as it's already including the DGL shims over OpenMP that conditionally include the headers based on build settings. Happy to send a PR if there's someone to review it. The other issue is that while Graphbolt has a |
This issue has been automatically marked as stale due to lack of activity. It will be closed if no further activity occurs. Thank you |
I am having the same problem. Would love to be able to build on Darwin with graphbolt enabled. |
🐛 Bug
I followed the instructions to build from source at https://docs.dgl.ai/install/index.html#macos and the build failed because it couldn't find OpenMP (which it was searching for even though that is explicitly set to
OFF
). The trace leads to the graphbolt directory CMakeLists.txt.USE_OPENMP
is set toON
at this point for some reason (confirmed by sticking amessage
call in there). Throwingset(OPEN_MP OFF)
immediately above this condition avoids the error, but then there are more errors stemming from graphbolt when building CUDA, even thoughUSE_CUDA
isOFF
by default. Setting-DBUILD_GRAPHBOLT=OFF
gets around these issues, but then the build fails trying to buildtests/cpp/test_spmat_coo.cc
which #includes omp.h. Setting-DBUILD_CPP_TEST=OFF
got around this issue.To Reproduce
Steps to reproduce the behavior:
(aside: it's a bit weird that the stack trace here only lists the path as CMakeLists.txt, rather than graphbolt/CMakeLists.txt. It appears that a separate CMake configure step for graphbolt is getting invoked as part of the build step??).
USE_OPENMP
OFF
. I originally just putset(USE_OPENMP OFF)
right before the if condition, but it also works to change the default for the option. You need to manually delete the separate build directory the graphbolt sub-build created though.strstr
.Expected behavior
A build with
USE_OPENMP
andUSE_CUDA
set toOFF
should not build or look for OpenMP or CUDA and should not build C++ tests that require OpenMP.Environment
conda
,pip
, source): building from sourceThe text was updated successfully, but these errors were encountered: