icl-utk-edu / slate

SLATE is a distributed, GPU-accelerated, dense linear algebra library targetting current and upcoming high-performance computing (HPC) systems. It is developed as part of the U.S. Department of Energy Exascale Computing Project (ECP).
https://icl.utk.edu/slate/
BSD 3-Clause "New" or "Revised" License
84 stars 20 forks source link

fatal error: too many errors emitted, stopping now [-ferror-limit=] #197

Open lzjia-jia opened 1 month ago

lzjia-jia commented 1 month ago

Description When I install SLATE using HIP, I encountered the following error. How can I resolve this issue? export CXX=gcc export FC=mpif90 export CXXFLAGS="-I/opt/hpc/software/mpi/hpcx/v2.7.4/gcc-7.3.1/include -I/public/software/compiler/intel/intel-compiler-2019.4.243/mkl/include" export LDFLAGS="-L/opt/hpc/software/mpi/hpcx/v2.7.4/gcc-7.3.1/lib -L/public/software/compiler/intel/intel-compiler-2019.4.243/mkl/lib/intel64_lin -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_core -lmkl_sequential -lmpi -lm -lstdc++" export gpu_backend=hip export mpi=1 export openmp=1 cd build rm -rf CMakeFiles CMakeCache.txt cmake -DCC=gcc -DCXX=g++ -DFC=mpifort -DF77=mpif90 -DMPICC=mpicc -DMPICXX=mpicxx -DMPIFC=mpif90 -DMPIF77=mpif90 -Dblas_int=32 --log-level=verbose ..

[ 55%] Linking CXX shared library liblapackpp.so [ 55%] Built target lapackpp [ 55%] Generating src/hip/device_geadd.hip.cc.o /public/home/wwstu1/slate/build In file included from :776: :1:14: warning: ISO C99 requires whitespace after the macro name [-Wc99-extensions]

define defs_-NOTFOUND 1

         ^

In file included from /public/home/wwstu1/slate/src/hip/device_geadd.hip.cc:10: /public/home/wwstu1/slate/src/hip/device_util.hip.hh:107:79: error: no member named 'real' in 'rocblas_double_complex' host device inline double real( rocblas_double_complex x ) { return x.real(); } ~ ^ /public/home/wwstu1/slate/src/hip/device_util.hip.hh:108:79: error: no member named 'real' in 'rocblas_float_complex' host device inline float real( rocblas_float_complex x ) { return x.real(); } ~ ^ /public/home/wwstu1/slate/src/hip/device_util.hip.hh:110:79: error: no member named 'imag' in 'rocblas_double_complex' host device inline double imag( rocblas_double_complex x ) { return x.imag(); } ~ ^ /public/home/wwstu1/slate/src/hip/device_util.hip.hh:111:79: error: no member named 'imag' in 'rocblas_float_complex' host device inline float imag( rocblas_float_complex x ) { return x.imag(); } ~ ^ /public/home/wwstu1/slate/src/hip/device_util.hip.hh:113:97: error: no member named 'real' in 'rocblas_double_complex' host device inline rocblas_double_complex conj( rocblas_double_complex x ) { return { x.real(), -x.imag() }; } ~ ^ /public/software/compiler/dtk/dtk-22.10.1/include/rocblas/internal/rocblas-complex-types.h:64:9: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided /public/software/compiler/dtk/dtk-22.10.1/include/rocblas/internal/rocblas-complex-types.h:64:9: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 2 were provided /public/home/wwstu1/slate/src/hip/device_geadd.hip.cc:304:12: error: no matching constructor for initialization of 'rocblas_double_complex' rocblas_double_complex( real( alpha ), imag( alpha ) ), ^ ~~~~~~~~ /public/software/compiler/dtk/dtk-22.10.1/include/rocblas/internal/rocblas-complex-types.h:70:9: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided typedef struct ^ /public/software/compiler/dtk/dtk-22.10.1/include/rocblas/internal/rocblas-complex-types.h:70:9: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided /public/software/compiler/dtk/dtk-22.10.1/include/rocblas/internal/rocblas-complex-types.h:70:9: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 2 were provided fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated when compiling for gfx906. make[2]: [CMakeFiles/slate.dir/build.make:76: src/hip/device_geadd.hip.cc.o] Error 1 make[1]: [CMakeFiles/Makefile2:237: CMakeFiles/slate.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

Environment The more information that you can provide about your environment, the simpler it is for us to understand and reproduce the issue.

devreal commented 1 month ago

I think this is the same error as #196

mgates3 commented 1 month ago

What version of SLATE, e.g., git log --oneline -n 1? What version of HIP / ROCm, e.g., hipcc --version?

lzjia-jia commented 1 month ago

What version of SLATE, e.g., git log --oneline -n 1? What version of HIP / ROCm, e.g., hipcc --version? I downloaded the installation package for 2024.05.31. hipcc --version HIP version: 5.2.23066-47359852 clang version 14.0.0 (http://10.15.3.7/dcutoolkit/driverruntime/llvm-project.git bdeeab053a8bf72a56bdf54d056a43ecb9dc2748) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /public/software/compiler/dtk/dtk-22.10.1/llvm/bin