Add OpenMP debug information to conf screen (#869)
* Add OpenMP debug information to conf screen * Revert casing and whitespace in CMakeLists.txt * Remove unnecessary comment src/CMakeLists.txt
This commit is contained in:
parent
440ea554c9
commit
222c80e4c1
@ -116,7 +116,6 @@ endif()
|
||||
|
||||
if(ENABLE_OPENMP)
|
||||
find_package( OpenMP REQUIRED )
|
||||
include(FindOpenMP)
|
||||
if(OPENMP_FOUND)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||||
message(STATUS "found OpenMP, compiling with flags: " ${OpenMP_CXX_FLAGS} )
|
||||
|
@ -80,7 +80,8 @@ include_directories(
|
||||
${PNG_PNG_INCLUDE_DIR}
|
||||
${FREETYPE_INCLUDE_DIRS}
|
||||
${CAIRO_INCLUDE_DIRS}
|
||||
${MIMALLOC_INCLUDE_DIR})
|
||||
${MIMALLOC_INCLUDE_DIR}
|
||||
${OpenMP_CXX_INCLUDE_DIRS})
|
||||
|
||||
if(Backtrace_FOUND)
|
||||
include_directories(
|
||||
|
@ -5,6 +5,9 @@
|
||||
// Copyright 2008-2013 Jonathan Westhues.
|
||||
//-----------------------------------------------------------------------------
|
||||
#include "solvespace.h"
|
||||
#if defined(_OPENMP)
|
||||
#include <omp.h>
|
||||
#endif
|
||||
|
||||
void TextWindow::ScreenChangeLightDirection(int link, uint32_t v) {
|
||||
SS.TW.ShowEditControl(8, ssprintf("%.2f, %.2f, %.2f", CO(SS.lightDir[v])));
|
||||
@ -389,6 +392,11 @@ void TextWindow::ShowConfiguration() {
|
||||
Printf(false, " %Ft renderer %E%s", gl_renderer);
|
||||
Printf(false, " %Ft version %E%s", gl_version);
|
||||
}
|
||||
|
||||
#if defined(_OPENMP)
|
||||
Printf(false, " %FtOpenMP enabled");
|
||||
Printf(false, " %Ft threads %E%d", omp_get_max_threads());
|
||||
#endif
|
||||
}
|
||||
|
||||
bool TextWindow::EditControlDoneForConfiguration(const std::string &s) {
|
||||
|
Loading…
Reference in New Issue
Block a user