Skip to content

Conversation

Hugobros3
Copy link
Contributor

I've been doing this by hand (editing CMakeLists.txt) for years, but I think we need a proper way to do this: disable backends at will, easily. For various reasons (LLVM linking conflicts, old broken installations for some dependency, buggy backend, ...) this is often required and thus needs to be facilitated.

This arguably also addresses the motivation for #51 by only attempting to find_package if a given backend is enabled.

Currently this defaults to try to enable all backends, before looking for their dependencies.

Alternatively we could:

  • Fail if a dependency is not meant but the backend is enabled
  • Do find_package first and remove the option if the dependencies aren't met
  • Forcefully disable backends when depdencies aren't met (with set(... FORCE))

@Hugobros3 Hugobros3 requested review from richardmembarth, PearCoding and stlemme and removed request for richardmembarth, PearCoding and stlemme July 23, 2024 09:31
target_link_libraries(runtime_pal PRIVATE runtime_base pal::pal)
list(APPEND RUNTIME_PLATFORMS runtime_pal)
option(AnyDSL_Runtime_ENABLE_PAL "Support for running kernels through AMD's PAL interface" ON)
if(AnyDSL_Runtime_ENABLE_PAL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indentation ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants