ROCm / rocHPL

High Performance Linpack for Next-Generation AMD HPC Accelerators
Other
43 stars 20 forks source link

[Issue]: Compile failed #13

Closed hanyunfan closed 2 months ago

hanyunfan commented 2 months ago

Problem Description

-- The CXX compiler identification is GNU 11.4.0 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.34.1") -- Found BLAS: //hpl/rocHPL/tpl/blis/lib/libblis.so -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- Found MPI_CXX: //hpl/rocHPL/tpl/openmpi/lib/libmpi.so (found version "3.1") -- Found MPI: TRUE (found version "3.1") -- roctracer: /opt/rocm/lib/libroctracer64.so -- roctx: /opt/rocm/lib/libroctx64.so -- Found HIP: /opt/rocm (found version "6.2.41133-dd7f95766") -- Looking for C++ include pthread.h -- Looking for C++ include pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- rocBLAS version: 4.2.0 -- rocBLAS include dirs: /opt/rocm-6.2.0/include -- rocBLAS libraries: /opt/rocm-6.2.0/lib/librocblas.so.4.2.60200 -- Configuring done -- Generating done -- Build files have been written to: //hpl/rocHPL/build [ 1%] Building HIPCC object CMakeFiles/rochpl.dir/src/pgesv/rochpl_generated_HPL_pdtrsv_device.cpp.o [ 2%] Building HIPCC object CMakeFiles/rochpl.dir/src/auxil/rochpl_generated_HPL_dlatcpy_device.cpp.o [ 3%] Building HIPCC object CMakeFiles/rochpl.dir/src/matgen/rochpl_generated_HPL_pdrandmat_device.cpp.o [ 4%] Building HIPCC object CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp00N_device.cpp.o [ 5%] Building HIPCC object CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp01T_device.cpp.o [ 6%] Building HIPCC object CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp02T_device.cpp.o [ 7%] Building HIPCC object CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp03T_device.cpp.o [ 8%] Building HIPCC object CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp04T_device.cpp.o [ 9%] Building HIPCC object CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp10N_device.cpp.o [ 10%] Building HIPCC object CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_pdlange_device.cpp.o In file included from //hpl/rocHPL/src/auxil/HPL_dlatcpy_device.cpp:17: In file included from //hpl/rocHPL/include/hpl.hpp:42: /usr/include/omp.h:319:45: error: 'malloc' attribute takes no arguments 319 | GOMP_NOTHROW attribute((malloc, malloc (omp_free), | ^ /usr/include/omp.h:324:45: error: 'malloc' attribute takes no arguments 324 | GOMP_NOTHROW attribute((malloc, malloc (omp_free), | ^ /usr/include/omp.h:328:45: error: 'malloc' attribute takes no arguments 328 | GOMP_NOTHROW attribute((malloc, malloc (omp_free), | ^ /usr/include/omp.h:333:45: error: 'malloc' attribute takes no arguments 333 | GOMP_NOTHROW attribute((malloc, malloc (omp_free), | ^ /usr/include/omp.h:338:33: error: 'malloc' attribute takes no arguments 338 | GOMP_NOTHROW attribute((malloc (omp_free), alloc_size__ (2))); | ^

......

CMake Error at rochpl_generated_HPL_dlaswp10N_device.cpp.o.cmake:200 (message): Error generating file //hpl/rocHPL/build/CMakeFiles/rochpl.dir/src/pauxil/./rochpl_generated_HPL_dlaswp10N_device.cpp.o

make[2]: *** [CMakeFiles/rochpl.dir/build.make:126: CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp10N_device.cpp.o] Error 1 CMake Error at rochpl_generated_HPL_pdrandmat_device.cpp.o.cmake:200 (message): Error generating file //hpl/rocHPL/build/CMakeFiles/rochpl.dir/src/matgen/./rochpl_generated_HPL_pdrandmat_device.cpp.o

CMake Error at rochpl_generated_HPL_dlaswp00N_device.cpp.o.cmake:200 (message): Error generating file //hpl/rocHPL/build/CMakeFiles/rochpl.dir/src/pauxil/./rochpl_generated_HPL_dlaswp00N_device.cpp.o

CMake Error at rochpl_generated_HPL_dlaswp01T_device.cpp.o.cmake:200 (message): Error generating file //hpl/rocHPL/build/CMakeFiles/rochpl.dir/src/pauxil/./rochpl_generated_HPL_dlaswp01T_device.cpp.o

make[2]: *** [CMakeFiles/rochpl.dir/build.make:91: CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp00N_device.cpp.o] Error 1 CMake Error at rochpl_generated_HPL_dlaswp03T_device.cpp.o.cmake:200 (message): Error generating file //hpl/rocHPL/build/CMakeFiles/rochpl.dir/src/pauxil/./rochpl_generated_HPL_dlaswp03T_device.cpp.o

make[2]: *** [CMakeFiles/rochpl.dir/build.make:84: CMakeFiles/rochpl.dir/src/matgen/rochpl_generated_HPL_pdrandmat_device.cpp.o] Error 1 CMake Error at rochpl_generated_HPL_pdlange_device.cpp.o.cmake:200 (message): Error generating file //hpl/rocHPL/build/CMakeFiles/rochpl.dir/src/pauxil/./rochpl_generated_HPL_pdlange_device.cpp.o

CMake Error at rochpl_generated_HPL_pdtrsv_device.cpp.o.cmake:200 (message): Error generating file //hpl/rocHPL/build/CMakeFiles/rochpl.dir/src/pgesv/./rochpl_generated_HPL_pdtrsv_device.cpp.o

make[2]: [CMakeFiles/rochpl.dir/build.make:98: CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp01T_device.cpp.o] Error 1 make[2]: [CMakeFiles/rochpl.dir/build.make:140: CMakeFiles/rochpl.dir/src/pgesv/rochpl_generated_HPL_pdtrsv_device.cpp.o] Error 1 CMake Error at rochpl_generated_HPL_dlaswp02T_device.cpp.o.cmake:200 (message): Error generating file //hpl/rocHPL/build/CMakeFiles/rochpl.dir/src/pauxil/./rochpl_generated_HPL_dlaswp02T_device.cpp.o

make[2]: [CMakeFiles/rochpl.dir/build.make:112: CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp03T_device.cpp.o] Error 1 make[2]: [CMakeFiles/rochpl.dir/build.make:105: CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_dlaswp02T_device.cpp.o] Error 1 make[2]: *** [CMakeFiles/rochpl.dir/build.make:133: CMakeFiles/rochpl.dir/src/pauxil/rochpl_generated_HPL_pdlange_device.cpp.o] Error 1 5 errors generated when compiling for gfx900.

Operating System

Ubuntu 22.04.4 LTS (Jammy Jellyfish)

CPU

8460Y+

GPU

AMD Instinct MI300X

ROCm Version

ROCm 6.2.0

ROCm Component

No response

Steps to Reproduce

git clone and then ./install on bare-metal system

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

hanyunfan commented 2 months ago

rebuild the ROCm environment on another machine and the problem is solved.