ROCm / ROCR-Runtime

ROCm Platform Runtime: ROCr a HPC market enhanced HSA based runtime
https://rocm.docs.amd.com/projects/ROCR-Runtime/en/latest/
Other
226 stars 108 forks source link

Error compiling ROCR-Runtime: `'amdgpu_code_object_version': IDs have conflicting values` #166

Closed dipietrantonio closed 3 months ago

dipietrantonio commented 1 year ago

I am trying to build ROCm 5.6.1 from source and I hit the following error:

fatal error: cannot link module '<B0><E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<CA>6<E8><U+0019><U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'

Here is my CMake command line options.

Installing ROCR-Runtime ..
Running command cd src
Running command cd build
Running command cmake -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DBITCODE_DIR=/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/amdgcn/bitcode ..
-- The C compiler identification is Clang 16.0.0
-- The CXX compiler identification is Clang 16.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang - 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: /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
fatal: Not a valid object name origin/HEAD
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Found LibElf: /usr/lib64/libelf.so  
-- Performing Test ELF_GETSHDRSTRNDX
-- Performing Test ELF_GETSHDRSTRNDX - Success
-- Checking for module 'libdrm'
--   Found libdrm, version 2.4.111
-- Looking for __NR_memfd_create
-- Looking for __NR_memfd_create - found
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib64/libtinfo.so  
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") 
-- Found zstd: /usr/lib64/libzstd.so  
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.14") 
Using CPACK_DEBIAN_PACKAGE_RELEASE local
RESULT_VARIABLE 0 OUTPUT_VARIABLE: 
CPACK_RPM_PACKAGE_RELEASE: local%{?dist}
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    BITCODE_DIR

