This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Refactor CMake files related to `PluginInterface` in `plugins-nextgen`
ClosedPublic

Authored by tianshilei1992 on Dec 5 2022, 2:20 PM.

Diff Detail

Event Timeline

tianshilei1992 created this revision.Dec 5 2022, 2:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 5 2022, 2:20 PM
tianshilei1992 requested review of this revision.Dec 5 2022, 2:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 5 2022, 2:20 PM
tianshilei1992 edited the summary of this revision. (Show Details)Dec 5 2022, 3:00 PM
jhuber6 added inline comments.Dec 5 2022, 3:02 PM
openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt
15

Should these be tied to the target rather than global?

tianshilei1992 marked an inline comment as done.Dec 5 2022, 3:15 PM
jhuber6 accepted this revision.Dec 5 2022, 3:32 PM
This revision is now accepted and ready to land.Dec 5 2022, 3:32 PM
lebedev.ri reopened this revision.Dec 5 2022, 4:56 PM
lebedev.ri added a subscriber: lebedev.ri.

I've reverted this since it broke cmake regeneration for me

CMake Error: install(EXPORT "LLVMExports" ...) includes target "omptarget.rtl.cuda.nextgen" which requires target "PluginInterface" that is not in any export set.
CMake Error: install(EXPORT "LLVMExports" ...) includes target "omptarget.rtl.x86_64.nextgen" which requires target "PluginInterface" that is not in any export set.
This revision is now accepted and ready to land.Dec 5 2022, 4:56 PM

I've reverted this since it broke cmake regeneration for me

CMake Error: install(EXPORT "LLVMExports" ...) includes target "omptarget.rtl.cuda.nextgen" which requires target "PluginInterface" that is not in any export set.
CMake Error: install(EXPORT "LLVMExports" ...) includes target "omptarget.rtl.x86_64.nextgen" which requires target "PluginInterface" that is not in any export set.

Thanks. Will fix it.

fix configure error

This revision is now accepted and ready to land.Dec 6 2022, 9:49 AM

gave up using add_llvm_library

tianshilei1992 requested review of this revision.Dec 6 2022, 12:56 PM
tianshilei1992 planned changes to this revision.
tianshilei1992 retitled this revision from [OpenMP] Use `add_llvm_library` to build the target `PluginInterface` in `plugins-nextgen` to [OpenMP] Refactor CMake files related to `PluginInterface` in `plugins-nextgen`.
tianshilei1992 edited the summary of this revision. (Show Details)
This comment was removed by tianshilei1992.
tianshilei1992 requested review of this revision.Dec 6 2022, 1:06 PM

Did you succeed in reproducing the problem?

Did you succeed in reproducing the problem?

Yes, and the updated version should fix the problem on your side. Can you try it locally to see if the problem is gone?

jhuber6 accepted this revision.Dec 6 2022, 1:54 PM
This revision is now accepted and ready to land.Dec 6 2022, 1:54 PM

Did you succeed in reproducing the problem?

Yes, and the updated version should fix the problem on your side. Can you try it locally to see if the problem is gone?

If you are sure that you've reproduced the problem and then it got fixed, then please feel free to go ahead.