-
Notifications
You must be signed in to change notification settings - Fork 34
Description
Hello everyone. When I was running the elixir nx demo in orin nano, I encountered this error and don't know how to solve it。
10:58:06.377 [error] Process #PID<0.220.0> raised an exception
** (RuntimeError) Failed to load NIF library.
Follow the steps in the :exla README Troubleshooting section for more information.
:load_failed
Failed to load NIF library /home/uni/cuda_demo/_build/dev/lib/exla/priv/libexla: '/home/uni/cuda_demo/_build/dev/lib/exla/priv/xla_extension/lib/libxla_extension.so: undefined symbol: cudnnBackendPopulateCudaGraph, version libcudnn_graph.so.9'
(exla 0.10.0) lib/exla/nif.ex:13: EXLA.NIF.__on_load__/0
(kernel 10.5) code_server.erl:1391: anonymous fn/1 in :code_server.schedule_on_load/4
10:58:06.382 [notice] Application exla exited: EXLA.Application.start(:normal, []) returned an error: shutdown: failed to start child: EXLA.Logger
** (EXIT) an exception was raised:
** (UndefinedFunctionError) function EXLA.NIF.start_log_sink/1 is undefined (module EXLA.NIF is not available)
(exla 0.10.0) EXLA.NIF.start_log_sink(#PID<0.219.0>)
(exla 0.10.0) lib/exla/logger.ex:12: EXLA.Logger.init/1
(stdlib 7.2) gen_server.erl:2276: :gen_server.init_it/2
(stdlib 7.2) gen_server.erl:2236: :gen_server.init_it/6
(stdlib 7.2) proc_lib.erl:333: :proc_lib.init_p_do_apply/3
10:58:06.421 [notice] Application nimble_pool exited: :stopped
10:58:06.381 [warning] The on_load function for module Elixir.EXLA.NIF returned:
{%RuntimeError{
message: "Failed to load NIF library.\nFollow the steps in the :exla README Troubleshooting section for more information.\n\n:load_failed\nFailed to load NIF library /home/uni/cuda_demo/_build/dev/lib/exla/priv/libexla: '/home/uni/cuda_demo/_build/dev/lib/exla/priv/xla_extension/lib/libxla_extension.so: undefined symbol: cudnnBackendPopulateCudaGraph, version libcudnn_graph.so.9'\n"
},
[{EXLA.NIF, :on_load, 0, [file: ~c"lib/exla/nif.ex", line: 13, ...]}, ...]}