-- Build files have been written to: /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build
Running command make VERBOSE=1 -j 128 install
/lus/joey/software/setonix/2023.07/software/linux-sles15-zen3/gcc-12.2.0/cmake-3.24.3-wf4dwq3jmvzzwrqofdf3je3sbzvoodsh/bin/cmake -S/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src -B/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build --check-build-system CMakeFiles/Makefile.cmake 0
/lus/joey/software/setonix/2023.07/software/linux-sles15-zen3/gcc-12.2.0/cmake-3.24.3-wf4dwq3jmvzzwrqofdf3je3sbzvoodsh/bin/cmake -E cmake_progress_start /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/CMakeFiles /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build//CMakeFiles/progress.marks
make  -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
make  -f image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make image/blit_src/CMakeFiles/opencl_blit_objects.dir/depend
make  -f core/runtime/trap_handler/CMakeFiles/amd_trap_handler_v2.dir/build.make core/runtime/trap_handler/CMakeFiles/amd_trap_handler_v2.dir/depend
make  -f CMakeFiles/link_libhsa-runtime64.so.dir/build.make CMakeFiles/link_libhsa-runtime64.so.dir/depend
make[2]: Entering directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build && /lus/joey/software/setonix/2023.07/software/linux-sles15-zen3/gcc-12.2.0/cmake-3.24.3-wf4dwq3jmvzzwrqofdf3je3sbzvoodsh/bin/cmake -E cmake_depends "Unix Makefiles" /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src/CMakeFiles/opencl_blit_objects.dir/DependInfo.cmake --color=
make  -f CMakeFiles/link_libhsa-runtime64.so.1.dir/build.make CMakeFiles/link_libhsa-runtime64.so.1.dir/depend
make[2]: Entering directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build && /lus/joey/software/setonix/2023.07/software/linux-sles15-zen3/gcc-12.2.0/cmake-3.24.3-wf4dwq3jmvzzwrqofdf3je3sbzvoodsh/bin/cmake -E cmake_depends "Unix Makefiles" /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/core/runtime/trap_handler /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler/CMakeFiles/amd_trap_handler_v2.dir/DependInfo.cmake --color=
make[2]: Entering directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build && /lus/joey/software/setonix/2023.07/software/linux-sles15-zen3/gcc-12.2.0/cmake-3.24.3-wf4dwq3jmvzzwrqofdf3je3sbzvoodsh/bin/cmake -E cmake_depends "Unix Makefiles" /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/CMakeFiles/link_libhsa-runtime64.so.dir/DependInfo.cmake --color=
make[2]: Entering directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build && /lus/joey/software/setonix/2023.07/software/linux-sles15-zen3/gcc-12.2.0/cmake-3.24.3-wf4dwq3jmvzzwrqofdf3je3sbzvoodsh/bin/cmake -E cmake_depends "Unix Makefiles" /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/CMakeFiles/link_libhsa-runtime64.so.1.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
make  -f image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make image/blit_src/CMakeFiles/opencl_blit_objects.dir/build
make[2]: Entering directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
make[2]: Leaving directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
make  -f core/runtime/trap_handler/CMakeFiles/amd_trap_handler_v2.dir/build.make core/runtime/trap_handler/CMakeFiles/amd_trap_handler_v2.dir/build
make[2]: Leaving directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
make  -f CMakeFiles/link_libhsa-runtime64.so.1.dir/build.make CMakeFiles/link_libhsa-runtime64.so.1.dir/build
make[2]: Leaving directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
make  -f CMakeFiles/link_libhsa-runtime64.so.dir/build.make CMakeFiles/link_libhsa-runtime64.so.dir/build
make[2]: Entering directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
make[2]: Entering directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
/lus/joey/software/setonix/2023.07/software/linux-sles15-zen3/gcc-12.2.0/cmake-3.24.3-wf4dwq3jmvzzwrqofdf3je3sbzvoodsh/bin/cmake -E create_symlink ../../lib64/libhsa-runtime64.so.1 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/wrapper_dir/lib/libhsa-runtime64.so.1
make[2]: Entering directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
/lus/joey/software/setonix/2023.07/software/linux-sles15-zen3/gcc-12.2.0/cmake-3.24.3-wf4dwq3jmvzzwrqofdf3je3sbzvoodsh/bin/cmake -E create_symlink ../../lib64/libhsa-runtime64.so /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/wrapper_dir/lib/libhsa-runtime64.so
[  1%] BUILDING bitcode for ocl_blit_object_gfx700...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx700 -mcode-object-version=4 -o ocl_blit_object_gfx700 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[  2%] BUILDING bitcode for ocl_blit_object_gfx701...
[  2%] BUILDING bitcode for ocl_blit_object_gfx702...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx701 -mcode-object-version=4 -o ocl_blit_object_gfx701 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx702 -mcode-object-version=4 -o ocl_blit_object_gfx702 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[  3%] BUILDING bitcode for ocl_blit_object_gfx801...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx801 -mcode-object-version=4 -o ocl_blit_object_gfx801 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[  5%] BUILDING bitcode for ocl_blit_object_gfx803...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx803 -mcode-object-version=4 -o ocl_blit_object_gfx803 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[  5%] BUILDING bitcode for ocl_blit_object_gfx802...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx802 -mcode-object-version=4 -o ocl_blit_object_gfx802 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[  6%] BUILDING bitcode for ocl_blit_object_gfx805...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx805 -mcode-object-version=4 -o ocl_blit_object_gfx805 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[  7%] BUILDING bitcode for ocl_blit_object_gfx810...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx810 -mcode-object-version=4 -o ocl_blit_object_gfx810 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[  9%] BUILDING bitcode for ocl_blit_object_gfx900...
[  9%] BUILDING bitcode for ocl_blit_object_gfx902...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx900 -mcode-object-version=4 -o ocl_blit_object_gfx900 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx902 -mcode-object-version=4 -o ocl_blit_object_gfx902 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
make[2]: Leaving directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
[ 14%] BUILDING bitcode for ocl_blit_object_gfx904...
[ 14%] BUILDING bitcode for ocl_blit_object_gfx906...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx906 -mcode-object-version=4 -o ocl_blit_object_gfx906 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 15%] BUILDING bitcode for ocl_blit_object_gfx90a...
[ 15%] BUILDING bitcode for ocl_blit_object_gfx908...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx904 -mcode-object-version=4 -o ocl_blit_object_gfx904 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 15%] BUILDING bitcode for ocl_blit_object_gfx909...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx908 -mcode-object-version=4 -o ocl_blit_object_gfx908 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx909 -mcode-object-version=4 -o ocl_blit_object_gfx909 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx90a -mcode-object-version=4 -o ocl_blit_object_gfx90a /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 17%] BUILDING bitcode for ocl_blit_object_gfx90c...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx90c -mcode-object-version=4 -o ocl_blit_object_gfx90c /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 18%] BUILDING bitcode for ocl_blit_object_gfx1010...
[ 18%] BUILDING bitcode for ocl_blit_object_gfx1011...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1010 -mcode-object-version=4 -o ocl_blit_object_gfx1010 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1011 -mcode-object-version=4 -o ocl_blit_object_gfx1011 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 19%] BUILDING bitcode for ocl_blit_object_gfx1012...
[ 19%] BUILDING bitcode for ocl_blit_object_gfx1013...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1012 -mcode-object-version=4 -o ocl_blit_object_gfx1012 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 19%] BUILDING bitcode for ocl_blit_object_gfx1030...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1013 -mcode-object-version=4 -o ocl_blit_object_gfx1013 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1030 -mcode-object-version=4 -o ocl_blit_object_gfx1030 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 22%] BUILDING bitcode for ocl_blit_object_gfx1031...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1031 -mcode-object-version=4 -o ocl_blit_object_gfx1031 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 23%] BUILDING bitcode for ocl_blit_object_gfx1033...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1033 -mcode-object-version=4 -o ocl_blit_object_gfx1033 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 24%] BUILDING bitcode for ocl_blit_object_gfx1032...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1032 -mcode-object-version=4 -o ocl_blit_object_gfx1032 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 26%] BUILDING bitcode for ocl_blit_object_gfx1035...
[ 26%] BUILDING bitcode for ocl_blit_object_gfx1034...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1035 -mcode-object-version=4 -o ocl_blit_object_gfx1035 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 26%] BUILDING bitcode for ocl_blit_object_gfx1036...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1034 -mcode-object-version=4 -o ocl_blit_object_gfx1034 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 26%] BUILDING bitcode for ocl_blit_object_gfx1100...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1036 -mcode-object-version=4 -o ocl_blit_object_gfx1036 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1100 -mcode-object-version=4 -o ocl_blit_object_gfx1100 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
make[2]: Leaving directory '/lus/joey/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build'
[ 29%] BUILDING bitcode for ocl_blit_object_gfx1102...
[ 29%] BUILDING bitcode for ocl_blit_object_gfx1103...
[ 29%] BUILDING bitcode for ocl_blit_object_gfx1101...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1102 -mcode-object-version=4 -o ocl_blit_object_gfx1102 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1101 -mcode-object-version=4 -o ocl_blit_object_gfx1101 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/image/blit_src && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx1103 -mcode-object-version=4 -o ocl_blit_object_gfx1103 /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
[ 31%] BUILDING bitcode for kCodeTrapHandlerV2_9...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -x assembler -target amdgcn-amd-amdhsa -mcpu=gfx900 -o kCodeTrapHandlerV2_9.hsaco /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/core/runtime/trap_handler/trap_handler.s
[ 32%] BUILDING bitcode for kCodeTrapHandlerV2_1010...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -x assembler -target amdgcn-amd-amdhsa -mcpu=gfx1010 -o kCodeTrapHandlerV2_1010.hsaco /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/core/runtime/trap_handler/trap_handler.s
[ 33%] BUILDING bitcode for kCodeTrapHandlerV2_10...
[ 33%] BUILDING bitcode for kCodeTrapHandlerV2_11...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -x assembler -target amdgcn-amd-amdhsa -mcpu=gfx1030 -o kCodeTrapHandlerV2_10.hsaco /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/core/runtime/trap_handler/trap_handler.s
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang-16 -x assembler -target amdgcn-amd-amdhsa -mcpu=gfx1100 -o kCodeTrapHandlerV2_11.hsaco /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/core/runtime/trap_handler/trap_handler.s
[ 33%] Built target link_libhsa-runtime64.so.1
[ 33%] Built target link_libhsa-runtime64.so
fatal error: cannot link module '0<E3><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@z<BD><FC><U+0011><U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
fatal error: cannot link module 'P<E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<AA><U+000E><E1><U+0012><U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
1 error generated.
fatal error: make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:209: image/blit_src/ocl_blit_object_gfx803] Error 1
cannot link module 'P<E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<DA>q<FE>B<U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'fatal error: 
cannot link module '0<E3><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@jŜ<F4><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:184: image/blit_src/ocl_blit_object_gfx700] Error 1
fatal error: cannot link module '<80><E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@j<A7>
<E7><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
11 error error generated.
 generated.
