Community
cancel
Showing results for 
Search instead for 
Did you mean: 
330 Views

dpcpp crashing during compilation

Hi,

I converted winner_takes_all.cu to winner_takes_all.dp.cpp using dpct which happened successfully. But while compiling this converted code, i got the following output:

c:\Users\...\Downloads\cuda code\libSGM-master\src\dpct>dpcpp -c -I../../include winner_takes_all.dp.cpp
Stack dump:
0.      Program arguments: C:\PROGRA~2\INTELO~1\compiler\latest\windows\bin\clang++.exe -cc1 -triple spir64-unknown-unknown-sycldevice -fsycl -fsycl-is-device -fdeclare-spirv-builtins -aux-triple x86_64-pc-windows-msvc -fms-extensions -fms-compatibility -fdelayed-template-parsing -fms-compatibility-version=191025017 -sycl-std=2017 -Wno-sycl-strict -emit-llvm-bc -emit-llvm-uselists -disable-free -disable-llvm-verifier -discard-value-names -main-file-name winner_takes_all.dp.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -resource-dir C:\PROGRA~2\INTELO~1\compiler\latest\windows\lib\clang\11.0.0 -internal-isystem C:\PROGRA~2\INTELO~1\compiler\latest\windows\bin\..\include\sycl -I ../../include -IC:\Program Files (x86)\inteloneapi\tbb\latest\env\..\include -IC:\Program Files (x86)\inteloneapi\mkl\latest\include -IC:\Program Files (x86)\inteloneapi\ipp\latest\include -IC:\Program Files (x86)\inteloneapi\dpcpp-ct\latest\env\..\include -IC:\Program Files (x86)\inteloneapi\daal\latest\include -IC:\Program Files (x86)\inteloneapi\compiler\latest\windows\include -IC:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include -IC:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include\intel64 -I. -internal-isystem C:\PROGRA~2\INTELO~1\compiler\latest\windows\lib\clang\11.0.0\include -internal-isystem C:\Program Files (x86)\inteloneapi\vpl\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\tbb\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\oneDNN\latest\env\..\cpu_dpcpp_gpu_dpcpp\include -internal-isystem C:\Program Files (x86)\inteloneapi\mpi\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\mkl\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\ipp\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\dpcpp-ct\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\daal\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include\intel64 -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include -internal-isystem C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt -internal-isystem C:\Users\intel\sycl_workspace\build64\lib\clang\10.0.0\include -internal-isystem C:\PROGRA~2\INTELO~1\compiler\latest\windows\lib\clang\11.0.0\include -internal-isystem C:\Program Files (x86)\inteloneapi\vpl\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\tbb\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\oneDNN\latest\env\..\cpu_dpcpp_gpu_dpcpp\include -internal-isystem C:\Program Files (x86)\inteloneapi\mpi\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\mkl\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\ipp\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\dpcpp-ct\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\daal\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include\intel64 -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include -internal-isystem C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt -internal-isystem C:\Users\intel\sycl_workspace\build64\lib\clang\10.0.0\include -fdeprecated-macro -fdebug-compilation-dir c:\Users\intel\Downloads\cuda code\libSGM-master\src\dpct -ferror-limit 19 -fmessage-length 168 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -fsycl-unnamed-lambda -faddrsig -o C:\Users\intel\AppData\Local\Temp\winner_takes_all-a91a25.bc -x c++ winner_takes_all.dp.cpp
1.      winner_takes_all.dp.cpp:234:55: current parser token ','
2.      ./winner_takes_all.hpp:46:8: instantiating function definition 'sgm::WinnerTakesAll<64>::enqueue'
3.      winner_takes_all.dp.cpp:227:1: parsing function body 'sgm::(anonymous namespace)::enqueue_winner_takes_all'
4.      winner_takes_all.dp.cpp:227:1: in compound statement ('{}')
5.      winner_takes_all.dp.cpp:231:53: in compound statement ('{}')
6.      winner_takes_all.dp.cpp:232:20: lambda expression parsing
7.      winner_takes_all.dp.cpp:232:44: in compound statement ('{}')
0x00007FF6470577EB (0x000000EBC8787488 0x00007FF646686534 0x000000EB00000000 0x00007FF6466B8C48)
0x00007FF6469CFA95 (0x000000EBC8786550 0x00007FF647185FB1 0x0000000000000000 0x00007FF647018508)
0x00007FF646A373E2 (0x0000028B6FE36770 0x0000004100000000 0x0000000000000068 0x0000028B6FFC6CC0)
0x00007FF646687C98 (0x000000EBC8787058 0x00007F6BB8E3D6FA 0x00007FF64751E8A0 0x0000028B766970E0)
0x00007FF64668043C (0x0000028B00002003 0x0000000000000000 0x0000000000000000 0x000009BA00000000)
0x00007FF64668E96E (0x0000000800000000 0x0000028B6C070F20 0x000000EBC8787058 0x000000EBC87879B8)
0x00007FF64663515A (0x000000EBC87871A8 0x0000028B6C068FC0 0x0000028B6E4453F0 0x00007F6BB8E3D26A)
0x00007FF6466329F3 (0x0000000400001F00 0x00007FFFDFFA07BD 0x000000EBC8787AE0 0x0000000000000000)
0x00007FF64662D1F0 (0x000000EBC8787EA0 0x00007FF6466064E1 0x000000EBC8787E98 0x0000028B6BFB9850)
0x00007FF64662CC44 (0x000000EBC8787DF0 0x0000028B7670BC80 0x00007F6BB8E3C1AA 0x0000028B6C506590)
0x00007FF64666F372 (0x000000EBC8789050 0x000000EBC8787FD8 0x0000028B76696B50 0x00007FF646CE8593)
0x00007FF64666EE32 (0x000000EBC8789050 0x000000EBC8789030 0x0000028B6DF7C9A0 0x00007FF646CE9DEF)
0x00007FF646677649 (0x0000028B6FBE3670 0x0000000000000002 0x0000000000000000 0x0000000000000438)
0x00007FF646698E80 (0x000000EBC8789C38 0x00007FF646B24265 0x0000028B6BFCFDB0 0x0000000000000000)
0x00007FF646696625 (0x0000028B6C068FC0 0x0000000000000000 0x0000000000000003 0x0000000000000000)
0x00007FF646686558 (0x0000000000000000 0x00007FF64758D5FD 0x0000028B745AC890 0x0000028B745AC840)
0x00007FF64668043C (0x0000028B6C070F50 0x000000EBC878A218 0x0000000000000015 0x00007FF64751E64F)
0x00007FF64668E96E (0x0000000000000000 0x0000000000000000 0x0000028B6C070F20 0x000000000000003E)
0x00007FF646682F56 (0x000000EBC878A5C0 0x000000EBC878A5B0 0x0000028B6C50700C 0x0000000000000000)
0x00007FF646685EFE (0x0000028B6C068FC0 0x0000028B6CDD8FF8 0x000000EB00001FC5 0x0000028B76696258)
0x00007FF64668043C (0x000000EBC878B370 0x00007FF6465DD40D 0x00007F6BB8E30CEA 0x0000000000000000)
0x00007FF646680335 (0x000000EBC878B370 0x00007FF6466064E1 0x000000EBC878B368 0x0000028B6BFB9850)
0x00007FF6466712B0 (0x0000028B766962D0 0x00007FF646F7A76E 0x000000EBC878B4D0 0x00007FF646A3F3CA)
0x00007FF64666F3E3 (0x0000000000000000 0x0000000000000000 0x000000EBC878B780 0x00007FF600000000)
0x00007FF64666EE32 (0x0000000000000000 0x0000000000000000 0x000000EBC878BA18 0x0000000000000000)
0x00007FF646677649 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF64666F483 (0x00001FBD00001F8F 0x0000000000000000 0x0000028B766969C8 0x0000028B6C000000)
0x00007FF64666EE32 (0x0000000000000000 0x0000000000000000 0x0000028B00000007 0x0000000000000000)
0x00007FF646672966 (0x0000000147015F00 0x0000000000000000 0x000000006BE10200 0x0000028B75A92DF0)
0x00007FF64666F617 (0x0000000002000002 0x0000000000000000 0x0000028B68000961 0x0000000000000000)
0x00007FF64666EE32 (0x0000000000000003 0x00007FF644C09634 0x0000000000000000 0x00007FF647030448)
0x00007FF646677649 (0x0000028B75A92DF0 0x00007FF64758D5FD 0x0000000000000001 0x0000028B6BF46801)
0x00007FF6466785E6 (0x0000000000000000 0x00007FF646BB9456 0x0000000000000000 0x0000000000000000)
0x00007FF64660488A (0x0000028B7552E430 0x0000028B6C068FC0 0x0000028B6C068FC0 0x0000028B74A2B448)
0x00007FF646D6CB61 (0x0000000000000000 0x000000EBC878C8C8 0x0000028B76692668 0x00007FF646799723)
0x00007FF646D701CB (0x00000000007476DE 0x0000000000000000 0x0000000000013B97 0x0000000000013B95)
0x00007FF646D6D799 (0x0000000000000000 0x0000028B6C068FC0 0x0000000000001884 0x00007FF646799723)
0x00007FF646D701CB (0x0000000000000000 0x00000000016F9D6A 0x00007F6BB8E370DA 0x00007FF64751E8A0)
0x00007FF6466B53F1 (0x00007F6B00000000 0x00007F6BB8E377AA 0x0000000000000000 0x000000000000000F)
0x00007FF6466B5EDE (0x0000028B6BFD44C0 0x00007F6BB8E36C01 0x0000028B74A1D110 0x00007F6BB8E36CEA)
0x00007FF6465D6151 (0x0000028B6BFB3BC0 0x00007FF648503140 0x0000028B6BFAC5C0 0x00007FF6456D37FA)
0x00007FF6465D1C5E (0x00007FF648000743 0x00007FF647972F44 0x0000000000000002 0x0000000000000030)
0x00007FF645720B41 (0x0000028B6BFB6200 0x0000028B6BF2BC50 0x0000000000000001 0x00007FF647973133)
0x00007FF6456D78E2 (0x0000028B6BEE0301 0x000000EBC878DA50 0x0000028B6BF80E80 0x0000028B6BF80E80)
0x00007FF64579D073 (0x0000000000000000 0x00007FF647D6CEAC 0x0000028B00000000 0x0000028B6BE10D80)
0x00007FF643C271B9 (0x000000EBC878E400 0x00007FFFDDB720BB 0x0000000000000000 0x0000000000000000)
0x00007FF643C25417 (0x0000000000002000 0x000000000000001D 0x000000000000001F 0x0000028B6BF3A560)
0x00007FF643C22014 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF6479557FC (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFFDEBD7BD4 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFFDFFCCE51 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++ Compiler 2021.1-beta06 (2020.4.0.0415)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~2\INTELO~1\compiler\latest\windows\bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg: Error generating preprocessed source(s).

Following is the output using -v switch:

c:\Users\intel\Downloads\cuda code\libSGM-master\src\dpct>dpcpp -v -c -I../../include winner_takes_all.dp.cpp
Intel(R) oneAPI DPC++ Compiler 2021.1-beta06 (2020.4.0.0415)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~2\INTELO~1\compiler\latest\windows\bin
 "C:\\PROGRA~2\\INTELO~1\\compiler\\latest\\windows\\bin\\clang++.exe" -cc1 -triple spir64-unknown-unknown-sycldevice -fsycl -fsycl-is-device -fdeclare-spirv-builtins -aux-triple x86_64-pc-windows-msvc -fms-extensions -fms-compatibility -fdelayed-template-parsing -fms-compatibility-version=191025017 -sycl-std=2017 -Wno-sycl-strict -emit-llvm-bc -emit-llvm-uselists -disable-free -disable-llvm-verifier -discard-value-names -main-file-name winner_takes_all.dp.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir "C:\\PROGRA~2\\INTELO~1\\compiler\\latest\\windows\\lib\\clang\\11.0.0" -internal-isystem "C:\\PROGRA~2\\INTELO~1\\compiler\\latest\\windows\\bin\\..\\include\\sycl" -I ../../include "-IC:\\Program Files (x86)\\inteloneapi\\tbb\\latest\\env\\..\\include" "-IC:\\Program Files (x86)\\inteloneapi\\mkl\\latest\\include" "-IC:\\Program Files (x86)\\inteloneapi\\ipp\\latest\\include" "-IC:\\Program Files (x86)\\inteloneapi\\dpcpp-ct\\latest\\env\\..\\include" "-IC:\\Program Files (x86)\\inteloneapi\\daal\\latest\\include" "-IC:\\Program Files (x86)\\inteloneapi\\compiler\\latest\\windows\\include" "-IC:\\Program Files (x86)\\inteloneapi\\compiler\\latest\\windows\\compiler\\include" "-IC:\\Program Files (x86)\\inteloneapi\\compiler\\latest\\windows\\compiler\\include\\intel64" -I. -internal-isystem "C:\\PROGRA~2\\INTELO~1\\compiler\\latest\\windows\\lib\\clang\\11.0.0\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\vpl\\latest\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\tbb\\latest\\env\\..\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\oneDNN\\latest\\env\\..\\cpu_dpcpp_gpu_dpcpp\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\mpi\\latest\\env\\..\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\mkl\\latest\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\ipp\\latest\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\dpcpp-ct\\latest\\env\\..\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\daal\\latest\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\compiler\\latest\\windows\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\compiler\\latest\\windows\\compiler\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\compiler\\latest\\windows\\compiler\\include\\intel64" -internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\ATLMFC\\include" -internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\include" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\include\\um" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\um" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\winrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\cppwinrt" -internal-isystem "C:\\Users\\intel\\sycl_workspace\\build64\\lib\\clang\\10.0.0\\include" -internal-isystem "C:\\PROGRA~2\\INTELO~1\\compiler\\latest\\windows\\lib\\clang\\11.0.0\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\vpl\\latest\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\tbb\\latest\\env\\..\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\oneDNN\\latest\\env\\..\\cpu_dpcpp_gpu_dpcpp\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\mpi\\latest\\env\\..\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\mkl\\latest\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\ipp\\latest\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\dpcpp-ct\\latest\\env\\..\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\daal\\latest\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\compiler\\latest\\windows\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\compiler\\latest\\windows\\compiler\\include" -internal-isystem "C:\\Program Files (x86)\\inteloneapi\\compiler\\latest\\windows\\compiler\\include\\intel64" -internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\ATLMFC\\include" -internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\include" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\include\\um" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\ucrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\shared" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\um" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\winrt" -internal-isystem "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.18362.0\\cppwinrt" -internal-isystem "C:\\Users\\intel\\sycl_workspace\\build64\\lib\\clang\\10.0.0\\include" -fdeprecated-macro -fdebug-compilation-dir "c:\\Users\\intel\\Downloads\\cuda code\\libSGM-master\\src\\dpct" -ferror-limit 19 -fmessage-length 168 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -fsycl-unnamed-lambda -faddrsig -o "C:\\Users\\intel\\AppData\\Local\\Temp\\winner_takes_all-f25776.bc" -x c++ winner_takes_all.dp.cpp
clang -cc1 version 11.0.0 based upon LLVM 11.0.0git default target x86_64-pc-windows-msvc
ignoring nonexistent directory "C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include\intel64"
ignoring nonexistent directory "C:\Program Files (x86)\inteloneapi\mpi\latest\env\..\include"
ignoring nonexistent directory "C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include\intel64"
ignoring nonexistent directory "C:\Program Files (x86)\inteloneapi\mpi\latest\env\..\include"
ignoring nonexistent directory "C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include\intel64"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\tbb\latest\env\..\include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\mkl\latest\include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\ipp\latest\include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\dpcpp-ct\latest\env\..\include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\daal\latest\include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\compiler\latest\windows\include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "C:\PROGRA~2\INTELO~1\compiler\latest\windows\lib\clang\11.0.0\include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\vpl\latest\include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\tbb\latest\env\..\include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\oneDNN\latest\env\..\cpu_dpcpp_gpu_dpcpp\include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\mkl\latest\include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\ipp\latest\include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\dpcpp-ct\latest\env\..\include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\daal\latest\include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\compiler\latest\windows\include"
ignoring duplicate directory "C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include"
ignoring duplicate directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include"
ignoring duplicate directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include"
ignoring duplicate directory "C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um"
ignoring duplicate directory "C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt"
ignoring duplicate directory "C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared"
ignoring duplicate directory "C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um"
ignoring duplicate directory "C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt"
ignoring duplicate directory "C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt"
ignoring duplicate directory "C:\Users\intel\sycl_workspace\build64\lib\clang\10.0.0\include"
ignoring duplicate directory "C:\PROGRA~2\INTELO~1\compiler\latest\windows\lib\clang\11.0.0\include"
#include "..." search starts here:
#include <...> search starts here:
 ../../include
 .
 C:\PROGRA~2\INTELO~1\compiler\latest\windows\bin\..\include\sycl
 C:\PROGRA~2\INTELO~1\compiler\latest\windows\lib\clang\11.0.0\include
 C:\Program Files (x86)\inteloneapi\vpl\latest\include
 C:\Program Files (x86)\inteloneapi\tbb\latest\env\..\include
 C:\Program Files (x86)\inteloneapi\oneDNN\latest\env\..\cpu_dpcpp_gpu_dpcpp\include
 C:\Program Files (x86)\inteloneapi\mkl\latest\include
 C:\Program Files (x86)\inteloneapi\ipp\latest\include
 C:\Program Files (x86)\inteloneapi\dpcpp-ct\latest\env\..\include
 C:\Program Files (x86)\inteloneapi\daal\latest\include
 C:\Program Files (x86)\inteloneapi\compiler\latest\windows\include
 C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include
 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include
 C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include
 C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um
 C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt
 C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared
 C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um
 C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt
 C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt
 C:\Users\intel\sycl_workspace\build64\lib\clang\10.0.0\include
End of search list.
Stack dump:
0.      Program arguments: C:\PROGRA~2\INTELO~1\compiler\latest\windows\bin\clang++.exe -cc1 -triple spir64-unknown-unknown-sycldevice -fsycl -fsycl-is-device -fdeclare-spirv-builtins -aux-triple x86_64-pc-windows-msvc -fms-extensions -fms-compatibility -fdelayed-template-parsing -fms-compatibility-version=191025017 -sycl-std=2017 -Wno-sycl-strict -emit-llvm-bc -emit-llvm-uselists -disable-free -disable-llvm-verifier -discard-value-names -main-file-name winner_takes_all.dp.cpp -mrelocation-model static -mthread-model posix -mframe-pointer=all -fmath-errno -fno-rounding-math -mconstructor-aliases -aux-target-cpu x86-64 -dwarf-column-info -fno-split-dwarf-inlining -debugger-tuning=gdb -v -resource-dir C:\PROGRA~2\INTELO~1\compiler\latest\windows\lib\clang\11.0.0 -internal-isystem C:\PROGRA~2\INTELO~1\compiler\latest\windows\bin\..\include\sycl -I ../../include -IC:\Program Files (x86)\inteloneapi\tbb\latest\env\..\include -IC:\Program Files (x86)\inteloneapi\mkl\latest\include -IC:\Program Files (x86)\inteloneapi\ipp\latest\include -IC:\Program Files (x86)\inteloneapi\dpcpp-ct\latest\env\..\include -IC:\Program Files (x86)\inteloneapi\daal\latest\include -IC:\Program Files (x86)\inteloneapi\compiler\latest\windows\include -IC:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include -IC:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include\intel64 -I. -internal-isystem C:\PROGRA~2\INTELO~1\compiler\latest\windows\lib\clang\11.0.0\include -internal-isystem C:\Program Files (x86)\inteloneapi\vpl\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\tbb\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\oneDNN\latest\env\..\cpu_dpcpp_gpu_dpcpp\include -internal-isystem C:\Program Files (x86)\inteloneapi\mpi\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\mkl\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\ipp\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\dpcpp-ct\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\daal\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include\intel64 -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include -internal-isystem C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt -internal-isystem C:\Users\intel\sycl_workspace\build64\lib\clang\10.0.0\include -internal-isystem C:\PROGRA~2\INTELO~1\compiler\latest\windows\lib\clang\11.0.0\include -internal-isystem C:\Program Files (x86)\inteloneapi\vpl\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\tbb\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\oneDNN\latest\env\..\cpu_dpcpp_gpu_dpcpp\include -internal-isystem C:\Program Files (x86)\inteloneapi\mpi\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\mkl\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\ipp\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\dpcpp-ct\latest\env\..\include -internal-isystem C:\Program Files (x86)\inteloneapi\daal\latest\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include -internal-isystem C:\Program Files (x86)\inteloneapi\compiler\latest\windows\compiler\include\intel64 -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include -internal-isystem C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include -internal-isystem C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -internal-isystem C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt -internal-isystem C:\Users\intel\sycl_workspace\build64\lib\clang\10.0.0\include -fdeprecated-macro -fdebug-compilation-dir c:\Users\intel\Downloads\cuda code\libSGM-master\src\dpct -ferror-limit 19 -fmessage-length 168 -fgnuc-version=4.2.1 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -fsycl-unnamed-lambda -faddrsig -o C:\Users\intel\AppData\Local\Temp\winner_takes_all-f25776.bc -x c++ winner_takes_all.dp.cpp
1.      winner_takes_all.dp.cpp:234:55: current parser token ','
2.      ./winner_takes_all.hpp:46:8: instantiating function definition 'sgm::WinnerTakesAll<64>::enqueue'
3.      winner_takes_all.dp.cpp:227:1: parsing function body 'sgm::(anonymous namespace)::enqueue_winner_takes_all'
4.      winner_takes_all.dp.cpp:227:1: in compound statement ('{}')
5.      winner_takes_all.dp.cpp:231:53: in compound statement ('{}')
6.      winner_takes_all.dp.cpp:232:20: lambda expression parsing
7.      winner_takes_all.dp.cpp:232:44: in compound statement ('{}')
0x00007FF6470577EB (0x000000CEE8587608 0x00007FF646686534 0x000000CE00000000 0x00007FF6466B8C48)
0x00007FF6469CFA95 (0x000000CEE85866D0 0x00007FF647185FB1 0x0000000000000000 0x00007FF647018508)
0x00007FF646A373E2 (0x000002158CEA2A60 0x0000000D00000000 0x0000000000000068 0x000002158DBAFCF0)
0x00007FF646687C98 (0x000000CEE85871D8 0x00001910C7D7D110 0x00007FF64751E8A0 0x00000215961370C0)
0x00007FF64668043C (0x0000021500002003 0x0000000000000000 0x0000000000000000 0x000009BA00000000)
0x00007FF64668E96E (0x0000000800000000 0x000002158BB11ED0 0x000000CEE85871D8 0x000000CEE8587B38)
0x00007FF64663515A (0x000000CEE8587328 0x000002158BB09F60 0x000002158DEA9A10 0x00001910C7D7CA80)
0x00007FF6466329F3 (0x0000000400001F00 0x00007FFFDFFA07BD 0x000000CEE8587C60 0x0000000000000000)
0x00007FF64662D1F0 (0x000000CEE8588020 0x00007FF6466064E1 0x000000CEE8588018 0x000002158B8BBAC0)
0x00007FF64662CC44 (0x000000CEE8587F70 0x0000021593C85D10 0x00001910C7D7C440 0x000002158D31CCC0)
0x00007FF64666F372 (0x000000CEE85891D0 0x000000CEE8588158 0x0000021596136B30 0x00007FF646CE8593)
0x00007FF64666EE32 (0x000000CEE85891D0 0x000000CEE85891B0 0x000002158DD06780 0x00007FF646CE9DEF)
0x00007FF646677649 (0x000002158F675F20 0x0000000000000002 0x0000000000000000 0x0000000000000438)
0x00007FF646698E80 (0x000000CEE8589DB8 0x00007FF646B24265 0x000002158B8D26D0 0x0000000000000000)
0x00007FF646696625 (0x000002158BB09F60 0x0000000000000000 0x0000000000000003 0x0000000000000000)
0x00007FF646686558 (0x0000000000000000 0x00007FF64758D5FD 0x000002159406D910 0x000002159406D8C0)
0x00007FF64668043C (0x000002158BB11F00 0x000000CEE858A398 0x0000000000000015 0x00007FF64751E64F)
0x00007FF64668E96E (0x0000000000000000 0x0000000000000000 0x000002158BB11ED0 0x000000000000003E)
0x00007FF646682F56 (0x000000CEE858A740 0x000000CEE858A730 0x000002158D31C80C 0x0000000000000000)
0x00007FF646685EFE (0x000002158BB09F60 0x000002158CAAD678 0x000000CE00001FC5 0x0000021596136238)
0x00007FF64668043C (0x000000CEE858B4F0 0x00007FF6465DD40D 0x00001910C7D70B00 0x0000000000000000)
0x00007FF646680335 (0x000000CEE858B4F0 0x00007FF6466064E1 0x000000CEE858B4E8 0x000002158B8BBAC0)
0x00007FF6466712B0 (0x00000215961362B0 0x00007FF646F7A76E 0x000000CEE858B650 0x00007FF646A3F3CA)
0x00007FF64666F3E3 (0x0000000000000000 0x0000000000000000 0x000000CEE858B900 0x00007FF600000000)
0x00007FF64666EE32 (0x0000000000000000 0x0000000000000000 0x000000CEE858BB98 0x0000000000000000)
0x00007FF646677649 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF64666F483 (0x00001FBD00001F8F 0x0000000000000000 0x00000215961369A8 0x000002158B000000)
0x00007FF64666EE32 (0x0000000000000000 0x0000000000000000 0x0000021500000007 0x0000000000000000)
0x00007FF646672966 (0x0000000147015F00 0x0000000000000000 0x000000008B7B0200 0x00000215959DE020)
0x00007FF64666F617 (0x0000000002000002 0x0000000000000000 0x00000215F20009FB 0x0000000000000000)
0x00007FF64666EE32 (0x0000000000000003 0x00007FF644C09634 0x0000000000000000 0x00007FF647030448)
0x00007FF646677649 (0x00000215959DE020 0x00007FF64758D5FD 0x0000000000000001 0x000002158B823A01)
0x00007FF6466785E6 (0x0000000000000000 0x00007FF646BB9456 0x0000000000000000 0x0000000000000000)
0x00007FF64660488A (0x0000021594FF4420 0x000002158BB09F60 0x000002158BB09F60 0x00000215944FE358)
0x00007FF646D6CB61 (0x0000000000000000 0x000000CEE858CA48 0x0000021596132648 0x00007FF646799723)
0x00007FF646D701CB (0x00000000007476DE 0x0000000000000000 0x0000000000013B97 0x0000000000013B95)
0x00007FF646D6D799 (0x0000000000000000 0x000002158BB09F60 0x0000000000001884 0x00007FF646799723)
0x00007FF646D701CB (0x0000000000000000 0x00000000016F9D6A 0x00001910C7D77730 0x00007FF64751E8A0)
0x00007FF6466B53F1 (0x0000191000000000 0x00001910C7D77640 0x0000000000000000 0x000000000000000F)
0x00007FF6466B5EDE (0x000002158B8D6F20 0x00001910C7D76B01 0x00000215944E3120 0x00001910C7D76B00)
0x00007FF6465D6151 (0x000002158B8B7550 0x00007FF648503140 0x000002158B8B51F0 0x00007FF6456D37FA)
0x00007FF6465D1C5E (0x0000000000000020 0x0000000000000016 0x00007FF647E5274E 0x000002158B8B7550)
0x00007FF645720B41 (0x000002158B8B15D0 0x0000021500000000 0x0000000000000001 0x00007FF647973133)
0x00007FF6456D78E2 (0x000002158B7E0301 0x000000CEE858DBD0 0x000002158B881A20 0x000002158B881A20)
0x00007FF64579D073 (0x0000000000000000 0x00007FF647D6CEAC 0x0000021500000000 0x000002158B7B0D80)
0x00007FF643C271B9 (0x000000CEE858E580 0x00007FFFDDB720BB 0x0000000000000000 0x0000000000000000)
0x00007FF643C25417 (0x0000000000002000 0x000000000000001D 0x000000000000001F 0x000002158B83A9F0)
0x00007FF643C22014 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FF6479557FC (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000)
0x00007FFFDEBD7BD4 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), BaseThreadInitThunk() + 0x14 bytes(s)
0x00007FFFDFFCCE51 (0x0000000000000000 0x0000000000000000 0x0000000000000000 0x0000000000000000), RtlUserThreadStart() + 0x21 bytes(s)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
Intel(R) oneAPI DPC++ Compiler 2021.1-beta06 (2020.4.0.0415)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~2\INTELO~1\compiler\latest\windows\bin
clang++: note: diagnostic msg: PLEASE submit a bug report to https://software.intel.com/en-us/support/priority-support and include the crash backtrace, preprocessed source, and associated run script.
clang++: note: diagnostic msg: Error generating preprocessed source(s).

