From 077fe0f7398c4e1b1a45a9f012c634f13d4118ca Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 26 Apr 2021 14:20:14 -0400 Subject: [PATCH] [OpenMP][Documentation] Add FAQ entry for dynamically linked libraries Summary: Add an FAW entry detailing the support for using dynamically linked libraries with OpenMP Offloading --- openmp/docs/SupportAndFAQ.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openmp/docs/SupportAndFAQ.rst b/openmp/docs/SupportAndFAQ.rst index 66a808e..5e938ec 100644 --- a/openmp/docs/SupportAndFAQ.rst +++ b/openmp/docs/SupportAndFAQ.rst @@ -135,3 +135,10 @@ an error like this. Currently, the only solution is to change how the application is built and avoid the use of static libraries. + +Q: Can I use dynamically linked libraries with OpenMP offloading +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Dynamically linked libraries can be only used if there is no device code split +between the library and application. Anything declared on the device inside the +shared library will not be visible to the application when it's linked. -- 2.7.4