ROCm / HIPIFY

HIPIFY: Convert CUDA to Portable C++ Code
MIT License
437 stars 69 forks source link

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

Open Lookforworld opened 1 month ago

Lookforworld commented 1 month ago

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

emankov commented 1 month ago

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