Skip to content
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
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ FetchContent_Declare(
nanobind
QUIET
GIT_REPOSITORY https://github.com/wjakob/nanobind.git
GIT_TAG v2.9.2
GIT_TAG v2.10.2
Comment thread
ngc92 marked this conversation as resolved.
Resolved
)

# we could use fmt only if std::format is not available, but (e.g., g++-12), but
Expand Down Expand Up @@ -205,7 +205,12 @@ endif ()
if (PYTHON_BINDING)
find_package(Python COMPONENTS Interpreter Development.Module OPTIONAL_COMPONENTS Development.SABIModule)
FetchContent_MakeAvailable(nanobind)
nanobind_add_module(_pyllmq STABLE_ABI src/binding/binding.cpp src/binding/py_train.cpp)
nanobind_add_module(_pyllmq STABLE_ABI
src/binding/binding.cpp
src/binding/py_train.cpp
src/binding/binding_utils.cpp
src/binding/kernel_binding.cpp
)
target_link_libraries(_pyllmq PUBLIC llmq-common Python::Module fmt::fmt-header-only)

# make sure we pick up cuda libraries from within the current python env, if available
Expand Down
Loading