Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks
lzjia-jia opened this issue Jul 20, 2024 · 3 comments
Open
4 tasks

Comments

@lzjia-jia
Copy link

lzjia-jia commented Jul 20, 2024

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.

  • SLATE version / commit ID (e.g., git log --oneline -n 1):
  • How installed:
    • [√ ] git clone
    • release tar file
    • Spack
    • module
  • How compiled:
    • makefile (include your make.inc)
    • [√ ] CMake (include your command line options)
  • Compiler & version (e.g., mpicxx --version):
    Currently Loaded Modulefiles:
  1) compiler/cmake/3.24.1       2) compiler/intel/2019.4.243   3) compiler/devtoolset/7.3.1
  4) mpi/hpcx/2.7.4/gcc-7.3.1    5) compiler/rocm/dtk/22.10.1
@devreal
Copy link

devreal commented Jul 21, 2024

I think this is the same error as #196

@mgates3
Copy link
Collaborator

mgates3 commented Jul 22, 2024

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

@lzjia-jia
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants