oneDAL icon indicating copy to clipboard operation
oneDAL copied to clipboard

Feature request: Add support for ClangCl on MSVC

Open emmenlau opened this issue 2 years ago • 4 comments

Describe the bug It would be great if oneDAL could be compiled with the clang-cl compiler frontend for Visual Studio. I have tried to use ClangCl but there seem to be some warnings or errors that make the build fail. Since ClangCl is very similar to clang but also to Visual Studio, it seems it is well aligned with the already supported compilers. And on Windows it generates often much faster code than Visual Studio alone.

emmenlau avatar Apr 14 '22 10:04 emmenlau

@emmenlau - is this request for library build with clang-cl?

napetrov avatar Jan 05 '23 20:01 napetrov

@napetrov yes correct, I'd like to build the library with clang-cl from LLVM, as a frontend to Visual Studio.

emmenlau avatar Jan 05 '23 20:01 emmenlau

@emmenlau - the way how some optimizations are enabled is based on use of compiler intrinsics and some portions of code would be accusable only in case compiler by Intel compilers. So non intel compilers likely would get lower perf comparing to version build with Intel compiler.

But overall would see if ClangCL can be added

napetrov avatar Jan 05 '23 21:01 napetrov

@napetrov what you say sounds very reasonable! Would love to have ClangCl added (even with these limitations).

emmenlau avatar Mar 17 '23 16:03 emmenlau