-
Notifications
You must be signed in to change notification settings - Fork 6.8k
implement a c++ operator using other outside functions in 'so' file #17539
Comments
How can we insert a pre-define function to dmlc-core? |
@a550461053 are you using the c++ custom operator? if yes, you need to use the mx.library.load(*.so) api to have your .so file dynamically loaded. |
No, I use the c++ operator in mxnet backend according to . Because I have implement a operator and I need to reuse mshadow op. |
[@mxnet-label-bot add custom] |
Hi @a550461053 are you able to resolve the problem based on the discussion in #17486 (comment) |
I implement a mxnet backend operator and use 'dlopen' to load 'so' file in 'xxx-inl.h' first forward function. It's ok. |
This new problem has been found: |
When I write a c++ operator, I want to use functions of my 'so' file. I have add
-L /usr/lib -lmy_so_file -ldl
to g++, nvcc line of 'config.mk'. But when I build mxnet, got errorundefined reference to xxx_function
. The 'xxx_function' is added in xxx-inl.h. And the 'so' file test right independently.The text was updated successfully, but these errors were encountered: