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

Support for older GLIBC #276

Merged
merged 10 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ runs:
sed -i 's/;caffe2::cudnn-public//g' ${Torch_DIR}/Caffe2/Caffe2Targets.cmake
shell: bash

- name: Downgrade GLIBC
run: |
sed -i '1s/^/#if defined(__linux__) \&\& defined(__x86_64__)\n__asm__(".symver log,log@GLIBC_2.2.5");\n#endif\n/' third_party/METIS/GKlib/gk_proto.h
sed -i '1s/^/#if defined(__linux__) \&\& defined(__x86_64__)\n__asm__(".symver pow,pow@GLIBC_2.2.5");\n#endif\n/' third_party/METIS/libmetis/metislib.h
shell: bash

- name: Install additional dependencies
run: |
pip install ninja wheel
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Setup packages
uses: ./.github/actions/setup
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/python_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
run: |
pip install --verbose -e .[test]

- name: Print GLIBC dependency
run: |
objdump -T libpyg.so | grep GLIBC_

- name: Run tests
run: |
pytest --cov --cov-report=xml
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12)
project(pyg)
set(CMAKE_CXX_STANDARD 17)
set(PYG_VERSION 0.3.0)
set(PYG_VERSION 0.3.1)

option(BUILD_TEST "Enable testing" OFF)
option(BUILD_BENCHMARK "Enable benchmarks" OFF)
Expand Down
2 changes: 1 addition & 1 deletion pyg_lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from .home import get_home_dir, set_home_dir

__version__ = '0.3.0'
__version__ = '0.3.1'

# * `libpyg.so`: The name of the shared library file.
# * `torch.ops.pyg`: The used namespace.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from setuptools import Extension, find_packages, setup
from setuptools.command.build_ext import build_ext

__version__ = '0.3.0'
__version__ = '0.3.1'
URL = 'https://github.com/pyg-team/pyg-lib'


Expand Down
Loading