distributed-ranges icon indicating copy to clipboard operation
distributed-ranges copied to clipboard

add NDEBUG flag to Release compilation

Open lslusarczyk opened this issue 1 year ago • 0 comments

When running mhp-bench one can see the message ***WARNING*** Library was built as DEBUG. Timings may be affected. even if compiled in our cmake based Release mode.

This is because we do not use NDEBUG but we can not simply add it. See explanation here https://github.com/oneapi-src/distributed-ranges/blob/a66fae746f9fd069248623a2eb1124667709c006/CMakeLists.txt#L67

There is some complicated logic with ifdef's in ranges-v3 controlling that code and task is to look if there is some configuration that did not use printfs. If it isn't then create ranges-v3 fork that does not use printfs

lslusarczyk avatar Jul 06 '23 12:07 lslusarczyk