Skip to content

Commit

Permalink
Merge pull request #33 from DUNE-DAQ/glm/fix_cmake
Browse files Browse the repository at this point in the history
added NUMA statement in CMakeLists.txt
  • Loading branch information
roland-sipos authored Aug 19, 2024
2 parents 952c0fc + f0eee65 commit 105a58f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ set(FDREADOUTLIBS_USE_INTRINSICS ON)
if(${FDREADOUTLIBS_USE_INTRINSICS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx2")
endif()

set(READOUT_USE_LIBNUMA ON)

if(${READOUT_USE_LIBNUMA})
find_package(PkgConfig REQUIRED)
pkg_check_modules(numa REQUIRED IMPORTED_TARGET "numa")
list(APPEND READOUT_DEPENDENCIES numa)
#list(APPEND READOUT_DEPENDENCIES ${numa_LINK_LIBRARIES})
add_compile_definitions(WITH_LIBNUMA_SUPPORT WITH_LIBNUMA_BIND_POLICY=1 WITH_LIBNUMA_STRICT_POLICY=1)
endif()



##############################################################################


Expand Down
6 changes: 0 additions & 6 deletions plugins/FDFakeReaderModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,6 @@ FDFakeReaderModule::init(std::shared_ptr<appfwk::ModuleConfiguration> cfg)
TLOG_DEBUG(TLVL_ENTER_EXIT_METHODS) << get_name() << ": Exiting init() method";
}

// void
// FDFakeReaderModule::get_info(opmonlib::InfoCollector& ci, int level)
// {
// inherited_fcr::get_info(ci, level);
// }

std::shared_ptr<datahandlinglibs::SourceEmulatorConcept>
FDFakeReaderModule::create_source_emulator(std::string q_id, std::atomic<bool>& run_marker)
{
Expand Down
2 changes: 0 additions & 2 deletions plugins/FDFakeReaderModule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class FDFakeReaderModule : public dunedaq::appfwk::DAQModule,
FDFakeReaderModule& operator=(FDFakeReaderModule&&) = delete; ///< FDFakeReaderModule is not move-assignable

void init(std::shared_ptr<appfwk::ModuleConfiguration> cfg) override;
#warning MISSING OPMON
//void get_info(opmonlib::InfoCollector& ci, int level) override;

std::shared_ptr<datahandlinglibs::SourceEmulatorConcept>
create_source_emulator(std::string qi, std::atomic<bool>& run_marker) override;
Expand Down

0 comments on commit 105a58f

Please sign in to comment.