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
7 changes: 7 additions & 0 deletions src/substruct/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,10 @@ target_link_libraries(
PRIVATE ${RDKit_LIBS})
target_compile_options(substructure_search
PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-fopenmp>)

add_library(substruct_library substruct_library.cpp)
target_link_libraries(
substruct_library
PUBLIC substructure_search molecules
PRIVATE ${RDKit_LIBS} cuda_error_check device nvtx OpenMP::OpenMP_CXX
openmp_helpers)
7 changes: 7 additions & 0 deletions src/substruct/molecules.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,13 @@ class MoleculesDevice {
*/
void addToBatch(const RDKit::ROMol* mol, MoleculesHost& batch);

/**
* @brief Append every molecule of src to dest, adjusting all offsets.
*
* Works for both target and query batches.
*/
void mergeBatch(MoleculesHost& dest, const MoleculesHost& src);

/**
* @brief Add a query molecule (from SMARTS) to an existing batch.
*
Expand Down
Loading
Loading