leezu opened a new issue #17858: dynamic load libnvrtc.so URL: https://github.com/apache/incubator-mxnet/issues/17858 ## Description Compiling MXNet with `nvrtc` support dynamically links `libcuda.so`. However, `libcuda.so` is part of the cuda driver and not typically available on cpu machines. This means, on cpu machines `libmxnet.so` will have missing dependencies and can't be loaded. Unfortunately, parts of MXNet compilation require to `dlopen(libmxnet.so)`. In particular `OpWrapperGenerator.py` for the cpp package. This breaks compiling mxnet with nvrtc + cpp-package on cpu machines (as used by our CI). As a workaround, the stub driver can be added to `LD_LIBRARY_PATH`. A better solution may be to `dlopen` libnvrtc and thereby drop the dependency on `libcuda.so`. CC: @ptrendx ## References - https://github.com/pytorch/pytorch/issues/3395 - https://github.com/NervanaSystems/ngraph/issues/765
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
