-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
No fastcall attribute in POWER platform #35083
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
FWIW I would be OK with removing this altogether. AFAIK it's only for i386 platforms which we don't really care to optimize at this point |
Okay, so shall i remove it altogether in this PR ? |
Yea let's go ahead and remove it. If you can run the JSON benchmarks after than and post the results would help confirm |
Not sure how to run those JSON benchmarks |
Check this guide: You can use the -b json switch at the end to limit the results to that module |
@@ -108,11 +108,7 @@ typedef uint32_t JSUINT32; | |||
|
|||
#define FASTCALL_MSVC | |||
|
|||
#if !defined __x86_64__ && !defined __aarch64__ | |||
#define FASTCALL_ATTR __attribute__((fastcall)) | |||
#else | |||
#define FASTCALL_ATTR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you can remove this altogether would be preferable. No need for an empty define
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the empty defines also needs lot of cleanup in ultrajsondec.c . Otherwise there will be compilation problems. And also not sure about the fastcall defines under _WIN32 .
looks fine @WillAyd merge when good |
@ayappanec can you remove all occurrences of this macro instead of the empty define? |
JSON_Benchmarks.txt |
@ayappanec can you run vs the master commit, e.g. https://pandas.pydata.org/docs/dev/development/contributing.html#running-the-performance-test-suite, you need |
Looks like hdf5 needs to be installed . I never encountered hdf5 before |
Installed HDF5 but now it fails with llvmlite build.
Looks like the asv benchmark testing needs some pre-requisites which has compilation issues in AIX . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Any update on getting this merged ? |
thanks @ayappanec |
Compiling the development branch of pandas fail in AIX.
pandas/_libs/src/ujson/lib/ultrajsonenc.c:397:1: error: ‘fastcall’ attribute directive ignored [-Werror=attributes]
Buffer_AppendShortHexUnchecked(char *outputOffset, unsigned short value) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/src/ujson/lib/ultrajsonenc.c:726:59: error: ‘fastcall’ attribute directive ignored [-Werror=attributes]
char *end) {
^~~~
cc1: all warnings being treated as errors
The fastcall attribute is not available in POWER platform also.