Open markowkes opened 2 years ago
That's interesting. This is a standard binary from https://julialang.org/downloads/ ?
Yes, it's macOS ARM (M-series Processor) version 1.8.1. I see that 1.8.2 has now been released.
On Sep 30, 2022, 4:21 PM -0400, Christopher Rackauckas @.***>, wrote:
External Sender
That's interesting. This is a standard binary from https://julialang.org/downloads/https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjulialang.org%2Fdownloads%2F&data=05%7C01%7Cmark.owkes%40montana.edu%7C282a2f44ee5d4722825a08daa32153ac%7C324aa97a03a644fc91e43846fbced113%7C0%7C0%7C638001660795311700%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=j1gEEDuSJLIoeQLbn%2F7r1m%2BylTl4jIeCPTlmSns9cVU%3D&reserved=0 ?
— Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSciML%2FDifferentialEquations.jl%2Fissues%2F905%23issuecomment-1263987160&data=05%7C01%7Cmark.owkes%40montana.edu%7C282a2f44ee5d4722825a08daa32153ac%7C324aa97a03a644fc91e43846fbced113%7C0%7C0%7C638001660795311700%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=txaHPm0Ypq3UnLBari9Dmv5Og5m2xkno%2FXeCuBGSwiA%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAEC6XOEUZM6LIPOSRPEGYFTWA5DTVANCNFSM6AAAAAAQZ3CDCY&data=05%7C01%7Cmark.owkes%40montana.edu%7C282a2f44ee5d4722825a08daa32153ac%7C324aa97a03a644fc91e43846fbced113%7C0%7C0%7C638001660795311700%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=j6EUa3ynYIUCOr1RCfFKhDVUVmFWgTiy3sULPB3AtwU%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
Okay interesting, I would've only expected this kind of error if someone was using an incorrect Linux distro build, like apt-get julia
. If you're using the binary from exactly those links, it shouldn't be happening. @chriselrod you have an M1 right? Can you confirm?
As a workaround, try prob = ODEProblem{true, SciMLBase.FullSpecialize}(lorenz!,u0,tspan)
.
At least on 1.8.2 on an empty environment it works fine for me. Could you try on 1.8.2/an empty environment ?
The problem was that it was run in a debugger.
Running the following code through the debugger in VS Code
I haven't tried that, but it probably fails on all architectures and OSes.
Outside of a debugger, it runs just fine (and very quickly) on my M1.
Okay. Well, for the debugger just use the FullSpecialize form then. Other than that, it sounds like this is a debugger issue.
I think we can solve this in a nicer way if we can say "and if not in the debugging environment" in some way without depending on the debugger. It would just go right here:
https://github.com/SciML/DiffEqBase.jl/blob/master/src/solve.jl#L978
@pfitzseb how would we do this?
This should just be fixed in JuliaInterpreter instead of downstream having to work around it. Does this reproduce on non-ARM archs?
If JuliaInterpreter doesn't have a solution in a week, then we should work around it. Is there a solution coming?
I cannot reproduce simple llvmcall
errors on ARM or x64 when using @interpret
.
Just wanted to chime in to say that I have gotten this error on M1, v1.8.2 in VSCode debugger. Julia installed via home-brew.
Well Homebrew is a broken installation IIRC. Use the binaries from https://julialang.org/ and see if it still happens.
Homebrew is actually quite good. They ship with our patches etc. But testing with the official binaries might be helpful
Summary - Running the following code through the debugger in VS Code fails with
Error Exception: `llvmcall` must be compiled to be called
MWE -
Details - This code solves example 2 from the documentation using both an RHS that allocates
lorenz()
and another that uses in-place updatinglorenz!()
.The in-place updating version fails when run with the debugger in VS Code with the following error
error.txt VerisonInfo.txt