Skip to content

Common Build Problems

Xinya Zhang edited this page Nov 8, 2024 · 1 revision

CMake Error (add_subdirectory): The source directory aotriton/third_party/pybind11

git clone --recursive

Python version used by AOTriton is too low (< 3.7)

This can be fixed by using scl enable rh-python38 (RHEL7) or update-alternatives --set python /usr/bin/python3.11 (RHEL8+ or others)

pybind11 and AOTriton tries to use different python

This can be fixed by forcing pybind11's choice by passing -DPYTHON_EXECUTABLE to cmake

Linker error: relocation R_X86_64_PC32 out of range

-DAOTRITON_COMPRESS_KERNEL=ON is mandatory for 0.5/0.6/0.7, otherwise the GPU kernels are too large to embed into the library. (This option is removed in 0.8)