jeudi 22 mars 2018

Is it a good idea to link statically to openmp

I am building a shared library on a linux system which is intended to be used in a project that will be deployed in a Docker on a server. This shared library uses openmp. I am therefore wondering if it is better (or more portable) to have

  1. openmp linked statically to my shared library
  2. I should install gcc properly in the Docker in order to have openmp found
  3. Distribute the .so of openmp together with my library

If option 1 is the best, can someone provide the right way to do this with cmake?

Aucun commentaire:

Enregistrer un commentaire