-
Notifications
You must be signed in to change notification settings - Fork 713
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
{lib}[GCC/8.3.0 and gcccuda/2019b] pocl v1.4 #9593
{lib}[GCC/8.3.0 and gcccuda/2019b] pocl v1.4 #9593
Conversation
….1.243.eb and patches: pocl-1.4_remove-c11-std.patch
The patch fixes the error:
https://bugs.freedesktop.org/show_bug.cgi?id=68504 talks about this bug. Other option is to replace |
Test report by @branfosj |
@branfosj You should be able to do that via toolchainopts = {'cstd': 'gnu++11'} I think that's better than adding a patch file that we'll need to maintain... |
Sadly we are battling some hard-coding. By adding |
Test report by @branfosj |
Test report by @branfosj |
OK, I've done some more testing. An alternative patch is: diff -aur pocl-1.4.orig/include/CL/cl_platform.h pocl-1.4/include/CL/cl_platform.h
--- pocl-1.4.orig/include/CL/cl_platform.h 2020-01-03 09:55:56.986465000 +0000
+++ pocl-1.4/include/CL/cl_platform.h 2020-01-03 09:59:18.058173021 +0000
@@ -356,6 +356,8 @@
/* Define basic vector types */
#if defined( __VEC__ )
#include <altivec.h> /* may be omitted depending on compiler. AltiVec spec provides no way to detect whether the header is required. */
+ #undef bool
+ #undef vector
typedef __vector unsigned char __cl_uchar16;
typedef __vector signed char __cl_char16;
typedef __vector unsigned short __cl_ushort8; Using this does also not involve setting |
Also, upstream bug report: pocl/pocl#800 |
Yeah, let's go with that... |
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
Test report by @boegel |
Test report by @branfosj |
Test report by @branfosj |
…asyconfigs into 20191231095302_new_pr_pocl14
Test report by @boegel |
Test report by @boegel |
Going in, thanks @branfosj! |
(created using
eb --new-pr
)requires:
Note that there is an issue to solve over CUDA dependencies - that I've detailed in #9592.