[Openmp-commits] [openmp] 077fe0f - [OpenMP][Documentation] Add FAQ entry for dynamically linked libraries

via Openmp-commits openmp-commits at lists.llvm.org
Mon Apr 26 11:25:22 PDT 2021


Author: Joseph Huber
Date: 2021-04-26T14:21:17-04:00
New Revision: 077fe0f7398c4e1b1a45a9f012c634f13d4118ca

URL: https://github.com/llvm/llvm-project/commit/077fe0f7398c4e1b1a45a9f012c634f13d4118ca
DIFF: https://github.com/llvm/llvm-project/commit/077fe0f7398c4e1b1a45a9f012c634f13d4118ca.diff

LOG: [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

Added: 
    

Modified: 
    openmp/docs/SupportAndFAQ.rst

Removed: 
    


################################################################################
diff  --git a/openmp/docs/SupportAndFAQ.rst b/openmp/docs/SupportAndFAQ.rst
index 66a808ef2fa8..5e938ecaac76 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.


        


More information about the Openmp-commits mailing list