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.
419 Discussions

Issue with generation LLVM IR using oneApi

bogdanboryslavskyi
1,619 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
1,553 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

0 Kudos
4 Replies
ShivaniK_Intel
Moderator
1,601 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
1,554 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

 

0 Kudos
ShivaniK_Intel
Moderator
1,525 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


0 Kudos
Reply