[Beignet] Compiling Beignet problems

Zhigang Gong zhigang.gong at gmail.com
Thu Mar 13 19:16:57 PDT 2014


The support may be coming in some time next quarter if everything goes well.
And please be noted, this is just my estimation :).

On Fri, Mar 14, 2014 at 10:10 AM, Jon Olick <jon.olick at gmail.com> wrote:
> Looks like you need llvm 3.3, *not* 3.5 to compile. (Thanks! :) ) Also, all
> the unit tests fail on the 5200, so I can verify no support there.
>
> What time frame would I might see 5200 support? next month? end of year?
> next year?
>
> Trying to come up with a game plan internally :)
>
>
> On Thu, Mar 13, 2014 at 10:43 AM, Jon Olick <jon.olick at gmail.com> wrote:
>>
>> Any idea of a ETA on the 5200 support?
>>
>>
>> On Thu, Mar 13, 2014 at 10:36 AM, Zhigang Gong <zhigang.gong at gmail.com>
>> wrote:
>>>
>>> On Thu, Mar 13, 2014 at 1:14 PM, Jon Olick <jon.olick at gmail.com> wrote:
>>> > Hey guys!
>>> >
>>> > 2 questions.
>>> >
>>> > 1) Does Beignet support my Crystal Well 5200 GPU?
>>> The support for haswell is on going, please stay tuned.
>>>
>>> >
>>> > and 2) I was wondering if anybody on this list could help me with a
>>> > compiling problem with Beignet:
>>> >
>>> > I had a few problems. One with noduplicate which was an easy code
>>> > modification (remove the noduplicate). And this one:
>>>
>>> It seems that you were building beignet with incompatible LLVM version.
>>> Please make sure that your system only installed with the LLVM 3.3 or
>>> newer.
>>>
>>> >
>>> > [  1%] Building CXX object
>>> > backend/src/CMakeFiles/gbe.dir/backend/program.cpp.o
>>> > /home/jon/beignet/backend/src/backend/program.cpp: In function 'bool
>>> > gbe::buildModuleFromSource(const char*, const char*, std::string,
>>> > size_t,
>>> > char*, size_t*)':
>>> > /home/jon/beignet/backend/src/backend/program.cpp:656:28: error:
>>> > 'llvm::sys::fs' has not been declared
>>> >      auto mode = llvm::sys::fs::F_Binary;
>>> >                             ^
>>> > In file included from
>>> > /usr/lib/llvm-3.4/include/clang/Basic/VersionTuple.h:19:0,
>>> >                  from
>>> > /usr/lib/llvm-3.4/include/clang/Basic/ObjCRuntime.h:18,
>>> >                  from
>>> > /usr/lib/llvm-3.4/include/clang/Basic/LangOptions.h:20,
>>> >                  from
>>> > /usr/lib/llvm-3.4/include/clang/Frontend/FrontendAction.h:22,
>>> >                  from
>>> > /usr/lib/llvm-3.4/include/clang/CodeGen/CodeGenAction.h:13,
>>> >                  from
>>> > /home/jon/beignet/backend/src/backend/program.cpp:56:
>>> > /usr/lib/llvm-3.4/include/llvm/ADT/Optional.h: In instantiation of 'T*
>>> > llvm::Optional<T>::getPointer() [with T = unsigned int]':
>>> > /usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:123:76:   required from
>>> > 'T&
>>> > llvm::Optional<T>::operator*() [with T = unsigned int]'
>>> > /usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:51:40:   required from
>>> > 'llvm::Optional<T>::Optional(llvm::Optional<T>&&) [with T = unsigned
>>> > int]'
>>> > /usr/lib/llvm-3.4/include/clang/Basic/VersionTuple.h:60:14:   required
>>> > from
>>> > here
>>> > /usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:114:79: warning:
>>> > dereferencing
>>> > type-punned pointer will break strict-aliasing rules
>>> > [-Wstrict-aliasing]
>>> >    T* getPointer() { assert(hasVal); return
>>> > reinterpret_cast<T*>(storage.buffer); }
>>> >
>>> > ^
>>> > /usr/lib/llvm-3.4/include/llvm/ADT/Optional.h: In instantiation of 'T*
>>> > llvm::Optional<T>::getPointer() [with T = bool]':
>>> > /usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:123:76:   required from
>>> > 'T&
>>> > llvm::Optional<T>::operator*() [with T = bool]'
>>> > /usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:104:8:   required from
>>> > 'void
>>> > llvm::Optional<T>::reset() [with T = bool]'
>>> > /usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:110:11:   required from
>>> > 'llvm::Optional<T>::~Optional() [with T = bool]'
>>> >
>>> > /usr/lib/llvm-3.4/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h:420:27:
>>> > required from here
>>> > /usr/lib/llvm-3.4/include/llvm/ADT/Optional.h:114:79: warning:
>>> > dereferencing
>>> > type-punned pointer will break strict-aliasing rules
>>> > [-Wstrict-aliasing]
>>> > make[2]: *** [backend/src/CMakeFiles/gbe.dir/backend/program.cpp.o]
>>> > Error 1
>>> > make[1]: *** [backend/src/CMakeFiles/gbe.dir/all] Error 2
>>> > make: *** [all] Error 2
>>> >
>>> >
>>> > Thanks!
>>> > Jon
>>> >
>>> > _______________________________________________
>>> > Beignet mailing list
>>> > Beignet at lists.freedesktop.org
>>> > http://lists.freedesktop.org/mailman/listinfo/beignet
>>> >
>>
>>
>


More information about the Beignet mailing list