fatal error: cannot link module 'P<E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@J<CA><D8>    <U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
fatal error: cannot link module 'P<E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@j<D5><U+0083><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
fatal error: cannot link module 'P<E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@
<U+0019>8B<U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
fatal error: cannot link module '<80><E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@zl\\<U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
fatal error: cannot link module '0<E3><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<CA>h<A1><U+000F><U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
1 error generated.
1 error generated.
1 error generated.
[ 35%] Extracting binary for kCodeTrapHandlerV2_9...
[ 35%] Extracting binary for kCodeTrapHandlerV2_11...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/llvm-objcopy --dump-section=.text=kCodeTrapHandlerV2_9 kCodeTrapHandlerV2_9.hsaco
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/llvm-objcopy --dump-section=.text=kCodeTrapHandlerV2_11 kCodeTrapHandlerV2_11.hsaco
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:219: image/blit_src/ocl_blit_object_gfx810] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:204: image/blit_src/ocl_blit_object_gfx802] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:189: image/blit_src/ocl_blit_object_gfx701] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:229: image/blit_src/ocl_blit_object_gfx902] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:199: image/blit_src/ocl_blit_object_gfx801] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:224: image/blit_src/ocl_blit_object_gfx900] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:194: image/blit_src/ocl_blit_object_gfx702] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:214: image/blit_src/ocl_blit_object_gfx805] Error 1
fatal error: cannot link module 'P<E6><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<FA><U+0015>1<A4><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
[ 37%] Extracting binary for kCodeTrapHandlerV2_10...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/llvm-objcopy --dump-section=.text=kCodeTrapHandlerV2_10 kCodeTrapHandlerV2_10.hsaco
[ 37%] Extracting binary for kCodeTrapHandlerV2_1010...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler && /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/llvm-objcopy --dump-section=.text=kCodeTrapHandlerV2_1010 kCodeTrapHandlerV2_1010.hsaco
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:239: image/blit_src/ocl_blit_object_gfx906] Error 1
fatal error: cannot link module '<80><E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<CA>w
                                                                                           <U+0003><U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
