Skip to content
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

libcoprthr_opencl: OpenCL specific compiler flags interupt build and crash in elfcl routines #21

Open
sctincman opened this issue Jun 27, 2014 · 1 comment

Comments

@sctincman
Copy link

If an application passes in OpenCL specific compiler flags when using libcoprthr_opencl (such as "-cl-strict-aliasing" or any of the ones listed here https://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clBuildProgram.html), these will be passed straight to gcc/g++, which will throw an "unrecognized option" error and not output the needed program.

This seems to result in an empty elf file that causes elfcl_write to signal SIGABRT from malloc (at least from my cursory backtraces and stracing).

@browndeer
Copy link
Owner

Thanks. Fortunately there is a place where flags are blocked. I believe this can be addressed at that point.

Sent via BlackBerry by AT&T

-----Original Message-----
From: sctincman notifications@github.com
Date: Fri, 27 Jun 2014 12:40:38
To: browndeer/coprthrcoprthr@noreply.github.com
Reply-To: browndeer/coprthr reply@reply.github.com
Subject: [coprthr] libcoprthr_opencl: OpenCL specific compiler flags interupt
build and crash in elfcl routines (#21)

If an application passes in OpenCL specific compiler flags when using libcoprthr_opencl (such as "-cl-strict-aliasing" or any of the ones listed here https://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/clBuildProgram.html), these will be passed straight to gcc/g++, which will throw an "unrecognized option" error and not output the needed program.

This seems to result in an empty elf file that causes elfcl_write to signal SIGABRT from malloc (at least from my cursory backtraces and stracing).


Reply to this email directly or view it on GitHub:
#21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants