Open IliaGrigoriev opened 3 years ago
Stack isn't the issue. Looks like GHC disables SMP (symmetric multiprocessor) on older versions of ARM: https://gitlab.haskell.org/ghc/ghc/-/blob/master/hadrian/src/Oracles/Flag.hs#L69
Looks like you need a minimum of ARMv7. Can you confirm what ARM version you are on?
Hi. First of all, thank you very much for you reply. Here is the output from cat /proc/cpuinfo
:
processor : 0
model name : ARMv8 Processor rev 0 (v8l)
BogoMIPS : 62.50
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x4e
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x004
CPU revision : 0
MTS version : 45309758
processor : 1
model name : ARMv8 Processor rev 0 (v8l)
BogoMIPS : 62.50
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x4e
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x004
CPU revision : 0
MTS version : 45309758
processor : 2
model name : ARMv8 Processor rev 0 (v8l)
BogoMIPS : 62.50
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x4e
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x004
CPU revision : 0
MTS version : 45309758
processor : 3
model name : ARMv8 Processor rev 0 (v8l)
BogoMIPS : 62.50
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x4e
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x004
CPU revision : 0
MTS version : 45309758
processor : 4
model name : ARMv8 Processor rev 0 (v8l)
BogoMIPS : 62.50
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x4e
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x004
CPU revision : 0
MTS version : 45309758
processor : 5
model name : ARMv8 Processor rev 0 (v8l)
BogoMIPS : 62.50
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x4e
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x004
CPU revision : 0
MTS version : 45309758
processor : 6
model name : ARMv8 Processor rev 0 (v8l)
BogoMIPS : 62.50
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x4e
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x004
CPU revision : 0
MTS version : 45309758
processor : 7
model name : ARMv8 Processor rev 0 (v8l)
BogoMIPS : 62.50
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
CPU implementer : 0x4e
CPU architecture: 8
CPU variant : 0x0
CPU part : 0x004
CPU revision : 0
MTS version : 45309758
Best regards, Ilia
./stack-2.1.1-linux-aarch64/stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2
uname -a
Linux ilia 4.9.140-tegra #1 SMP PREEMPT Mon Dec 9 22:52:02 PST 2019 aarch64 aarch64 aarch64 GNU/Linux
Can you try just removing the -N
option from the rts-options?
Bump on this @IliaGrigoriev
Hi @chessai,
sorry, there has been an overload of additional tasks since January this year. I should be able to come back to the task, which required duckling setup on ARM in the mid April this year.
Best wishes, Ilia
So how can we run Duckling on aarm64 now? Already tried also with docker
You could use the following command to remove -N option, as workaround
find . -type f -name "*.cabal" -exec sed -i 's/-with-rtsopts=-N//g' {} +
After building Duckling v0.1.6.1 on Jetson Xavier 8GB, the resulting executable is now runnable on Xavier as well as on Nano.
Dear Facebook Team,
I have the following problem when trying to run the successfully built duckling binary on ARM based architecture on SD Card of NVIDIA Xavier, Ubuntu 18.04, Stack version 1.5.1 aarch64:
I get the following output:
I get the same output, when using newer version of stack (2.1.1), the lines inside duckling folder are:
./stack-2.1.1-linux-aarch64/stack build ../
and then:
./stack-2.1.1-linux-aarch64/stack exec duckling-example-exe
What am I doing wrong?
Many thanks in advance.
Best regards, Ilia