oneMKL icon indicating copy to clipboard operation
oneMKL copied to clipboard

Build of debug version fails on Windows

Open rolandschulz opened this issue 7 months ago • 0 comments

Compiler error:

C:\PROGRA~2\Intel\oneAPI\compiler\latest\bin\icx.exe -fsycl /nologo  -IC:\Users\r2s2\source\repos\cutlass-fork\build.spir\deps\oneMKL\src\onemkl_project\include -IC:\Users\r2s2\source\repos\cutlass-fork\build.spir\deps\oneMKL\src\onemkl_project\src -IC:\Users\r2s2\source\repos\cutlass-fork\build.spir\deps\oneMKL\src\onemkl_project\src\include -IC:\Users\r2s2\source\repos\cutlass-fork\build.spir\deps\oneMKL\src\onemkl_project-build\bin /EHsc /DWIN32 /D_WINDOWS /W3 /GR /EHsc -Wno-unused-function -w d /Zi /Ob0 /Od /RTC1 -Donemkl_EXPORTS -QMD -QMT bin\rng\CMakeFiles\onemkl_rng.dir\rng_loader.cpp.obj -QMF bin\rng\CMakeFiles\onemkl_rng.dir\rng_loader.cpp.obj.d /Fobin\rng\CMakeFiles\onemkl_rng.dir\rng_loader.cpp.obj -c C:\Users\r2s2\source\repos\cutlass-fork\build.spir\deps\oneMKL\src\onemkl_project\src\rng\rng_loader.cpp
icx: error: cannot specify '-Fobin\rng\CMakeFiles\onemkl_rng.dir\rng_loader.cpp.obj' when compiling multiple source files

Reason is https://github.com/uxlfoundation/oneMath/blob/c255b1b4c41e2ee3059455c1f96a965d6a62568a/CMakeLists.txt#L215

It replaces the "/MDd" used by default for debug builds with "d" which is then mistaken as 2nd input source.

rolandschulz avatar Mar 11 '25 18:03 rolandschulz