Skip to content

Commit

Permalink
Load UBsan and asan in DEBUG
Browse files Browse the repository at this point in the history
One must set both environment variables `NEOReadDebugKeys=1 DisableDeepBind=1`, since compute-runtime on Intel loads shared objects with `RTLD_DEEPBIND`. That breaks asan.

See intel/compute-runtime#376
  • Loading branch information
pascalj committed Feb 23, 2023
1 parent 74eccad commit fae74ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fpga/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ find_package(OpenCL REQUIRED)
find_package(spdlog REQUIRED)
find_package(Boost REQUIRED COMPONENTS graph)

target_link_libraries(host PRIVATE stdc++fs spdlog::spdlog OpenCL Boost::graph)
target_link_libraries(host PRIVATE stdc++fs spdlog::spdlog OpenCL Boost::graph )
target_compile_options(host PRIVATE $<$<CONFIG:Debug>:-fsanitize=address,undefined -fno-omit-frame-pointer>)
target_link_options(host PRIVATE $<$<CONFIG:Debug>:-fsanitize=address,undefined -fno-omit-frame-pointer>)

0 comments on commit fae74ac

Please sign in to comment.