ecmwf-ifs / field_api

Apache License 2.0
3 stars 8 forks source link

Make GPU offload library linking behaviour configurable #54

Closed awnawab closed 2 months ago

awnawab commented 3 months ago

When linking a single FIELD_API build to multiple libraries, we may want to only selectively enable GPU offload in the downstream target libraries.

This PR enables optional private linking of OpenACC and cuda to libfield_api_dp/sp to prevent FIELD_API from always exporting GPU offload libraries to downstream targets.

(I am on leave so will probably be slow to respond to requested changes, apologies in advance!)

awnawab commented 2 months ago

Closing this as it was superseded by #56.