Skip to content

Commit

Permalink
chore(exla): upgrade NIFs (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente authored Jul 11, 2024
1 parent 48d6d3d commit 6fff76f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion exla/c_src/exla/exla.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,16 @@ static int load(ErlNifEnv* env, void** priv, ERL_NIF_TERM load_info) {
return 0;
}

static int upgrade(ErlNifEnv* env, void** priv_data, void** old_priv_data, ERL_NIF_TERM load_info) {
// Silence "unused var" warnings.
(void)(env);
(void)(priv_data);
(void)(old_priv_data);
(void)(load_info);

return 0;
}

// MLIR Functions

ERL_NIF_TERM type_parsing_error(ErlNifEnv* env, std::string type_string) {
Expand Down Expand Up @@ -939,4 +949,4 @@ static ErlNifFunc exla_funcs[] = {
{"serialize_executable", 1, serialize_executable},
{"deserialize_executable", 2, deserialize_executable}};

ERL_NIF_INIT(Elixir.EXLA.NIF, exla_funcs, &load, NULL, NULL, NULL);
ERL_NIF_INIT(Elixir.EXLA.NIF, exla_funcs, &load, NULL, &upgrade, NULL);

0 comments on commit 6fff76f

Please sign in to comment.