Yes, apparently i had cmake linking with gcc instead of llvm-3.3. I fixed
that and now it builds. I am running it on an IVB and i get this error when
i try to execute a binary compiled with the generated libcl and libgbe
(which works fine if i use NVidia OpenCL)

Platform: Experiment Intel Gen OCL Driver[Version: [OpenCL 1.1 beignet 0.3]
Can't find X server!
Trying to open directly...Device open failed

and exits. Any pointers? I did notice that the cmake configuration has a
GBE* variable, which is unset, and i could not find the GBE sources to
download and build separately.

-Rashid


On Wed, Dec 4, 2013 at 2:59 PM, Robert Jobbagy <[email protected]>wrote:

> I updated the opencl 1.2 branch to head ,clean project and rebuild , but I
> gave same error if I used different version llvm and clang
>
> Anyway cmake doesnt works with llvm-3.2 just 3.3
>
> But if I replaced with clang 3.3, it works fine :)
>
>
>
>
> 2013/12/3 Zou, Nanhai <[email protected]>
>
>>  Still seems to be something wrong with your clang build.
>>
>> Can you check your clang version is up to date?
>>
>>
>>
>> Thanks
>>
>> Zou Nanhai
>>
>>
>>
>> *From:* Rashid Kaleem [mailto:[email protected]]
>> *Sent:* Tuesday, December 03, 2013 11:25 AM
>> *To:* Zou, Nanhai
>> *Cc:* [email protected]
>> *Subject:* Re: [Beignet] Newbie - Building beignet
>>
>>
>>
>> Yes, it builds correctly. I can see the binaries under the build/bin
>> directory. I can see a list of targets supported via llc -version but SPIR
>> is not one of them.
>>
>>
>>  -Rashid
>>
>>
>>
>> On Mon, Dec 2, 2013 at 8:00 PM, Zou, Nanhai <[email protected]> wrote:
>>
>> Have  you included clang in your llvm build?
>>
>>
>>
>> Thanks
>>
>> Zou Nanhai
>>
>>
>>
>> *From:* [email protected][mailto:
>> [email protected]] *On Behalf
>> Of *Rashid Kaleem
>> *Sent:* Tuesday, December 03, 2013 8:53 AM
>> *To:* [email protected]
>> *Subject:* [Beignet] Newbie - Building beignet
>>
>>
>>
>> Apologies if this is a stupid question. I am trying to build beignet on a
>> linux based system and was getting error during the make. I tried llvm-3.3
>> and llvm-3.2 release as well as the latest repo-version. I am getting two
>> types of errors as i build beignet. First, using the default settings i get
>>
>>       error: unknown argument: '-ffp-contract=off'
>>
>> and if i manually remove the lines from the CMakeList file, i get
>>
>>       error: unknown target triple 'spir', please use -triple or -arch
>>
>> I checked my build settings and i am building all the targets for LLVM,
>> am i missing anything?
>>
>> Do i need to checkout a SPIR backend, or is it in the experimental
>> targets (in CMakeList)?
>>
>> Any pointers would be greatly appreciated, thanks.
>>
>>
>>
>> -Rashid
>>
>>
>>
>> _______________________________________________
>> Beignet mailing list
>> [email protected]
>> http://lists.freedesktop.org/mailman/listinfo/beignet
>>
>>
>
>
> --
> Best Regards,
>
> Robert
>
_______________________________________________
Beignet mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to