Skip to content

Commit

Permalink
Re-enable OMPT
Browse files Browse the repository at this point in the history
  • Loading branch information
Pansysk75 committed Oct 18, 2023
1 parent b0588dc commit 20131f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openmp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ endif()

set(ENABLE_OMPT_TOOLS ON)
# Currently tools are not tested well on Windows or MacOS X.
if (APPLE OR WIN32 OR WITH_HPXC)
if (APPLE OR WIN32)
set(ENABLE_OMPT_TOOLS OFF)
endif()

Expand Down
2 changes: 1 addition & 1 deletion openmp/runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ endif()
# OMPT-support defaults to ON for OpenMP 5.0+ and if the requirements in
# cmake/config-ix.cmake are fulfilled.
set(OMPT_DEFAULT FALSE)
if ((LIBOMP_HAVE_OMPT_SUPPORT) AND (NOT WIN32) AND (NOT WITH_HPXC))
if ((LIBOMP_HAVE_OMPT_SUPPORT) AND (NOT WIN32))
set(OMPT_DEFAULT TRUE)
endif()
set(LIBOMP_OMPT_SUPPORT ${OMPT_DEFAULT} CACHE BOOL
Expand Down
2 changes: 1 addition & 1 deletion openmp/runtime/src/ompt-general.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ ompt_try_start_tool(unsigned int omp_version, const char *runtime_version) {
return ret;
}

#if KMP_OS_UNIX
#if KMP_OS_UNIX && !HPXC
{ // Non-standard: load archer tool if application is built with TSan
const char *fname = "libarcher.so";
OMPT_VERBOSE_INIT_PRINT(
Expand Down
2 changes: 1 addition & 1 deletion openmp/tools/archer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@



if(LIBOMP_OMPT_SUPPORT)
if(LIBOMP_OMPT_SUPPORT AND (NOT WITH_HPXC))
include_directories(${LIBOMP_INCLUDE_DIR})

add_library(archer SHARED ompt-tsan.cpp)
Expand Down

0 comments on commit 20131f4

Please sign in to comment.