Repository navigation
Replies: 5 comments 1 reply
|
You're doing it right. If the localities hang, then the network connection doesn't work the way you expect. Note, that HPX is not using ssh for its connections, but plain TCP. |
|
Hi, following up on this issue. I tried with a p2p connection between two machines (no ssh jump this time), and now the commands are: Please, note that now we do use lan ip's (instead of loopback and rely on ssh jumps) and in the primary node I use the same port for the agas server and for the primary instance itself (using two different ports makes two apps to hang forever). {config}: HPX_FILESYSTEM_WITH_BOOST_FILESYSTEM_COMPATIBILITY=OFF Module allocator_support: Module command_line_handling_local: Module coroutines: Module datastructures: Module functional: Module iostream: Module logging: Module serialization: Module topology: {version}: V2.0.0-rc1 (AGAS: V3.0), Git: bc3afa6 Thanks for your help! |
|
Now the localities see each other. Are you running the same executable (same binary) on both nodes? |
|
Hi, i just compiled hpx on both nodes separately but with same flags, i cannot run the same binary since primary node is x64 and secondary node is aarch64 |
|
Hi, any hint on this? |
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm new to hpx and I would like to execute in two localities the hello world example. The thing is that I don't have slurm or pbs installed and so I would like to execute it manually. I've seen on the internet (not in the documentation) that with the command in the primay node:
./hello_world_distributed --hpx:localities=2 --hpx:agas=127.0.0.1:7191 --hpx:hpx=127.0.0.1:7191
And in the secondary node:
./hello_world_distributed --hpx:localities=2 --hpx:worker --hpx:agas=127.0.0.1:7191 --hpx:hpx=127.0.0.1:7190
I should be able to execute this example in both nodes (please, note that ip's are localhost because I do port mapping by means of ssh jumps).
The executions hang on both sides, and eventually worker crashes with dump:
{config}:
Core library:
HPX_AGAS_LOCAL_CACHE_SIZE=4096
HPX_HAVE_MALLOC=system
HPX_PARCEL_MAX_CONNECTIONS=512
HPX_PARCEL_MAX_CONNECTIONS_PER_LOCALITY=4
HPX_PREFIX (configured)=
HPX_PREFIX=
HPX_FILESYSTEM_WITH_BOOST_FILESYSTEM_COMPATIBILITY=OFF
HPX_ITERATOR_SUPPORT_WITH_BOOST_ITERATOR_TRAVERSAL_TAG_COMPATIBILITY=OFF
HPX_LIKWID_WITH_LIKWID=OFF
HPX_WITH_AGAS_DUMP_REFCNT_ENTRIES=OFF
HPX_WITH_APEX=OFF
HPX_WITH_ASSERTS_AS_CONTRACT_ASSERTS=OFF
HPX_WITH_ASYNC_MPI=OFF
HPX_WITH_ATTACH_DEBUGGER_ON_TEST_FAILURE=OFF
HPX_WITH_AUTOMATIC_SERIALIZATION_REGISTRATION=ON
HPX_WITH_CONTRACTS=OFF
HPX_WITH_COROUTINE_COUNTERS=OFF
HPX_WITH_CXX20_STD_EXECUTION_POLICES=ON
HPX_WITH_DISTRIBUTED_RUNTIME=ON
HPX_WITH_DYNAMIC_HPX_MAIN=ON
HPX_WITH_FETCH_STDEXEC=OFF
HPX_WITH_GENERIC_CONTEXT_COROUTINES=ON
HPX_WITH_IO_COUNTERS=ON
HPX_WITH_IO_POOL=ON
HPX_WITH_ITTNOTIFY=OFF
HPX_WITH_LOGGING=ON
HPX_WITH_NETWORKING=ON
HPX_WITH_PAPI=OFF
HPX_WITH_PARALLEL_TESTS_BIND_NONE=OFF
HPX_WITH_PARCELPORT_ACTION_COUNTERS=OFF
HPX_WITH_PARCELPORT_COUNTERS=OFF
HPX_WITH_PARCELPORT_GASNET=OFF
HPX_WITH_PARCELPORT_LCI=OFF
HPX_WITH_PARCELPORT_LCW=OFF
HPX_WITH_PARCELPORT_LIBFABRIC=OFF
HPX_WITH_PARCELPORT_MPI=OFF
HPX_WITH_PARCELPORT_TCP=ON
HPX_WITH_PARCEL_COALESCING=ON
HPX_WITH_PARCEL_PROFILING=OFF
HPX_WITH_SANITIZERS=OFF
HPX_WITH_SCHEDULER_LOCAL_STORAGE=OFF
HPX_WITH_SPINLOCK_DEADLOCK_DETECTION=OFF
HPX_WITH_STACKTRACES=ON
HPX_WITH_STACKTRACES_DEMANGLE_SYMBOLS=ON
HPX_WITH_STACKTRACES_STATIC_SYMBOLS=OFF
HPX_WITH_SUPERVISION=OFF
HPX_WITH_TASK_SIZE_DEFAULT_PARAMETERS=OFF
HPX_WITH_TESTS_DEBUG_LOG=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=OFF
HPX_WITH_THREAD_TARGET_ADDRESS=OFF
HPX_WITH_TIMER_POOL=ON
HPX_WITH_TRACY=OFF
HPX_WITH_TUPLE_RVALUE_SWAP=ON
HPX_WITH_VALGRIND=OFF
HPX_WITH_VERIFY_LOCKS=OFF
HPX_WITH_VERIFY_LOCKS_BACKTRACE=OFF
HPX_WITH_WORK_REQUESTING_SCHEDULERS=ON
Module allocator_support:
HPX_ALLOCATOR_SUPPORT_WITH_CACHE_OWNER_VERIFICATION=OFF
HPX_ALLOCATOR_SUPPORT_WITH_CACHING=ON
Module command_line_handling_local:
HPX_COMMAND_LINE_HANDLING_LOCAL_WITH_JSON_CONFIGURATION_FILES=OFF
Module coroutines:
HPX_COROUTINES_WITH_SWAP_CONTEXT_EMULATION=OFF
HPX_COROUTINES_WITH_THREAD_SCHEDULE_HINT_RUNS_AS_CHILD=OFF
Module datastructures:
HPX_DATASTRUCTURES_WITH_ADAPT_STD_TUPLE=ON
HPX_DATASTRUCTURES_WITH_ADAPT_STD_VARIANT=OFF
Module functional:
HPX_FUNCTIONAL_WITH_BOOST_PLACEHOLDERS=OFF
Module iostream:
HPX_IOSTREAM_WITH_WIDE_STREAMS=OFF
Module logging:
HPX_LOGGING_WITH_SEPARATE_DESTINATIONS=ON
Module serialization:
HPX_SERIALIZATION_WITH_ALLOW_CONST_TUPLE_MEMBERS=OFF
HPX_SERIALIZATION_WITH_ALLOW_RAW_POINTER_SERIALIZATION=OFF
HPX_SERIALIZATION_WITH_ALL_TYPES_ARE_BITWISE_SERIALIZABLE=OFF
HPX_SERIALIZATION_WITH_BOOST_TYPES=OFF
HPX_SERIALIZATION_WITH_SUPPORTS_ENDIANESS=OFF
Module topology:
HPX_TOPOLOGY_WITH_ADDITIONAL_HWLOC_TESTING=OFF
{version}: V2.0.0 (AGAS: V3.0), Git: c8a2b59
{boost}: V1.74.0
{build-type}: release
{date}: Nov 3 2026 12:08:23
{platform}: linux
{compiler}: GNU C++ version 12.3.0
{stdlib}: GNU libstdc++ version 20230510
{env}: 37 entries:
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1009/bus
DISPLAY=localhost:10.0
HOME=/home/jmorague
LANG=es_ES.UTF-8
LC_ADDRESS=es_ES.UTF-8
LC_IDENTIFICATION=es_ES.UTF-8
LC_MEASUREMENT=es_ES.UTF-8
LC_MONETARY=es_ES.UTF-8
LC_NAME=es_ES.UTF-8
LC_NUMERIC=es_ES.UTF-8
LC_PAPER=es_ES.UTF-8
LC_TELEPHONE=es_ES.UTF-8
LC_TIME=es_ES.UTF-8
LD_LIBRARY_PATH=/home/jmorague/workspace/hpx/build/lib:
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LOGNAME=jmorague
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.zst=01;31:.tzst=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.wim=01;31:.swm=01;31:.dwm=01;31:.esd=01;31:.jpg=01;35:.jpeg=01;35:.mjpg=01;35:.mjpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg=01;35:.m2v=01;35:.mkv=01;35:.webm=01;35:.webp=01;35:.ogm=01;35:.mp4=01;35:.m4v=01;35:.mp4v=01;35:.vob=01;35:.qt=01;35:.nuv=01;35:.wmv=01;35:.asf=01;35:.rm=01;35:.rmvb=01;35:.flc=01;35:.avi=01;35:.fli=01;35:.flv=01;35:.gl=01;35:.dl=01;35:.xcf=01;35:.xwd=01;35:.yuv=01;35:.cgm=01;35:.emf=01;35:.ogv=01;35:.ogx=01;35:.aac=00;36:.au=00;36:.flac=00;36:.m4a=00;36:.mid=00;36:.midi=00;36:.mka=00;36:.mp3=00;36:.mpc=00;36:.ogg=00;36:.ra=00;36:.wav=00;36:.oga=00;36:.opus=00;36:.spx=00;36:.xspf=00;36:
MOTD_SHOWN=pam
OLDPWD=/home/jmorague
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PWD=/home/jmorague/workspace/hpx/build/bin
SHELL=/bin/bash
SHLVL=1
SSH_AUTH_SOCK=/tmp/ssh-XXXXaizk4J/agent.74749
SSH_CLIENT=192.168.100.1 40654 22
SSH_CONNECTION=192.168.100.1 40654 192.168.100.130 22
SSH_TTY=/dev/pts/0
TERM=xterm-256color
USER=jmorague
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop
XDG_RUNTIME_DIR=/run/user/1009
XDG_SESSION_CLASS=user
XDG_SESSION_ID=850
XDG_SESSION_TYPE=tty
ZES_ENABLE_SYSMAN=1
_=./hello_world_distributed
{stack-trace}: 17 frames:
0xffffa219f550 : std::__exception_ptr::exception_ptr hpx::detail::get_exceptionhpx::exception(hpx::exception const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, long, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) [0xb0] in /home/jmorague/workspace/hpx/build/lib/libhpx_core.so
0xffffa21a533c : hpx::detail::get_exception(std::error_code const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, hpx::throwmode, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, long, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&) [0x6c] in /home/jmorague/workspace/hpx/build/lib/libhpx_core.so
0xffffa28e11ac : hpx::parcelset::parcelport::early_pending_parcel_handler(std::error_code const&, hpx::parcelset::parcel const&) [0x46c] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xffffa28ae4ac : /home/jmorague/workspace/hpx/build/lib/libhpx.so.2(+0x4ce4ac) [0xffffa28ae4ac] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xffffa28cda28 : hpx::parcelset::detail::parcel_await_apply(hpx::parcelset::parcel&&, hpx::function<void (std::error_code const&, hpx::parcelset::parcel const&), false>&&, unsigned int, hpx::move_only_function<void (hpx::parcelset::parcel&&, hpx::function<void (std::error_code const&, hpx::parcelset::parcel const&), false>&&), false>) [0x1c8] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xffffa28b28f0 : hpx::parcelset::parcelport_implhpx::parcelset::policies::tcp::connection_handler::send_early_parcel(hpx::parcelset::locality const&, hpx::parcelset::parcel) [0x120] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xffffa29b9068 : /home/jmorague/workspace/hpx/build/lib/libhpx.so.2(+0x5d9068) [0xffffa29b9068] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xffffa28cda28 : hpx::parcelset::detail::parcel_await_apply(hpx::parcelset::parcel&&, hpx::function<void (std::error_code const&, hpx::parcelset::parcel const&), false>&&, unsigned int, hpx::move_only_function<void (hpx::parcelset::parcel&&, hpx::function<void (std::error_code const&, hpx::parcelset::parcel const&), false>&&), false>) [0x1c8] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xffffa29b5bfc : hpx::agas::big_boot_barrier::wait_hosted(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, void* const&, void* const&, bool) [0x5f8] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xffffa29d1a54 : hpx::runtime_distributed::initialize_agas() [0x104] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xffffa29d2828 : hpx::runtime_distributed::runtime_distributed(hpx::util::runtime_configuration&, int ()(hpx::runtime_mode), void ()()) [0x978] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xffffa288a304 : hpx::detail::run_or_start(hpx::function<int (hpx::program_options::variables_map&), false> const&, int, char**, hpx::init_params const&, bool) [0x974] in /home/jmorague/workspace/hpx/build/lib/libhpx.so.2
0xaaaac558117c : ./hello_world_distributed(+0x3117c) [0xaaaac558117c] in ./hello_world_distributed
0xffffa1c973fc : /lib/aarch64-linux-gnu/libc.so.6(+0x273fc) [0xffffa1c973fc] in /lib/aarch64-linux-gnu/libc.so.6
0xffffa1c974cc : __libc_start_main [0x98] in /lib/aarch64-linux-gnu/libc.so.6
0xaaaac555d9b0 : ./hello_world_distributed(+0xd9b0) [0xaaaac555d9b0] in ./hello_world_distributed
{locality-id}: 4294967295
{hostname}: [ (tcp:127.0.0.1:7190) ]
{process-id}: 75291
{os-thread}:
{thread-description}:
{state}: state::initialized
{auxinfo}:
{file}: /home/jmorague/hpx/libs/full/parcelset_base/src/parcelport.cpp
{line}: 396
{function}: early_pending_parcel_handler
{what}: HPX(network_error)
So my question is: is this the proper way to manually execute hpx apps?
Thanks,
Jaume
All reactions