ROCm / clr

MIT License
104 stars 50 forks source link

[Issue]: clr build fails and issue being closed prematurely without possibility of opening #103

Closed jdgh000 closed 3 weeks ago

jdgh000 commented 3 weeks ago

Problem Description

See here for details: https://github.com/ROCm/clr/issues/39 https://github.com/ROCm/clr/issues/23 There are numerious problem with approaching this ticket being ended up closing prematurely without resolve:

Operating System

rhel 9

CPU

EPYC 7763

GPU

MI210

ROCm Version

ROCm 6.2.0

ROCm Component

No response

Steps to Reproduce

after checkout both clr and HIP in same dir. from clr dir: mkdir build ; cd build sudo cmake .. -DCLR_BUILD_HIP=ON -DHIP_COMMON_DIR=../HIP

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

No response

Additional Information

No response

jdgh000 commented 3 weeks ago

Latest attempt after closing twice previous ticket prematurely without resolving:


 ; sudo cmake -DCLR_BUILD_HIP=ON -DHIP_COMMON_DIR=$HIP_COMMON_DIR=../../HIP  ..
-- The C compiler identification is GNU 11.5.0
-- The CXX compiler identification is GNU 11.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /bin/cc - 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: /bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- HIPCC Binary Directory: /opt/rocm/bin
-- HIP Common Directory: =../../HIP
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found AMD_OPENCL: /root/rocm/ROCm-6.2/clr/opencl/khronos/headers/opencl2.2/CL
CMake Error at rocclr/cmake/ROCclrLC.cmake:37 (file):
  file STRINGS file
  "/root/rocm/ROCm-6.2/clr/rocclr/=../../HIP/VERSION"
  cannot be read.
Call Stack (most recent call first):
  rocclr/cmake/ROCclr.cmake:139 (include)
  rocclr/CMakeLists.txt:30 (include)

-- Found NUMA: /usr/lib64/libnuma.so
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- HIPCC_BIN_DIR found at /opt/rocm/bin
-- HIP_COMMON_DIR found at =../../HIP
-- HIPNV_DIR found at
-- Found Perl: /bin/perl (found version "5.32.1")
CMake Error at hipamd/CMakeLists.txt:88 (file):
  file STRINGS file
  "/root/rocm/ROCm-6.2/clr/hipamd/=../../HIP/VERSION"
  cannot be read.

-- Found Git: /bin/git (found version "2.43.5")
-- Using CPACK_DEBIAN_PACKAGE_RELEASE local
-- CPACK_RPM_PACKAGE_RELEASE: local%{?dist}
-- HIP Platform: amd
-- HIP Runtime: rocclr
-- HIP Compiler: clang
-- ROCM Installation path(ROCM_PATH): /opt/rocm
-- HIP will be installed in: /opt/rocm
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib64/libtinfo.so
-- Found ZLIB: /usr/local/lib/libz.so (found version "1.3.#define ZLIB_VERSION "1.3"")
-- Found zstd: /usr/local/lib64/libzstd.so
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.13")
'sh' '-c' '/root/rocm/ROCm-6.2/clr/hipamd/src/hip_embed_pch.sh =../../HIP/include /root/rocm/ROCm-6.2/clr/build/hipamd/include /root/rocm/ROCm-6.2/clr/hipamd/include /opt/rocm/llvm/lib/cmake/llvm/../../..'
+ /opt/rocm/llvm/lib/cmake/llvm/../../../bin/clang -O3 --hip-path=/root/rocm/ROCm-6.2/clr/build/hipamd/include/.. -std=c++17 -nogpulib -isystem /root/rocm/ROCm-6.2/clr/build/hipamd/include -isystem =../../HIP/include -isystem /root/rocm/ROCm-6.2/clr/hipamd/include --cuda-device-only --cuda-gpu-arch=gfx1030 -x hip /tmp/hip_pch.80988/hip_pch.h -E
/tmp/hip_pch.80988/hip_pch.h:1:10: fatal error: 'hip/hip_runtime.h' file not found
    1 | #include "hip/hip_runtime.h"
      |          ^~~~~~~~~~~~~~~~~~~
1 error generated when compiling for gfx1030.
CMake Error at hipamd/src/CMakeLists.txt:200 (message):
  Failed to embed PCH

-- Configuring incomplete, errors occurred!
[nonroot@SMC-DH144-DC16-U27 build]$  sudo rm -rf ./* ; sudo cmake -DCLR_BUILD_HIP=ON -DHIP_COMMON_DIR=$HIP_COMMON_DIR=../../HIP  ..^C
[nonroot@SMC-DH144-DC16-U27 build]$ find ../../HIP -name hip_runtime.h
../../HIP/include/hip/hip_runtime.h
[nonroot@SMC-DH144-DC16-U27 build]$ ls -l ../../HIP
total 84
drwxr-xr-x.  2 root root    73 Nov  1 15:34 bin
drwxr-xr-x.  3 root root    54 Nov  1 15:34 cmake
-rw-r--r--.  1 root root    51 Nov  1 15:34 CODEOWNERS
-rw-r--r--.  1 root root     0 Nov  1 15:34 configure
-rw-r--r--.  1 root root  8992 Nov  1 15:34 CONTRIBUTING.md
drwxr-xr-x.  2 root root    90 Nov  1 15:34 docker
drwxr-xr-x. 10 root root  4096 Nov  1 15:34 docs
-rw-r--r--.  1 root root  5271 Nov  1 15:34 hip-lang-config.cmake.in
drwxr-xr-x.  3 root root    25 Nov  1 15:34 include
-rwxr-xr-x.  1 root root  1208 Nov  1 15:34 install.sh
-rw-r--r--.  1 root root 16645 Nov  1 15:34 Jenkinsfile
-rw-r--r--.  1 root root  1080 Nov  1 15:34 LICENSE.txt
-rw-r--r--.  1 root root 11115 Nov  1 15:34 README.md
-rw-r--r--.  1 root root  9833 Nov  1 15:34 RELEASE.md
drwxr-xr-x.  4 root root    42 Nov  1 15:34 util
-rw-r--r--.  1 root root    67 Nov  1 15:34 VERSION