Open luyatshimbalanga opened 2 months ago
What exactly do you mean by "HIPcc option"? How exactly do you invoke CMake? What version of ROCm are you using?
Adding -DOIDN_DEVICE_HIP_COMPILER=%{_bindir}/hipcc \
in supplement to -DOIDN_DEVICE_HIP=ON \
running on ROCm 6.0
You shouldn't manually set OIDN_DEVICE_HIP_COMPILER
. The ROCm path should be automatically detected. It isn't? If it's not detected, you should rather set ROCM_PATH
instead. In any case, ROCm's clang++
should be used (which should be detected automatically) instead of hipcc
.
Thanks for the pointer. After setting ROCM_PATH
and had to manually apply OIDN_DEVICE_HIP_COMPILER
to use clang++-17
(version 17 on Fedora which use version 18 by default), the build failed at the following line:
/builddir/build/BUILD/oidn-2.3.0-beta/devices/hip/ck_conv_wmma.cpp
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
clang++-17: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1' [-Wunused-command-line-argument]
clang++-17: warning: argument unused during compilation: '-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1' [-Wunused-command-line-argument]
error: option 'cf-protection=return' cannot be specified on this target
error: option 'cf-protection=branch' cannot be specified on this target
2 errors generated when compiling for gfx1030.
It looks like the failure occurred for gfx1030 line. I include the build.log for reference.
Why did you have to set OIDN_DEVICE_HIP_COMPILER
? This isn't necessary with a regular installation of ROCm (tested with versions between 5.5.0 and 6.1.0). Also, you set it to /usr/bin/clang++-17
, which seems to be the system Clang instead of ROCm's own Clang. That won't work.
Please follow the ROCm install instructions at https://rocm.docs.amd.com/projects/install-on-linux/en/latest/ Currently this is the only supported ROCm installation method by OIDN.
When using HIPcc option to build OIDN, failure happened from the log extract:
Here is the system used for the test
Hardware Information:
Software Information: