Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

dynamic load libnvrtc.so #17858

@leezu

Description

@leezu

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions