Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
713 Discussions

Are the recent-ish LLVM sorting improvements in the latest Intel Compilers?

TroyLowry
Novice
1,511 Views

This might be a dumb question, but figure its worth asking.

 

Recently the AlphaDev team at Deepmind published their results on how their AI has developed improved sorting algorithms that were statistically significantly faster for certain sized ranges, and those changes actually got implemented into LLVM's codebase.

 

To my knowledge, the next-generation C++ compilers are based on LLVM, do they or will they have these changes? 

 

0 Kudos
1 Solution
VaishnaviV_Intel
Employee
1,458 Views

Hi,


Thanks for posting on Intel communities.


The algorithm was designed to work with LLVM's version of the standard C++ library called libc++. Normally, the GNU library is used by default, but you can choose to use the LLVM standard library by using the command "-stdlib=libc++".

 

However, if you use the LLVM library, there might be issues when connecting with other libraries that use C++ interfaces. It's important that the libraries and the main program use the same standard library because it determines the layout of the objects defined by the standard library. This is especially important for users who utilize Intel products with a runtime library component like SYCL and TBB.

If you want to use the LLVM standard library with a program that uses libraries with a C++ interface, the library needs to be specifically built with the LLVM standard library.

Unfortunately, we do not provide builds of the LLVM library in our commercial releases.

 

Thanks & Regards,

Vankudothu Vaishnavi.


View solution in original post

0 Kudos
2 Replies
VaishnaviV_Intel
Employee
1,459 Views

Hi,


Thanks for posting on Intel communities.


The algorithm was designed to work with LLVM's version of the standard C++ library called libc++. Normally, the GNU library is used by default, but you can choose to use the LLVM standard library by using the command "-stdlib=libc++".

 

However, if you use the LLVM library, there might be issues when connecting with other libraries that use C++ interfaces. It's important that the libraries and the main program use the same standard library because it determines the layout of the objects defined by the standard library. This is especially important for users who utilize Intel products with a runtime library component like SYCL and TBB.

If you want to use the LLVM standard library with a program that uses libraries with a C++ interface, the library needs to be specifically built with the LLVM standard library.

Unfortunately, we do not provide builds of the LLVM library in our commercial releases.

 

Thanks & Regards,

Vankudothu Vaishnavi.


0 Kudos
VaishnaviV_Intel
Employee
1,409 Views

Hi,


Thanks for accepting our solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel. 


Thanks & Regards,

Vankudothu Vaishnavi.


0 Kudos
Reply