-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No appropriate factory for type v #463
Comments
I'm getting the same error with the example in README struct World
{
World(const std::string& message = "default hello") : msg(message){}
World(jlcxx::cxxint_t) : msg("NumberedWorld") {}
void set(const std::string& msg) { this->msg = msg; }
const std::string& greet() const { return msg; }
std::string msg;
~World() { std::cout << "Destroying World with message " << msg << std::endl; }
};
JLCXX_MODULE reactant_module_ifrt(jlcxx::Module& mod) {
mod.add_type<World>("World");
} some context: due to some symbol conflicts between XLA's LLVM and Julia's LLVM, we only export a list of symbols. i think that CxxWrap just needs access to the declared |
This comment was marked as outdated.
This comment was marked as outdated.
So after a lot of tries, i can reproduce the error with only this line of code:
jlcxx::create_if_not_exists<void>(); |
I'm trying to use CxxWrap to wrap some C++ code from XLA, and i'm getting the following error:
The code I'm trying to wrap is the class
DType
in here https://github.com/openxla/xla/blob/main/xla/python/ifrt/dtype.hThe class is actually quite simple. No parents, no virtual methods, ...
I have no problem wrapping the
DType::Kind
enum, but when I registerDType
like thismod.add_type<ifrt::DType>("DType");
I start getting the error.
I'm using CxxWrap v0.16.0 and libcxxwrap_julia v0.13.3
The text was updated successfully, but these errors were encountered: