-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Remove C11 requirement for tests and ensure qemu is installed in the RISCV64 CI job #5496
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
Conversation
|
Maybe instead of adding -std=c11 it should be -std=gnu11? or Add this? -D_POSIX_C_SOURCE=199309L |
|
Guess I'll go with the define - still need to check if we should be ending up in that section of common.h at all. Do you happen to know if RISCV64 has a (standard, non-extension) equivalent to x86 "rdtsc" - rdtime ? |
|
RISC-V has |
|
|
|
Not sure if the define needs to be higher? |
|
Personally I think |
|
It's a can of worms as the |
|
(BTW the whole problem comes about through the fallback path for when there is no "RPCC" procedure defined in the architecture-specific header - this is a helper function probably dating back to GotoBLAS to allow timing of individual level3 drivers. That's why I asked about rdcycle et al., but I'm not even entirely sure building with -DTIMING does anything useful) |
In practice,
|
|
Well, I can't really force anyone to use a "reasonable" compiler, given that some may not be in a position to install their own. As long as the only requirement for C11 lies in convenience of local variable declaration and slightly better dependency checking, I don't think it should be mandatory for the end user IMHO. |
Sure, no opinion from me on that one either way, just wanted to point out that it works fine for CPython, NumPy et al. |
Yip, these are just set in I had hopes we could start to introduce more elaborate C++ tests, but if we can't even guarantee C11 that's going to be tricky 😿 |
|
well, "tests" is part of the normal build process of the library so an error there will keep (many) people from successfully installing |
As I said, it wasn't random, I had the intention of following up and improving testing further using a modern test framework given I was working on improving the testing around bgemm at the time if I recall. Though I can understand the confusion, there are several different test variants in the codebase. I acknowledge that tests are part of the default build process though, and I should've added |
No description provided.