Skip to content

Commit

Permalink
Porting to PGI on Summit
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Aug 7, 2020
1 parent f220829 commit 9cea99f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,13 @@ endfunction()

# example usage
enable_cxx_compiler_flag_if_supported("-Wall")
enable_cxx_compiler_flag_if_supported("-Werror")
enable_cxx_compiler_flag_if_supported("-Wextra")
enable_cxx_compiler_flag_if_supported("-Wpedantic")
enable_cxx_compiler_flag_if_supported("-pedantic")
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "PGI")
enable_cxx_compiler_flag_if_supported("-Werror")
endif (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "PGI")

# ---------------------------------------------------

# The version number.
Expand Down
3 changes: 3 additions & 0 deletions src/apex/apex_bfd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
#include <demangle.h>
#define DEFAULT_DEMANGLE_FLAGS DMGL_PARAMS | DMGL_ANSI | DMGL_VERBOSE | DMGL_TYPES
#ifdef __PGI
#ifndef DMGL_ARM
#define DMGL_ARM (1 << 11) /* Use C++ ARM name mangling */
#endif
#define DEMANGLE_FLAGS DEFAULT_DEMANGLE_FLAGS | DMGL_ARM
#else
#define DEMANGLE_FLAGS DEFAULT_DEMANGLE_FLAGS
Expand Down
4 changes: 2 additions & 2 deletions src/apex/apex_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ inline unsigned int sc_nprocessors_onln()
#elif defined(__FreeBSD__) || (defined(__APPLE__) && defined(__MACH__))
# define APEX_NATIVE_TLS __thread
#else
# warning "Native thread local storage may not be supported for this platform"
# warning "Using: thread_local from C++11"
// #warning "Native thread local storage may not be supported for this platform"
// #warning "Using: thread_local from C++11"
# define APEX_NATIVE_TLS thread_local
#endif

Expand Down

0 comments on commit 9cea99f

Please sign in to comment.