[llvm-dev] use clang++ to build lulesh 2.0 failed
Hui Zhang via llvm-dev
llvm-dev at lists.llvm.org
Tue Feb 20 13:48:54 PST 2018
Thanks, Justin. I'll give it a try.
On Tue, Feb 20, 2018 at 4:44 PM, Justin Lebar <jlebar at google.com> wrote:
> > It looks like clang++ is complaining about the thrust library comes
> with cuda,
> The Thrust library that comes with CUDA is indeed not compatible with
> clang. We made a number of changes to Thrust to make it work with clang
> (it was relying on what we considered to be bugs in nvcc), but they're only
> available in the upstream Thrust: https://github.com/thrust/thrust.
> No promises that one builds with Clang either, but at least it should.
> On Tue, Feb 20, 2018 at 1:24 PM Hui Zhang via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>> I'm trying to use clang++ instead of nvcc to build lulesh 2.0 cuda
>> version. And it fails in the compilation with errors like the one below:
>> error: expected member name or ';' after declaration specifiers
>> It looks like clang++ is complaining about the thrust library comes with
>> cuda, while nvcc works fine for this case. So does it mean clang++ does not
>> support compiling this benchmark (even though it's cuda 7.5)? Or how should
>> I tackle these errors?
>> Thanks a lot!
>> Best regards
>> Hui Zhang
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev