xsdk-project / xsdk-issues

A repository under which GitHub issues not related to a specific xSDK repo can be filed.
7 stars 0 forks source link

hypre build issue on Frontier #225

Open balos1 opened 1 year ago

balos1 commented 1 year ago

On Frontier with PrgEnv-gnu, running

spack install hypre@2.30.0%gcc@11.2.0~caliper~complex~cuda~debug+fortran~gptune~int64~internal-superlu~magma~mixedint+mpi~openmp+rocm+shared+superlu-dist~sycl~umpire~unified-memory amdgpu_target=gfx90a build_system=autotools arch=linux-sles15-zen3 

results in errors like

16 errors found in build log:
     491    /opt/cray/pe/mpich/8.1.23/ofi/gnu/9.1/bin/mpicc -O2  -fPIC -DHAVE_CONFIG_H -I.. -I../distributed_ls/Euclid -I. -I./.. -
            I./../blas -I./../lapack -I./../multivector -I./../utilities -I./../krylov -I./../seq_mv -I./../parcsr_mv -I./../distri
            buted_matrix -I./../matrix_matrix -I./../IJ_mv -I./../parcsr_block_mv -I/autofs/nccs-svm1_proj/csc326/balos1/frontier/s
            pack-xsdk/opt/spack/linux-sles15-zen3/gcc-11.2.0/superlu-dist-8.2.0-igrz5ds2rxqmrffqfqnx5l3xbe4k5wwf/include    -I/opt/
            rocm-5.3.0/include       -I/opt/cray/pe/mpich/8.1.23/ofi/gnu/9.1/include -c par_cgc_coarsen.c
     492    In file included from /autofs/nccs-svm1_proj/csc326/balos1/frontier/spack-xsdk/opt/spack/linux-sles15-zen3/gcc-11.2.0/s
            uperlu-dist-8.2.0-igrz5ds2rxqmrffqfqnx5l3xbe4k5wwf/include/gpu_wrapper.h:106,
     493                     from /autofs/nccs-svm1_proj/csc326/balos1/frontier/spack-xsdk/opt/spack/linux-sles15-zen3/gcc-11.2.0/s
            uperlu-dist-8.2.0-igrz5ds2rxqmrffqfqnx5l3xbe4k5wwf/include/gpu_api_utils.h:26,
     494                     from /autofs/nccs-svm1_proj/csc326/balos1/frontier/spack-xsdk/opt/spack/linux-sles15-zen3/gcc-11.2.0/s
            uperlu-dist-8.2.0-igrz5ds2rxqmrffqfqnx5l3xbe4k5wwf/include/superlu_defs.h:104,
     495                     from /autofs/nccs-svm1_proj/csc326/balos1/frontier/spack-xsdk/opt/spack/linux-sles15-zen3/gcc-11.2.0/s
            uperlu-dist-8.2.0-igrz5ds2rxqmrffqfqnx5l3xbe4k5wwf/include/superlu_ddefs.h:37,
     496                     from par_amg.c:18:
  >> 497    /opt/rocm-5.3.0/include/hip/hip_runtime_api.h:6917:2: error: #error ("Must define exactly one of __HIP_PLATFORM_AMD__ o
            r __HIP_PLATFORM_NVIDIA__");
     498     6917 | #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
     499          |  ^~~~~

Full log: spack-build-out.txt

Maybe related to https://github.com/hypre-space/hypre/issues/986?

victorapm commented 1 year ago

The spec hypre@develop +rocm +superlu-dist amdgpu_target=gfx90a should work after PR https://github.com/hypre-space/hypre/pull/869 gets merged into hypre's master

victorapm commented 1 year ago

cc @oseikuffuor1

balos1 commented 1 year ago

Great! I will build with ~superlu-dist for now.

osborn9 commented 1 year ago

Now that https://github.com/hypre-space/hypre/pull/869 has been merged, I'm able to successfully build hypre@develop+superlu-dist+rocm on Tioga.