fatal error: cannot link module '<U+0000><EB><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<U+001A><E5><C9><CE><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
1 error generated.
<U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
fatal error: cannot link module '<80><E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@Zgq<8A><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:249: image/blit_src/ocl_blit_object_gfx909] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:254: image/blit_src/ocl_blit_object_gfx90a] Error 1
fatal error: cannot link module '<80><E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<AA>*s<93><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:259: image/blit_src/ocl_blit_object_gfx90c] Error 1
1 error generated.
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:119: image/blit_src/ocl_blit_object_gfx1012] Error 1
<U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
fatal error: fatal error: cannot link module '<80><E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@Z<92>.<9D><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'cannot link module '<D0><EA><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<8A>N<B3>A<U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'

make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:114: image/blit_src/ocl_blit_object_gfx1011] Error 1
11 error error generated generated.
.
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:129: image/blit_src/ocl_blit_object_gfx1030] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:234: image/blit_src/ocl_blit_object_gfx904] Error 1
make[2]: *** [image/blit_src/CMakeFiles/opencl_blit_objects.dir/build.make:244: image/blit_src/ocl_blit_object_gfx908] Error 1
[ 37%] Collating trap handlers...
cd /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler && /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/core/runtime/trap_handler/create_trap_handler_header.sh /scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/build/core/runtime/trap_handler/amd_trap_handler_v2.h kCodeTrapHandlerV2_9 kCodeTrapHandlerV2_1010 kCodeTrapHandlerV2_10 kCodeTrapHandlerV2_11
fatal error: cannot link module '<B0><E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@
ɔ<CC><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'fatal error: 
fatal error: cannot link module '<B0><E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<U+001A><C3>(<U+0006><U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'fatal error: cannot link module '<B0><E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@j<F2><U+0018><99><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
cannot link module '<E0><E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<FA>1
<CD><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'

1 error generated.
1 error generated.
11 error error generated generated.
.
fatal error: cannot link module '@<E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@
VB<88><U+0014><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
fatal error: cannot link module '@<E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<U+001A>#    <U+001F><U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
1 error generated.
1 error generated.
fatal error: cannot link module '@<E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@ʺ<DA><<U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'
fatal error: fatal error: cannot link module '<E0><E5><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@
x<CA>3<U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'cannot link module '@<E8><CA><U+0007><U+0000><U+0000><U+0000><U+0000>@<8A>?<F6>L<U+0015><U+0000><U+0000>ts/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc': linking module flags 'amdgpu_code_object_version': IDs have conflicting values in '/software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/amdgcn/bitcode/opencl.bc' and '/scratch/pawsey0001/cdipietrantonio/rocm5.6.1-build/rocm/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl'

1 error generated.
dayatsin-amd commented 1 year ago

Can you try to update and rebuild your LLVM and device-libs:

