在 NVIDIA 中使用 opencl 问题:没有 clCreateCommandQueueWithProperties() 的 cl.h

问题描述 投票:0回答:0

当我想在NVIDIA中使用opencl时遇到编译错误, 错误:“clCreateCommandQueueWithProperties”未在此范围内声明 clCreateCommandQueueWithProperties() 用于初始化 opencl。

我没有在 cl.h 中找到 clCreateCommandQueueWithProperties() 所以我不知道如何在 nvidia 中初始化 opencl。(其他代码也使用 clCreateCommandQueueWithProperties() 在 nvidia 中初始化 opencl) NVIDIA and opencl info

opencl nvidia
© www.soinside.com 2019 - 2024. All rights reserved.