-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for arm64
/ Apple M1
#33
Comments
I am guessing this is due to the need for a specific implementation of the |
Thank you for investigating! In case it is useful, my (very much non-expert) understanding is that the equivalent to asm volatile ("mrs %0, cntvct_el0" : "=r" (_var_)) |
We don't have any #elif defined(__aarch64__)
uint64_t v;
asm volatile ("mrs %0, cntvct_el0" : "=r"(v));
return caml_copy_int64(v);
#else
... |
Fantastic, thank you. We will test today and report our findings! |
Is that the same primitive that mtime exposes? |
Do not hesitate to file a PR if you want afterward !
|
maybe a dune variant to provide the clock implementation could help? One could provide a mtime-based variant, for exotic architectures where it's better supported (which might be no better than landmarks' current coverage). |
Is there anyone still looking at this issue? cc: @grantpassmore |
We've experimented with this fix on: https://github.com/johnyob/landmarks/tree/arm-support. It has been tested with Apple M1 macs. |
The patch looks fine, can you open a PR? Thanks! |
Fixed in #35 |
Thank you for the incredibly useful
landmarks
library! It works flawlessly for us on x86, but we seem to be out of luck for now on our Apple M1s. Is there a nontrivial technical obstruction for supportingarm64
? If there is anything we could do to help, we would be happy to try.The text was updated successfully, but these errors were encountered: