Describe the bug
mix pelemay.bench occurs an error on the host of Nerves
To Reproduce
Steps to reproduce the behavior:
mix new np_sample
Install Pelemay 0.0.11 in mix.exs and mix deps.get
Use Pelemay in the source code
defmodule NpSample do
require Pelemay
import Pelemay
defpelemay do
def map_mult_2(list) do
list |> Enum.map(& &1 * 2)
end
end
def hello do
:world
end
end
export MIX_TARGET=rpi3
mix pelemay.bench NpSample
see error:
** (UndefinedFunctionError) function PelemayNifElixirNpSample.bench/0 is undefined (module PelemayNifElixirNpSample is not available)
(np_sample 0.1.0) PelemayNifElixirNpSample.bench()
(stdlib 3.12) erl_eval.erl:680: :erl_eval.do_apply/6
(stdlib 3.12) erl_eval.erl:888: :erl_eval.expr_list/6
(stdlib 3.12) erl_eval.erl:411: :erl_eval.expr/5
(elixir 1.10.0) lib/code.ex:332: Code.eval_string_with_error_handling/3
(elixir 1.10.0) lib/enum.ex:783: Enum."-each/2-lists^foreach/1-0-"/2
Expected behavior
Run a benchmark
Screenshots
None
Desktop (please complete the following information):
Describe the bug mix pelemay.bench occurs an error on the host of Nerves
To Reproduce Steps to reproduce the behavior:
mix new np_sample
mix.exs
andmix deps.get
export MIX_TARGET=rpi3
mix pelemay.bench NpSample
Expected behavior Run a benchmark
Screenshots None
Desktop (please complete the following information):
Additional context None.