-
-
Save zao/98187c0fb7555344bb1735bac409a7ce to your computer and use it in GitHub Desktop.
HPX build-type mismatch, RWDI HPX and Debug program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.7) | |
project(hpx-proj) | |
# set(CMAKE_MODULE_PATH "${HPX_ROOT}/share/cmake-${CMAKE_VERSION_MAJOR}.${CMAKE_VERSION_MINOR}/Modules;${HPX_ROOT}/lib/cmake/HPX") | |
find_package(HPX) | |
add_hpx_executable(proj | |
ESSENTIAL | |
SOURCES proj.cc | |
COMPONENT_DEPENDENCIES iostreams | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Singularity ws-bleh:~/hpx-proj/build> rm -rf ./* && cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_PREFIX_PATH=/tree/build/lib/cmake/HPX -DCMAKE_CXX_COMPILER=clang++ -G Ninja | |
-- The C compiler identification is GNU 6.3.0 | |
-- The CXX compiler identification is Clang 3.8.1 | |
-- Check for working C compiler: /usr/bin/cc | |
-- Check for working C compiler: /usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Check for working CXX compiler: /usr/bin/clang++ | |
-- Check for working CXX compiler: /usr/bin/clang++ -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Detecting CXX compile features | |
-- Detecting CXX compile features - done | |
-- Using tcmalloc allocator. | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /home/woodsoak/hpx-proj/build | |
Singularity ws-bleh:~/hpx-proj/build> ninja && ./proj | |
[2/2] Linking CXX executable proj | |
{stack-trace}: 4 frames: | |
0x7f3062eee576 : hpx::util::stack_trace::trace(void**, unsigned long) + 0x6 in /tree/build/lib/libhpx.so.1 | |
0x7f30628b9a7b : hpx::util::backtrace::backtrace(unsigned long) + 0x5b in /tree/build/lib/libhpx.so.1 | |
0x7f3062900275 : hpx::termination_handler(int) + 0x185 in /tree/build/lib/libhpx.so.1 | |
0x7f306098e0c0 : ??? + 0x7f306098e0c0 in /lib/x86_64-linux-gnu/libpthread.so.0 | |
{what}: Segmentation fault | |
{config}: | |
HPX_WITH_AGAS_DUMP_REFCNT_ENTRIES=OFF | |
HPX_WITH_APEX=OFF | |
HPX_WITH_ATTACH_DEBUGGER_ON_TEST_FAILURE=OFF | |
HPX_WITH_AUTOMATIC_SERIALIZATION_REGISTRATION=ON | |
HPX_WITH_AWAIT=OFF | |
HPX_WITH_CXX14_RETURN_TYPE_DEDUCTION=TRUE | |
HPX_WITH_DEPRECATION_WARNINGS=ON | |
HPX_WITH_EXECUTION_POLICY_COMPATIBILITY=ON | |
HPX_WITH_EXECUTOR_COMPATIBILITY=ON | |
HPX_WITH_GOOGLE_PERFTOOLS=OFF | |
HPX_WITH_HWLOC=ON | |
HPX_WITH_INCLUSIVE_SCAN_COMPATIBILITY=ON | |
HPX_WITH_IO_COUNTERS=ON | |
HPX_WITH_IO_POOL=ON | |
HPX_WITH_ITTNOTIFY=OFF | |
HPX_WITH_LOGGING=ON | |
HPX_WITH_MORE_THAN_64_THREADS=OFF | |
HPX_WITH_NATIVE_TLS=ON | |
HPX_WITH_NETWORKING=ON | |
HPX_WITH_PAPI=OFF | |
HPX_WITH_PARCELPORT_ACTION_COUNTERS=OFF | |
HPX_WITH_PARCELPORT_LIBFABRIC=OFF | |
HPX_WITH_PARCELPORT_MPI=OFF | |
HPX_WITH_PARCELPORT_MPI_MULTITHREADED=OFF | |
HPX_WITH_PARCELPORT_TCP=ON | |
HPX_WITH_PARCELPORT_VERBS=OFF | |
HPX_WITH_PARCEL_COALESCING=ON | |
HPX_WITH_PARCEL_PROFILING=OFF | |
HPX_WITH_SCHEDULER_LOCAL_STORAGE=OFF | |
HPX_WITH_SPINLOCK_DEADLOCK_DETECTION=OFF | |
HPX_WITH_STACKTRACES=ON | |
HPX_WITH_SWAP_CONTEXT_EMULATION=OFF | |
HPX_WITH_THREAD_BACKTRACE_ON_SUSPENSION=OFF | |
HPX_WITH_THREAD_CREATION_AND_CLEANUP_RATES=OFF | |
HPX_WITH_THREAD_CUMULATIVE_COUNTS=ON | |
HPX_WITH_THREAD_DEBUG_INFO=OFF | |
HPX_WITH_THREAD_DESCRIPTION_FULL=OFF | |
HPX_WITH_THREAD_GUARD_PAGE=ON | |
HPX_WITH_THREAD_IDLE_RATES=OFF | |
HPX_WITH_THREAD_LOCAL_STORAGE=OFF | |
HPX_WITH_THREAD_MANAGER_IDLE_BACKOFF=ON | |
HPX_WITH_THREAD_QUEUE_WAITTIME=OFF | |
HPX_WITH_THREAD_STACK_MMAP=ON | |
HPX_WITH_THREAD_STEALING_COUNTS=ON | |
HPX_WITH_THREAD_TARGET_ADDRESS=OFF | |
HPX_WITH_TIMER_POOL=ON | |
HPX_WITH_TRANSFORM_REDUCE_COMPATIBILITY=ON | |
HPX_WITH_TUPLE_RVALUE_SWAP=ON | |
HPX_WITH_UNWRAPPED_COMPATIBILITY=ON | |
HPX_WITH_VALGRIND=OFF | |
HPX_WITH_VERIFY_LOCKS=OFF | |
HPX_WITH_VERIFY_LOCKS_BACKTRACE=OFF | |
HPX_WITH_VERIFY_LOCKS_GLOBALLY=OFF | |
HPX_PARCEL_MAX_CONNECTIONS=512 | |
HPX_PARCEL_MAX_CONNECTIONS_PER_LOCALITY=4 | |
HPX_AGAS_LOCAL_CACHE_SIZE=4096 | |
HPX_HAVE_MALLOC=tcmalloc | |
HPX_PREFIX (configured)=/tree/build | |
HPX_PREFIX=/tree/build | |
{version}: V1.1.0 (AGAS: V3.0), Git: unknown | |
{boost}: V1.65.1 | |
{build-type}: release | |
{date}: Nov 18 2017 05:23:29 | |
{platform}: linux | |
{compiler}: Clang version 3.8.1 (tags/RELEASE_381/final) | |
{stdlib}: GNU libstdc++ version 20170516 | |
Aborted (core dumped) | |
Singularity ws-bleh:~/hpx-proj/build> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <hpx/hpx_init.hpp> | |
#include <hpx/include/iostreams.hpp> | |
int hpx_main(int argc, char* argv[]) | |
{ | |
hpx::cout << "Hi there!\n" << hpx::flush; | |
// Any HPX application logic goes here... | |
return hpx::finalize(); | |
} | |
int main(int argc, char* argv[]) | |
{ | |
// Initialize HPX, run hpx_main as the first HPX thread, and | |
// wait for hpx::finalize being called. | |
auto ret = hpx::init(argc, argv); | |
return ret; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment