parsec icon indicating copy to clipboard operation
parsec copied to clipboard

Provide CMake target for accelerator support

Open devreal opened this issue 2 years ago • 1 comments

Description

Software depending on PaRSEC may want to check whether the correct accelerator component has been enabled.

Describe the solution you'd like

PaRSEC could provide PaRSEC::cuda and PaRSEC::hip respectively so that dependents like TTG can check for it.

devreal avatar Sep 01 '23 15:09 devreal

I think the 'proper' CMake way to do that is to expose CUDA, HIP, and other features as COMPONENTS for the PaRSEC package, and the user should use

find_package(PaRSEC COMPONENTS HIP CUDA REQUIRED)

I'm not sure what it means to have a PaRSEC::cuda target, because this target would just be an alias to PaRSEC::parsec?

therault avatar Sep 01 '23 16:09 therault