HIPIFY icon indicating copy to clipboard operation
HIPIFY copied to clipboard

[HIPIFY][Issue] ERROR when build HIPIFY using Rocm's LLVM

Open Lookforworld opened this issue 1 year ago • 1 comments

Problem Description

When I build HIPIFY using rocm6.1.1, I set the LLVM's path point to the '/opt/rocm-6.1.1/lib/llvm', but throw an error: " Could not find a package configuration file provided by "Clang" with any of the following names: ClangConfig.cmake clang-config.cmake " When i build the llvm myself, the file 'ClangConfig.cmake' is in the 'lib/cmake/clang/', but when i using rocm's llvm, the path 'opt/rocm/llvm/lib/cmake' no such file.

What should I do?

Operating System

Ubuntu 22.04.4 LTS

CPU

i5

GPU

AMD Radeon RX 7900 XTX

ROCm Version

ROCm 6.1.0

ROCm Component

ROCm

Steps to Reproduce

No response

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

No response

Additional Information

No response

Lookforworld avatar May 13 '24 02:05 Lookforworld

HI @Lookforworld, Could you please provide the full log of hipify-clang's CMake and Make command lines?

emankov avatar May 23 '24 16:05 emankov

@Lookforworld Do you still need assistance with this issue? If not, please close the ticket. Thanks!

ppanchad-amd avatar Aug 10 '24 17:08 ppanchad-amd

Most likely, the path to LLVM was specified incorrectly. Based on the info provided in the ticket and HIPIFY usage documentation, clang should be specified differently, for instance:

--clang-resource-directory=/opt/rocm-6.1.1/lib/clang/18

So, closing this ticket as not a bug.

emankov avatar Sep 10 '24 12:09 emankov