Re: OpenCL Clang/Clover Offline Compilation
Brian Paul <[email protected]>
| Newsgroups | gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <[email protected]> |
On 01/08/2014 11:53 AM, Dorrington, Albert wrote: > I am not sure if this is the appropriate list on which to ask this > question, if not hopefully someone can suggest an alternative. > > Under Linux, I am attempting to perform an offline compile of an OpenCL > kernel example using Clang, and then load that binary using the > clCreateProgramWithBinary() function. > > Unfortunately, while clover is loading the binary, I end up getting a > segmentation fault: > > Program received signal SIGSEGV, Segmentation fault. > > proc (v=..., is=...) at core/module.cpp:50 > > 50 T x; > > I have pasted the source code I am using below, for both the kernel and > the host code. > > I am compiling both with the following commands: > > clang -target r600-unknown-unknown -x cl -S -emit-llvm -mcpu=r600 > kernel.cl -o kernel.clbin > > clang -g -L/usr/local/lib -lOpenCL offline_host.c -o offline_host > > I have LLVM/Clang 3.4RC3 installed and Mesa 10.0.1. > > If anyone has suggestions, or can point me to the appropriate mailing > list or documentation, I’d appreciate it. > > Thanks! I don't know if any of the OpenCL guys are on this list. You might try the mesa-dev list, or file a bug. -Brian