[Mesa-dev] EXTERNAL: Re: OpenCL Clang/Clover Offline Compilation issue
Francisco Jerez
currojerez at riseup.net
Wed Jan 15 09:09:50 PST 2014
"Dorrington, Albert" <albert.dorrington at lmco.com> writes:
>> -----Original Message-----
>> From: Francisco Jerez [mailto:currojerez at riseup.net]
>> Sent: Wednesday, January 15, 2014 10:35 AM
>>
>> Yeah, well, it's up to the implementation how device-specific the binaries
>> are. On r600 they're roughly half-way through the compilation process. If
>> that's not satisfactory to you, you could try to get clang to generate binaries
>> directly in the clover format (or even better, get clover to understand ELF
>> object files instead of the non-standard format we use now for serializing
>> module objects) and get rid of the two-stage compilation process. That way
>> clover will have access to the actual GPU binaries.
>
> I think getting Clover to understand the ELF format would be useful, and conform to the OpenCL spec.
> Having it be able to output the ELF format from clGetProgramInfo() via the CL_PROGRAM_BINARIES would be something that would impact the Mesa drivers significantly; Since it would require moving the final binary generation from the drivers into the state tracker.
>
Maybe, but the state tracker should have enough information to do that
already (e.g. through the target description in
PIPE_COMPUTE_CAP_IR_TARGET), and it would be preferable to mixing
device-specific IR and hardware assembly depending on how the program
was specified.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140115/6f0de47e/attachment.pgp>
More information about the mesa-dev
mailing list