ROCm / rpp

AMD ROCm Performance Primitives (RPP) library is a comprehensive high-performance computer vision library for AMD processors with HIP/OpenCL/CPU back-ends.
https://rocm.docs.amd.com/projects/rpp/en/latest/
MIT License
55 stars 40 forks source link

[Issue]: GFX942+ Compile Failure #291

Closed kiritigowda closed 9 months ago

kiritigowda commented 10 months ago

Problem Description

Building with -D BUILD_WITH_AMD_ADVANCE=ON

[ 70%] Building CXX object src/modules/CMakeFiles/modules.dir/hip/kernel/hue.cpp.o
lld: error: undefined hidden symbol: llvm.amdgcn.atomic.inc.i32.p0i32
>>> referenced by /tmp/histogram-gfx941-aebaf1.o:(partial_histogram_pln)
>>> referenced by /tmp/histogram-gfx941-aebaf1.o:(partial_histogram_pln)
>>> referenced by /tmp/histogram-gfx941-aebaf1.o:(partial_histogram_pkd)
>>> referenced 5 more times
clang++: error: amdgcn-link command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:1302: src/modules/CMakeFiles/modules.dir/hip/kernel/histogram.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:918: src/modules/CMakeFiles/modules.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
[ 72%] Building CXX object src/modules/CMakeFiles/modules.dir/hip/kernel/integral.cpp.o
lld: error: undefined hidden symbol: llvm.amdgcn.atomic.inc.i32.p0i32
>>> referenced by /tmp/histogram-gfx941-d9e6b1.o:(partial_histogram_pln)
>>> referenced by /tmp/histogram-gfx941-d9e6b1.o:(partial_histogram_pln)
>>> referenced by /tmp/histogram-gfx941-d9e6b1.o:(partial_histogram_pkd)
>>> referenced 5 more times
clang++: error: amdgcn-link command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/modules/CMakeFiles/modules.dir/build.make:1302: src/modules/CMakeFiles/modules.dir/hip/kernel/histogram.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:918: src/modules/CMakeFiles/modules.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Operating System

ALL

CPU

ALL

GPU

Other

Other

ALL

ROCm Version

ROCm 6.0.0

ROCm Component

rpp

Steps to Reproduce

cmake -D BUILD_WITH_AMD_ADVANCE=ON ../rpp

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

No response

Additional Information

No response

r-abishek commented 9 months ago

@sampath1117 Please run a build-check on MI300 to see if we can replicate

kiritigowda commented 9 months ago

@r-abishek @sampath1117 - requires rocm 6.0+ to reproduce & can be replicated on any machine

r-abishek commented 9 months ago

@kiritigowda PR #295 should fix this

kiritigowda commented 9 months ago

295 - merged to TOT