weixin_39771614 2020-11-29 23:36
浏览 0

New ITT configuration breaks build on Castor

[reported by dstark] [Trac time Fri Aug 27 18:33:32 2010] Using default GCC 4.4.2 on Castor, new ITT CMake setup is insufficient for setting the HPX_DONT_USE_ITT flag, thus breaking the build.

Not sure if ITT support is universal if compiling with an Intel compiler. Maybe cmake should accept a "-DHPX_USE_ITT" flag that would be supplied when the user knows they have that support, instead of trying to automate an opt-out policy.

该提问来源于开源项目:STEllAR-GROUP/hpx

  • 写回答

7条回答 默认 最新

  • weixin_39771614 2020-11-29 23:36
    关注

    [comment by hkaiser] [Trac time Fri Aug 27 18:43:49 2010] The current CMake configuration was intended to unconditionally disable ITT when not on Windows (mainly because I didn't try to make it work elsewhere yet). I don't understand why this does not work?

    Here is what we currently have:

    
    if(CMAKE_COMPILER_IS_GNUCXX OR (XIAR AND UNIX))   # gcc or Intel
    # ...
        add_definitions(-DHPX_DONT_USE_ITT)
    # ...
    endif()
    

    What\s wrong with it? Why does this break?

    评论

报告相同问题?