-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Conan Flag for profiling #761
Comments
To clarify, what you would like is a flag to build/compile the application with either OpenMP or stdlibc++? |
I think what he means is General Approach
Step-by-Step ExampleHere’s an example of how you might do it in practice: Global Profiling Flagscmake_minimum_required(VERSION 3.10)
project(ProfilingExample)
# Add profiling flags globally
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pg")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
# Add an executable
add_executable(example main.cpp) Per-Target Profiling Flagscmake_minimum_required(VERSION 3.10)
project(ProfilingExample)
# Add an executable
add_executable(example main.cpp)
# Add profiling flags to the specific target
target_compile_options(example PRIVATE -pg)
target_link_options(example PRIVATE -pg) Explanation of the
|
@damskii9992 something like Anders wrote with something like this:
Also, could you do a flag to enable address sanitizers? |
Hello Victor |
Add a flag in the Conan for use in profiling, since it will be needed to compare speeds between OpenMP implementations and stdlibc++ thread implementation.
The text was updated successfully, but these errors were encountered: