[llvm-dev] Automatic GPU Code Generation

Alexey Bataev via llvm-dev llvm-dev at lists.llvm.org
Tue Dec 11 02:34:29 PST 2018


You can use OpenMP. Clang supports offloading to the Nvidia GPUs using OpenMP directives. The work is still in progress, but mostly everything should work already. 

Best regards,
Alexey Bataev

> 11 дек. 2018 г., в 1:36, hameeza ahmed via llvm-dev <llvm-dev at lists.llvm.org> написал(а):
> 
> Hello,
> I need to ask, like automatic compiler vectorization, can GPU ISA be generated automatically, by skipping the CUDA programming?
> For instance if i just write C code there can be 2 possibilities, semi and full automatic.
> In case of semi, we can write #pragma directives to say this should be run on gpu. hence can the compiler generates directly gpu ISA, skipping CUDA code?
> In case of fully automatic, can we just write simple C code and compiler is intelligent enough to determine which portion is suitable for GPU and generates GPU ISA accordingly?
> 
> I need to know the progress made so far in both the above mentioned directions.
> 
> Thank You
> Regards


More information about the llvm-dev mailing list