Open xpoy1 opened 1 year ago
Hi @xpoy1, thanks for the report.
From what I see, SYCL RT throws an exception and it can indeed be the case for device::has
API implementation, because it may do extra queries to low-level APIs to understand if certain aspect is supported. My current guess is that it results in a crash, because you don't have try...catch
blocks around your SYCL app and/or don't use async handler. Could you please post a link to the example you are trying to compile?
DPC++ version: [e.g. commit hash or output of clang++ --version] clangSpirV.exe --version clang version 8.0.0 (https://git.llvm.org/git/clang.git/ eeb9a4ad2a1f40d4b514c68ea5d455628d874c31) (https://git.llvm.org/git/llvm.git/ 01087accf22e8ed609f625c0884bc233d8528b1e)
That is definitely not a SYCL compiler version. Could you please share --version
output of the compiler you used to build the application?
The source code is:
I build it by visual studio, the makefile shall be the CMakeLists.txt which under same path.
I query clangSpirV
version because 'x64_x86 Cross Tools Command Prompt for VS 2022' shell terminal doesn't has clang.exe, I guess the proper clang is this one, as long as it stay in oneAPI folden:
Intel(R) oneAPI DPC++/C++ Compiler 2023.1.0 (2023.1.0.20230320)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files (x86)\Intel\oneAPI\compiler\2023.1.0\windows\bin-llvm
One more info I forgot to mention, the visual studio version is
Microsoft Visual Studio Community 2022
版本 17.5.4
VisualStudio.17.Release/17.5.4+33530.505
Microsoft .NET Framework
版本 4.8.04161
已安装的版本: Community
Visual C++ 2022 00482-90000-00000-AA140
Microsoft Visual C++ 2022
ASP.NET and Web Tools 17.5.318.41597
ASP.NET and Web Tools
Azure 应用服务工具 3.0.0 版 17.5.318.41597
Azure 应用服务工具 3.0.0 版
C# 工具 4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d
IDE 中使用的 C# 组件。可能使用其他版本的编译器,具体取决于你的项目类型和设置。
Extensibility Message Bus 1.4.3 (main@2a4517a)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
GitHub Copilot 1.82.1.0 (v1.82.1.0@10c323cc0)
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.
GitHub Copilot Agent 1.82.15 (v1.82.0)
Intel Libraries for oneAPI 2023.1
Intel Libraries for oneAPI 2023.1, Copyright © 2019-2023 Intel Corporation. All rights reserved.
Intel® C++ Compiler 2023.1
Intel® C++ Compiler 2023.1, Copyright © 2002-2023 Intel Corporation. All rights reserved.
Intel® DPC++ Compatibility Tool 2023.1
Intel® DPC++ Compatibility Tool 2023.1, Copyright © 2019-2023 Intel Corporation. All rights reserved.
Intel® oneAPI DPC++ Compiler 2023.1
Intel® oneAPI DPC++ Compiler 2023.1, Copyright © 2019-2023 Intel Corporation. All rights reserved.
Intel® oneAPI Menu & Samples 10.10.392.9731
Intel® oneAPI Visual Studio Menu & Samples Extension
Intel® VTune™ Profiler 2023 1.3.10
Intel® VTune™ Profiler 2023, (Plugin Version 1.3.10), Copyright © 2009-2023 Intel Corporation. All rights reserved.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Mono Debugging for Visual Studio 17.5.9 (11975e6)
Support for debugging Mono processes with Visual Studio.
NuGet 包管理器 6.5.0
Visual Studio 中的 NuGet 包管理器。有关 NuGet 的详细信息,请访问 https://docs.nuget.org/
Razor (ASP.NET Core) 17.5.2.2316603+9f1b6856460af1e592d387ebef416eadddac453f
提供 ASP.NET Core Razor 的语言服务。
SQL Server Data Tools 17.2.40120.0
Microsoft SQL Server Data Tools
TypeScript Tools 17.0.20105.2003
TypeScript Tools for Microsoft Visual Studio
Visual Basic 工具 4.5.2-3.23171.7+d17f741546fad2786cbd6394d08619544e53a36d
IDE 中使用的 Visual Basic 组件。可能使用其他版本的编译器,具体取决于你的项目类型和设置。
Visual F# Tools 17.5.0-beta.23053.5+794b7c259d9646a7eb685dad865aa27da7940a21
Microsoft Visual F# Tools
Visual Studio IntelliCode 2.2
Visual Studio 的 AI 协助开发。
VisualStudio.DeviceLog 1.0
有关我的包的信息
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
VSPackage 扩展 1.0
VSPackage Visual Studio 扩展详细信息
Xamarin 17.5.0.173 (d17-5@33e727c)
用于启用 Xamarin.iOS 和 Xamarin.Android 的开发的 Visual Studio 扩展。
Xamarin Designer 17.5.3.46 (remotes/origin/d17-5@e4dd80b2bb)
用于在 Visual Studio 中启用 Xamarin Designer 工具的 Visual Studio 扩展。
Xamarin Templates 17.5.41 (ba80d05)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 13.2.0.0 (d17-5/797e2e1)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: 6dd9def
Java.Interop: xamarin/java.interop/main@149d70fe
SQLite: xamarin/sqlite/3.40.0@fdc1e34
Xamarin.Android Tools: xamarin/xamarin-android-tools/main@9f02d77
Xamarin.iOS and Xamarin.Mac SDK 16.2.0.5 (7738c90c9)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
适用于 Google Test 的测试适配器 1.0
启用带有针对 Google Test 编写的单元测试的 Visual Studio 测试工具。扩展安装目录中提供了使用条款和第三方通知。
通用 Azure 工具 1.10
通过 Azure 移动服务和 Microsoft Azure Tools 提供通用服务。
用于 Boost.Test 的测试适配器 1.0
通过针对 Boost.Test 编写的单元测试启用 Visual Studio 测试工具。扩展安装目录中提供用户条款和第三方通知。
Describe the bug Just build simple program [add vector] in windows, it crash when selecting device
windbg crash stack-trace
To Reproduce Please describe the steps to reproduce the behavior:
Environment (please complete the following information): cuda 11.7.1, 11.8, 12.3 all crashed
Installed drivers
clang++ --version
]Additional context Add any other context about the problem here.