Intel® oneAPI Base Toolkit
Support for core tools and libraries to build and deploy high-performance data-centric applications
274 Discussions

Issue with generation LLVM IR using oneApi

bogdanboryslavskyi
502 Views

Hi everyone.
I'm trying to split the compilation, and generate LLVM IR. But the compiler shows an error that IR output is not supported.
clang++ -fsycl -fsycl-unnamed-lambda -S -emit-llvm -ferror-limit=5 addTwoArrays.dp.cpp -std=c++17

error: IR output is not supported.
1 error generated.

Maybe someone has encountered this, or knows some other option to generate IR?

Thanks!

0 Kudos
1 Solution
ShivaniK_Intel
Moderator
436 Views

Hi,

 

I apologize for the delay.

 

Please follow the below steps to generate LLVM IR.

 

export IGC_DumpToCurrentDir=1
export IGC_DumpLLVMIR=1
dpcpp <code>.cpp
./a.out

 

Thanks&Regards

Shivani

 

View solution in original post

4 Replies
ShivaniK_Intel
Moderator
484 Views

Hi,


Thanks for reaching out to us.


We are able to reproduce the error on our end. We are working on it and will get back to you soon.


Thanks & Regards

Shivani


ShivaniK_Intel
Moderator
437 Views

Hi,

 

I apologize for the delay.

 

Please follow the below steps to generate LLVM IR.

 

export IGC_DumpToCurrentDir=1
export IGC_DumpLLVMIR=1
dpcpp <code>.cpp
./a.out

 

Thanks&Regards

Shivani

 

bogdanboryslavskyi
419 Views
ShivaniK_Intel
Moderator
408 Views


Hi,


Thanks for the confirmation! As your issue has been resolved, we will no longer respond to this thread. If you require additional assistance from Intel, please start a new thread. Any further interaction in this thread will be considered community only.


Have a Good day!


Thanks & Regards

Shivani


Reply