Skip to content

HIP build adds non-existent include path for hipfft #1636

@kostrzewa

Description

@kostrzewa

In

https://github.com/lattice/quda/blame/914b462d802e515eb20b7313f2cd9d0b1264b8f4/lib/targets/hip/target_hip.cmake#L135

the path

target_include_directories(quda PUBLIC ${ROCM_PATH}/hipfft/include)

is added to the include directories.

While QUDA builds fine, configuring another code linking against QUDA using CMake will fail like so:

CMake Error in src/lib/CMakeLists.txt:
  Imported target "QUDA::quda" includes non-existent path

    "/opt/rocm-6.3.4/hipfft/include"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

This may be a ROCm version issue (6.3.4 and 6.4.4 are the latest we can use on LUMI-G) but at least for those two versions, the correct path is ${ROCM_PATH}/include/hipfft

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions