Intel® oneAPI Base Toolkit
Support for the core tools and libraries within the base toolkit that are used to build and deploy high-performance data-centric applications.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
358 Discussions

Issue with generation LLVM IR using oneApi

bogdanboryslavskyi
863 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
797 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
845 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
798 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

 

ShivaniK_Intel
Moderator
769 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