https://github.com/RadeonOpenCompute/llvm-project/tree/rocm-5.6.x https://github.com/RadeonOpenCompute/ROCm-Device-Libs/tree/rocm-5.6.x

dipietrantonio commented 1 year ago

HI @dayatsin-amd , LLVM and device-libs are (should be) those of 5.6.1 release because I have downloaded all projects using the repo tool. As you can also see here:

-- The C compiler identification is Clang 16.0.0
-- The CXX compiler identification is Clang 16.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /software/projects/pawsey0001/cdipietrantonio/rocm5.6/rocm-5.6.1rev0/llvm/bin/clang - skipped

Anyway, I will give it another try.

yxsamliu commented 1 year ago

the device libs cmake file contains a check for -Xclang -mcode-object-version=none option (https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/rocm-5.6.x/cmake/OCL.cmake#L36 ). Old clang does not support this option, and will cause this option disabled, then device libs will be compiled with a fixed code object version and may end up showing the issue you encountered when linked with bitcode generated with non-default code object version.

Did you use clang of rocm-5.6.x branch when building device libs?

yxsamliu commented 1 year ago

we have fixed https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/amd-stg-open/cmake/OCL.cmake#L43 so that we unconditionally use -mcode-object-version=none. This is because the option has been added for a long time, there is no need to check its availability. If a compiler does not support this option, it will not be able to compile device libs anyway. Another reason to skip the check is that there is no guarantee that clang is built at the point of this check when device lib is built as an external project of llvm.

Hopefully, this fix will get into next ROCm release.

dipietrantonio commented 1 year ago

Thanks for the update, we will try the new version as soon as possible!

pelahi commented 1 year ago

Hi @yxsamliu I have tried patching the cmake with the appropriate line and now I am no longer getting the original issue I was running into but am now encountering another issue, namely that building the ROCR-Runtime I am getting undefined symbol __llvm_amdgcn_image_load_* like errors (see below)

BUILDING bitcode for ocl_blit_object_gfx700...
cd /scratch/pawsey0001/spack/rocm-build-gcc-nolibc/rocm-5.7.0-gcc/ROCR-Runtime/src/build/image/blit_src && /software/setonix/2023.08/pawsey/software/rocm/gcc/12.2.0/rocm-5.7.0rev1/llvm/bin/clang-17 -O2 -x cl -Xclang -finclude-default-header -cl-denorms-are-zero -cl-std=CL2.0 -target amdgcn-amd-amdhsa -mcpu=gfx700 -mcode-object-version=4 -o ocl_blit_object_gfx700 /scratch/pawsey0001/spack/rocm-build-gcc-nolibc/rocm-5.7.0-gcc/ROCR-Runtime/src/image/blit_src/imageblit_kernels.cl
ld.lld: error: undefined symbol: __llvm_amdgcn_image_load_2darray_v4f32_i32
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image_float)
>>> referenced 9 more times

ld.lld: error: undefined symbol: __llvm_amdgcn_image_load_1darray_v4f32_i32
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image_float)
>>> referenced 9 more times

ld.lld: error: undefined symbol: __llvm_amdgcn_image_load_3d_v4f32_i32
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image_float)
>>> referenced 9 more times

ld.lld: error: undefined symbol: __llvm_amdgcn_image_load_2d_v4f32_i32
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image_float)
>>> referenced 9 more times

ld.lld: error: undefined symbol: __llvm_amdgcn_image_load_1d_v4f32_i32
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image)
>>> referenced by /tmp/imageblit_kernels-55e2a1.o:(read_image_float)
>>> referenced 11 more times

Do you have some idea what the underlying issue might be?

pelahi commented 1 year ago

For completness, the configuration was

cmake -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=<local_path> -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_Fortran_COMPILER=ftn -DCMAKE_CXX_FLAGS=-fuse-ld=lld -DBITCODE_DIR=<pathtollvsm>/llvm/amdgcn/bitcode ..
-- The C compiler identification is Clang 17.0.0
-- The CXX compiler identification is Clang 17.0.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /software/setonix/2023.08/pawsey/software/rocm/gcc/12.2.0/rocm-5.7.0rev1/llvm/bin/clang - 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: /software/setonix/2023.08/pawsey/software/rocm/gcc/12.2.0/rocm-5.7.0rev1/llvm/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
fatal: Not a valid object name origin/HEAD
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Found LibElf: /usr/lib64/libelf.so
-- Performing Test ELF_GETSHDRSTRNDX
-- Performing Test ELF_GETSHDRSTRNDX - Success
-- Checking for module 'libdrm'
--   Found libdrm, version 2.4.111
-- Looking for __NR_memfd_create
-- Looking for __NR_memfd_create - found
-- Performing Test Terminfo_LINKABLE
-- Performing Test Terminfo_LINKABLE - Success
-- Found Terminfo: /usr/lib64/libtinfo.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11")
-- Found zstd: /usr/lib64/libzstd.so
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.9.14")
Using CPACK_DEBIAN_PACKAGE_RELEASE local
RESULT_VARIABLE 0 OUTPUT_VARIABLE:
CPACK_RPM_PACKAGE_RELEASE: local%{?dist}
-- Configuring done
-- Generating done
yxsamliu commented 1 year ago

