clCreateContext成功,但clCreateCommandQueue失败,返回-33
clCreateContext succeeds, but clCreateCommandQueue fails with -33
我在一台装有集成Intel卡的机器上遇到了一个有趣的问题。
clCreateContext()
使用要在其上创建上下文的设备返回有效上下文。返回的错误为CL_SUCCESS
。但是,将上下文传递给clCreateCommandQueueWithProperties()
会导致错误代码-33或CL_INVALID_DEVICE
。我做了两次检查,确保我正确检查了错误。为什么我可以在设备上创建上下文,而不能创建命令队列?
尝试执行clCreateCommandQueue()
(OpenCL 1.0)而不是clCreateCommandQueueWithProperties()
(OpenCL 2.0)。
后者在英特尔(专有)和NVIDIA运行时都失败了。但不知道为什么。
相关文章:
- 函数返回时,带指针的复制构造函数失败
- 当命令失败时,gzip 会在 C++ 中返回错误代码吗?
- 测试用例状态为失败,但返回的值为 true
- 返回 std::stringstream - 编译失败
- VirtualAllocEx 失败 GetError 返回ERROR_INVALID_ADDRESS
- 在 Linux 上,JNI AttachNativeThread 总是失败,返回值为 -1
- 从返回绑定中获取函数失败
- GMock 的"WillOnce"和"Return"不会因错误的返回值而失败
- 失败RSA_Verify将返回错误的签名错误
- 函数应该返回可能会失败的功能
- 使用Outlook 2016:MAPISendMail在Windows应用程序中失败,并返回"MAPI_E_FAILURE"作为错误代码
- 返回 std::p air<const CustomClass &, bool> 用于搜索函数中的失败情况,当 CustomClass 是抽象基类时
- 为什么返回的 FILE* 在 popen() 中的命令失败时保留数据
- C++重写 void 函数返回类型会导致生成失败
- 查找函数在失败结果中应该返回什么
- 超能力 NDK 安卓:返回 int 在"extern"块中成功,在调用函数中失败
- std :: malloc在失败时返回null或nullptr吗?
- MYSQL总是返回失败
- 一旦 cudaMalloc 返回内存不足,每个 cuda API 调用都会返回失败
- 返回失败的输出