我可以在C#中使用OpenCL提出HTTP请求吗?
我可以在C#中使用OpenCL提出HTTP请求吗?我尝试执行此调用system(“ curl weblity.com”)
,但仅遇到有关System
隐式呼叫的错误。
Can I make HTTP requests using OpenCL in C#? I tryed to do this calling system("curl website.com")
but only getting an error about system
implicit calling.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,你不能。 OpenCL 内核 C/C++ 语言不支持标准 C 库 - 该库被一组面向数学编程的自定义标准函数所取代。
可以在内核语言中使用的函数列表可以找到 此处。
No, you can't. The OpenCL kernel C/C++ language doesn't support the standard C library - this library is replaced by a custom set of standard functions, geared toward math programming.
The list of functions, which can be used in the kernel language, can be found here.
正如其他人所说的那样,不,在Opencl内核中不可能进行I/O。
而且,这样做是没有意义的。 OpenCL专门从事计算密集的大规模并行数据处理。等待I/O完成将完全击败它的观点。通常的模式是:
As others have said, no, it's not possible to do I/O in OpenCL kernels.
Moreover though, it makes no sense to do so; OpenCL is specialised on computationally-intensive massively parallel data processing. Waiting for I/O to complete would entirely defeat the point of it. The usual pattern is: