Skip to content

[mlir] MLIRNVVMTarget link an Absolute Path Library #114757

@MikaOvO

Description

@MikaOvO

When build mlir with -DMLIR_ENABLE_NVPTXCOMPILER=ON, there will be an absolute path library in the /Path/to/build/install/lib/cmake/mlir/MLIRTargets.cmake. For example:

set_target_properties(MLIRNVVMTarget PROPERTIES
  INTERFACE_LINK_LIBRARIES "MLIRIR;MLIRExecutionEngineUtils;MLIRSupport;MLIRGPUDialect;MLIRTargetLLVM;MLIRNVVMToLLVMIRTranslation;LLVMSupport;/An/absolute/path/libnvptxcompiler_static.a"
)

If downstream project needs use this target, it will probably can not find this library, then fail to build.

We should make this absolute path become a library that downstream project can modify its path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cmakeBuild system in general and CMake in particularmlir

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions