Skip to content

Commit

Permalink
Support for older GLIBC (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s authored Nov 9, 2023
1 parent 664acb4 commit 4e70c29
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
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

0 comments on commit 4e70c29

Please sign in to comment.