Should I submit a separate report on https://software.intel.com/en-us/support/priority-support as mentioned in the crash message or can you forward the report to the concerned team?

Regards,
Gagan

 

Tags (1)
0 Kudos
4 Replies
RahulV_intel
Moderator
330 Views

Hi Gagan,

I tried compiling the migrated code on linux and I don't see such errors(I see a different set of errors, not that same thing that you see). These errors that you see could be windows specific and might not be generic. 

Let me try this on windows and get back to you.

 

Thanks,

Rahul

330 Views

I compiled it on Microsoft Windows 10 [Version 10.0.18363.836] when dpcpp crashed.

It's not crashing on WSL. I tried looking a bit more and when I add following line in function enqueue_winner_takes_all, the crash goes away.

	static const unsigned int ACCUMULATION_PER_THREAD = 16u;
	static const unsigned int REDUCTION_PER_THREAD = MAX_DISPARITY / WARP_SIZE;
	static const unsigned int ACCUMULATION_INTERVAL = ACCUMULATION_PER_THREAD / REDUCTION_PER_THREAD;

Only thing these lines change is define symbol ACCUMULATION_INTERVAL which is used in code below in function enqueue_winner_takes_all

      sycl::range<3> smem_cost_sum_range_ct1(
          8 /*WARPS_PER_BLOCK*/, ACCUMULATION_INTERVAL, MAX_DISPARITY);

Also dpct is generating a spurious '>' in call to function winner_takes_all_kernel called from function enqueue_winner_takes_all (on line 251 and 273 in attached file). But I think I should file it as a separate issue.

Regards,
Gagan

RahulV_intel
Moderator
324 Views

Hi Gagan,

 

Since you have figured out a workaround for the issue, let me know if I can close the thread?

 

--Rahul

 

RahulV_intel
Moderator
288 Views

Hi Gagan,


I have not heard back from you, so I shall close this thread. Feel free to post a new question if you still have issues.


--Rahul


Reply