@b-sumner Did device libs use to have __llvm_amdgcn_image_load_2d_v4f32_i32 ? was it removed in rocm 5.7?

b-sumner commented 1 year ago

Those functions were not removed, but their definitions were moved. It still appears something is not consistent in this build.

yxsamliu commented 1 year ago

rocm 5.7.1 seems not using these functions https://github.com/RadeonOpenCompute/ROCR-Runtime/blob/docs/5.7.1/src/image/blit_src/imageblit_kernels.cl

Is the right branch of rocm used?

pelahi commented 1 year ago

This error is from builds of 5.7.0.

I did try 5.7.1 and got

Running command git clone -b rocm-5.7.1 https://github.com/ROCmSoftwarePlatform/hipRAND.git
Cloning into 'hipRAND'...
fatal: Remote branch rocm-5.7.1 not found in upstream origin
Error running a command: git clone -b rocm-5.7.1 https://github.com/ROCmSoftwarePlatform/hipRAND.git

from the commands

git clone -b rocm-${ROCM_VERSION} https://github.com/ROCmSoftwarePlatform/hipRAND.git

So I assume that from 5.7.1 and onwards there is no hipRAND?

pelahi commented 1 year ago

Aslo, I note that (by ignoring hipRand), I get the same errors in 5.7.1 as 5.7.0. So how can I get a consistent build with 5.7.x?

pelahi commented 1 year ago

Note that since the errors have changed drastically, feel free to close this issue as I will raise another one.

yxsamliu commented 1 year ago

This error is from builds of 5.7.0.

I did try 5.7.1 and got

Running command git clone -b rocm-5.7.1 https://github.com/ROCmSoftwarePlatform/hipRAND.git
Cloning into 'hipRAND'...
fatal: Remote branch rocm-5.7.1 not found in upstream origin
Error running a command: git clone -b rocm-5.7.1 https://github.com/ROCmSoftwarePlatform/hipRAND.git

from the commands

git clone -b rocm-${ROCM_VERSION} https://github.com/ROCmSoftwarePlatform/hipRAND.git

So I assume that from 5.7.1 and onwards there is no hipRAND?

Better raise the issue at hipRand github. Since there is ROCm 6.0 branch, I tend to think it will continue.

BenWibking commented 1 year ago

This error is from builds of 5.7.0.

I did try 5.7.1 and got

Running command git clone -b rocm-5.7.1 https://github.com/ROCmSoftwarePlatform/hipRAND.git
Cloning into 'hipRAND'...
fatal: Remote branch rocm-5.7.1 not found in upstream origin
Error running a command: git clone -b rocm-5.7.1 https://github.com/ROCmSoftwarePlatform/hipRAND.git

from the commands

git clone -b rocm-${ROCM_VERSION} https://github.com/ROCmSoftwarePlatform/hipRAND.git

So I assume that from 5.7.1 and onwards there is no hipRAND?

There are missing/incorrect tags for hipRAND. See https://github.com/ROCmSoftwarePlatform/hipRAND/issues/88 and https://github.com/ROCmSoftwarePlatform/hipRAND/issues/85.

I think the correct branch is this one: https://github.com/ROCmSoftwarePlatform/hipRAND/tree/release/rocm-rel-5.7. However, there's no documentation to be sure of this.

BenWibking commented 1 year ago

Those functions were not removed, but their definitions were moved. It still appears something is not consistent in this build.

Is it possible there are incorrectly-tagged releases for some components?

This appears to be the case for hipRAND (https://github.com/ROCmSoftwarePlatform/hipRAND/issues/85). Because of this, I am concerned this may be the case for other components. If so, that could explain an inconsistent build even if everything was checked out using the manifest file.

ppanchad-amd commented 3 months ago

@dipietrantonio Has your issue been resolved? If so, please close the ticket. Thanks!