NervanaSystems / ngraph-mxnet

MXNet - nGraph integration
Apache License 2.0
34 stars 3 forks source link

Deal with libiomp5 / libgomp conflict introduced by nGraph #315

Open cconvey opened 6 years ago

cconvey commented 6 years ago

Root of the conflict

Drop-in equivalence (at dynamic linking time) of libgomp.so and libiomp5.so

In practice it's not possible:

Possible solutions

  1. Custom build of libsoxr.so.0 that depends on libiomp5.so instead of libgomp.so
    • I prototyped a hack of this, and it should work.
  2. Modify nGraph's build system to let users specify which OMP implementation to use.
    • Feasible in principle, since nGraph's build system builds most supporting libraries as well.
  3. Binary-level hacking of Ubuntu-supplied libsoxr.so.0 to replace libgomp.so.1 with libiomp5.so.
    • Possible, but an insanely low-level and hack-ish. Not appropriate for public-release software.

Additional notes for implementors