Closed cameronrutherford closed 8 months ago
@cameronrutherford, the incline build seems to work fine now. Has this issue been resolved?
@cameronrutherford, the incline build seems to work fine now. Has this issue been resolved?
This issue is still present. To clarify the issue description, I don't specify anything for CMAKE_BUILD_TYPE
in the CMakePresets.json
, and for some reason this results in a segfault at runtime. As soon as you try and build with a specific type, error goes away.
Two things that can help further debug this:
CMAKE_CXX_FLAGS
directly without a build type, and get debugging symbols into a failing build?TBH this seems like a waste of time to debug, but I wanted to document it
Removing "hackathon" milestone from this issue as it is marginal to the hackathon objectives.
@cameronrutherford, so far I was not able to reproduce this issue on P9/V100, Milan/MI250X and Intel-based Macbook. I will close it as non-reproducible, but please feel free to reopen if the issue appears again or if you get more data.
Sounds good. I am hoping to never see this issue again ◡̈
This error was observed building and running on incline. Here is a sample error log, and
CMakePresets.json
used:Build error log
``` [ruth521@deception resolve]$ export MY_CLUSTER=incline [ruth521@deception resolve]$ srun -A exasgd -p incline -t30 -N 1 --exclusive ./buildsystem/build.sh Paths: Source dir: /people/ruth521/projects/resolve Build dir: /people/ruth521/projects/resolve/build Install dir: /people/ruth521/projects/resolve/install Path to buildsystem script: /people/ruth521/projects/resolve/buildsystem/build.sh Currently Loaded Modulefiles: 1) gcc/8.4.0 2) rocm/5.3.0 3) curl/7.29.0-gcc-8.4.0-3emq5yx 4) gmake/4.4.1-gcc-8.4.0-l7nyr34 5) pkgconf/1.9.5-gcc-8.4.0-733ltud 6) ncurses/6.4-gcc-8.4.0-gwo76of 7) zlib-ng/2.1.4-gcc-8.4.0-feah6zt 8) cmake/3.27.7-gcc-8.4.0-rmou7zf 9) gmake/4.4.1-clang-16.0.0-rocm5.6.0-ku7zmdn 10) python/3.9.12-gcc-8.4.0-ob2n5zs 11) re2c/2.2-gcc-8.4.0-zmj4cst 12) ninja/1.11.1-gcc-8.4.0-ofxvwff 13) z3/4.11.2-gcc-8.4.0-363odap 14) llvm-amdgpu/5.6.1-gcc-8.4.0-vy3wrnq 15) rocm-core/5.6.1-gcc-8.4.0-llv2yv4 16) rocm-cmake/5.6.1-gcc-8.4.0-klwq5kk 17) comgr/5.6.1-gcc-8.4.0-yl7z2re 18) libiconv/1.17-gcc-8.4.0-o2hwfiz 19) diffutils/3.9-gcc-8.4.0-7ceszkk 20) bzip2/1.0.8-gcc-8.4.0-on73m5o 21) xz/5.4.1-gcc-8.4.0-v5kymdq 22) libxml2/2.10.3-gcc-8.4.0-6mgqxiy 23) pigz/2.7-gcc-8.4.0-btbzuey 24) zstd/1.5.5-gcc-8.4.0-3ets7dy 25) tar/1.34-gcc-8.4.0-atzwdgy 26) gettext/0.22.3-gcc-8.4.0-m33ujza 27) libsigsegv/2.14-gcc-8.4.0-gzna4n3 28) m4/1.4.19-gcc-8.4.0-bwzchwl 29) perl/5.26.0-gcc-8.4.0-6tdzqfd 30) bison/3.8.2-gcc-8.4.0-etuka2a 31) libmd/1.0.4-gcc-8.4.0-tbwjjiv 32) libbsd/0.11.7-gcc-8.4.0-tqu43be 33) expat/2.5.0-gcc-8.4.0-7rfhc6v 34) findutils/4.9.0-gcc-8.4.0-yjpuc44 35) flex/2.6.3-gcc-8.4.0-egfp6z5 36) util-macros/1.19.3-gcc-8.4.0-64inrmm 37) glproto/1.4.17-gcc-8.4.0-d2xwssq 38) libunwind/1.6.2-gcc-8.4.0-rgu2xlp 39) inputproto/2.3.2-gcc-8.4.0-cmbqp4h 40) kbproto/1.0.7-gcc-8.4.0-pq6oac7 41) libpthread-stubs/0.4-gcc-8.4.0-kcav646 42) xproto/7.0.31-gcc-8.4.0-2xcokuh 43) libxau/1.0.8-gcc-8.4.0-7r3byub 44) libxdmcp/1.1.4-gcc-8.4.0-ewgybb6 45) xcb-proto/1.15.2-gcc-8.4.0-kj2ch5l 46) libxcb/1.14-gcc-8.4.0-5c2iblj 47) xextproto/7.3.0-gcc-8.4.0-l75zwpb 48) xtrans/1.4.0-gcc-8.4.0-cbfrdws 49) libx11/1.8.4-gcc-8.4.0-n5i25lg 50) libxext/1.3.3-gcc-8.4.0-zr45mr7 51) libice/1.0.9-gcc-8.4.0-miq4xhk 52) util-linux-uuid/2.38.1-gcc-8.4.0-c2ehpex 53) libsm/1.2.3-gcc-8.4.0-4zhneq6 54) libxt/1.1.5-gcc-8.4.0-wxqofrn 55) py-pip/23.1.2-gcc-8.4.0-yajovh7 56) py-wheel/0.41.2-gcc-8.4.0-dkkw2va 57) py-setuptools/68.0.0-gcc-8.4.0-ihu4sfq 58) meson/1.2.2-gcc-8.4.0-vcdwjmb 59) py-markupsafe/2.1.3-gcc-8.4.0-ckndn5h 60) py-mako/1.2.4-gcc-8.4.0-djk4toh 61) renderproto/0.11.1-gcc-8.4.0-wf73fb4 62) libxrender/0.9.10-gcc-8.4.0-3rqjeli 63) randrproto/1.5.0-gcc-8.4.0-3ytqi3w 64) libxrandr/1.5.3-gcc-8.4.0-7ns64x7 65) xrandr/1.5.0-gcc-8.4.0-3whusyt 66) mesa/23.0.3-gcc-8.4.0-lbefc2e 67) glx/1.4-gcc-8.4.0-ly5ulwt 68) hipify-clang/5.6.1-gcc-8.4.0-e3jea5v 69) elfutils/0.189-gcc-8.4.0-23kjwto 70) libtool/2.4.7-gcc-8.4.0-2bmpsy4 71) libpciaccess/0.17-gcc-8.4.0-sh2c4la 72) libdrm/2.4.115-gcc-8.4.0-6h77lxh 73) autoconf/2.69-gcc-8.4.0-dcrbb7h 74) automake/1.16.5-gcc-8.4.0-tvi3cks 75) numactl/2.0.14-gcc-8.4.0-7mpcwqq 76) hsakmt-roct/5.6.1-gcc-8.4.0-4on3xib 77) hsa-rocr-dev/5.6.1-gcc-8.4.0-tdlpv7w 78) perl-file-which/1.27-gcc-8.4.0-nix64yx 79) perl-module-build/0.4232-gcc-8.4.0-ayed35p 80) perl-uri-encode/1.1.1-gcc-8.4.0-biqataj 81) py-ply/3.11-gcc-8.4.0-creftnl 82) py-cppheaderparser/2.7.4-gcc-8.4.0-nw7554i 83) rocminfo/5.6.1-gcc-8.4.0-5shaxxj 84) roctracer-dev-api/5.6.1-gcc-8.4.0-gbaoh25 85) hip/5.6.1-gcc-8.4.0-6agncv5 86) msgpack-c/3.1.1-gcc-8.4.0-buxbznu 87) procps/4.0.4-gcc-8.4.0-gyn6his 88) py-joblib/1.2.0-gcc-8.4.0-ukcd432 89) py-cython/0.29.36-gcc-8.4.0-5f4zyzb 90) py-msgpack/1.0.5-gcc-8.4.0-2xh5udm 91) libyaml/0.2.5-gcc-8.4.0-hidc7bw 92) py-pyyaml/6.0-gcc-8.4.0-4mdsdw2 93) py-distlib/0.3.7-gcc-8.4.0-f25ay4b 94) py-editables/0.3-gcc-8.4.0-hrmamrk 95) py-flit-core/3.9.0-gcc-8.4.0-q3yng6k 96) py-packaging/23.1-gcc-8.4.0-7krugqt 97) py-pathspec/0.11.1-gcc-8.4.0-vm5freh 98) git/2.42.0-gcc-8.4.0-k5crf2q 99) py-tomli/2.0.1-gcc-8.4.0-m4gh2nb 100) py-typing-extensions/4.8.0-gcc-8.4.0-ovqdpbs 101) py-setuptools-scm/7.1.0-gcc-8.4.0-hqzn5lb 102) py-pluggy/1.0.0-gcc-8.4.0-lqpf66l 103) py-calver/2022.6.26-gcc-8.4.0-pm6rj2c 104) py-trove-classifiers/2023.8.7-gcc-8.4.0-iy66qnh 105) py-hatchling/1.18.0-gcc-8.4.0-bjpjiiq 106) py-hatch-vcs/0.3.0-gcc-8.4.0-hc6rq3a 107) py-filelock/3.12.4-gcc-8.4.0-rzqmlrq 108) py-platformdirs/3.10.0-gcc-8.4.0-6hnyp7h 109) py-virtualenv/20.24.5-gcc-8.4.0-h4mzkzl 110) rocblas/5.6.1-gcc-8.4.0-6xcnn6z 111) rocprim/5.6.1-gcc-8.4.0-uypvsdi 112) rocsparse/5.6.1-gcc-8.4.0-irtacbe 113) gmp/6.2.1-gcc-8.4.0-jbyetgm 114) metis/5.1.0-gcc-8.4.0-arxpx4m 115) autoconf-archive/2023.02.20-gcc-8.4.0-peuq4u2 116) texinfo/7.0.3-gcc-8.4.0-eja2su5 117) mpfr/4.2.0-gcc-8.4.0-pf2mr55 118) openblas/0.3.24-gcc-8.4.0-lnpxyrn 119) suite-sparse/5.13.0-gcc-8.4.0-cy34eno ~/projects/resolve/build ~/projects/resolve Configuring Preset CMake variables: CMAKE_HIP_ARCHITECTURES="gfx908" CMAKE_INSTALL_PREFIX:PATH="/people/ruth521/projects/resolve/install" RESOLVE_USE_HIP="ON" -- The C compiler identification is Clang 16.0.0 -- The CXX compiler identification is Clang 16.0.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /qfs/projects/exasgd/resolve/spack-ci/install/linux-centos7-zen/gcc-8.4.0/llvm-amdgpu-5.6.1-vy3wrnqjafyyqecvn4azv2apududkipa/bin/clang - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /qfs/projects/exasgd/resolve/spack-ci/install/linux-centos7-zen/gcc-8.4.0/llvm-amdgpu-5.6.1-vy3wrnqjafyyqecvn4azv2apududkipa/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found klu include: /qfs/projects/exasgd/resolve/spack-ci/install/linux-centos7-zen/gcc-8.4.0/suite-sparse-5.13.0-cy34eno3dhhi3tavrf7o4qlk6mc6itpg/include -- Found klu library: /qfs/projects/exasgd/resolve/spack-ci/install/linux-centos7-zen/gcc-8.4.0/suite-sparse-5.13.0-cy34eno3dhhi3tavrf7o4qlk6mc6itpg/lib/libklu.so -- Not using CUDA -- The HIP compiler identification is Clang 16.0.0 -- Detecting HIP compiler ABI info -- Detecting HIP compiler ABI info - done -- Check for working HIP compiler: /qfs/projects/exasgd/resolve/spack-ci/install/linux-centos7-zen/gcc-8.4.0/llvm-amdgpu-5.6.1-vy3wrnqjafyyqecvn4azv2apududkipa/bin/clang++ - skipped -- Detecting HIP compile features -- Detecting HIP compile features - done CMake Deprecation Warning at /qfs/projects/exasgd/resolve/spack-ci/install/linux-centos7-zen/gcc-8.4.0/hip-5.6.1-6agncv5eyija6jdbr3kou6ojbeqxdqzf/lib/cmake/hip/hip-config.cmake:20 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Update the VERSION argumentCMakePresets.json
``` { "version": 3, "cmakeMinimumRequired": { "major": 3, "minor": 22, "patch": 0 }, "configurePresets": [ { "name": "cuda", "displayName": "CUDA Build", "description": "Base config to build with CUDA", "binaryDir": "${sourceDir}/build", "installDir": "${sourceDir}/install", "generator": "Unix Makefiles", "cacheVariables": { "RESOLVE_USE_CUDA": "ON" } }, { "name": "rocm", "displayName": "ROCM build", "description": "Base config to build with ROCM", "binaryDir": "${sourceDir}/build", "installDir": "${sourceDir}/install", "generator": "Unix Makefiles", "cacheVariables": { "RESOLVE_USE_HIP": "ON" } }, { "name": "cpu", "displayName": "CPU only build", "description": "Base config to build without GPUs", "binaryDir": "${sourceDir}/build", "installDir": "${sourceDir}/install", "generator": "Unix Makefiles" }, { "name": "ascent", "inherits": "cuda", "displayName": "Ascent Build", "description": "Custom changes specific for Ascent", "cacheVariables": { "CMAKE_C_COMPILER": "$env{OLCF_GCC_ROOT}/bin/gcc", "CMAKE_CXX_COMPILER": "$env{OLCF_GCC_ROOT}/bin/g++" } }, { "name": "deception", "inherits": "cuda", "displayName": "Deception Build", "description": "Custom changes specific for Deception" }, { "name": "incline", "inherits": "rocm", "displayName": "Incline Build with rocm", "description": "Custom changes specific for Incline", "cacheVariables": { "CMAKE_HIP_ARCHITECTURES" : "gfx908" } } ] } ```Not that simply using any other build type seems to fix the issue.