跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[分享创造] go-opencl: 在 go 语言中简单的运行 OpenCL 程序

发表于
分享一个开发的在 go 语言中运行 OpenCL 程序的库

https://github.com/CyberChainXyz/go-opencl

-------------------------------------------

最近工作中要使用 go 语言进行 GPU 编程,遇到两个问题:

1 ,没有一个维护良好的 go 语言 OpenCL 库
2 ,对于我这种不是专业 GPU 编程的人 OpenCL 接口太复杂

经过无数熬夜研究 OpenCL Reference 才懂了点皮毛,不得吐槽一下,OpenCL 文档真不是给人看的。

-------------------------------------------

go-opencl 的目的并不是创建一个完整的 OpenCL binding,主要是给非专业 GPU 程序员使用 go 语言可以简单的运行 OpenCL 程序使用而不需要深入了解 OpenCL 的细节。

目前在团队内部使用良好,希望有兴趣的可以一起完善。

-------------------------------------------

Note: 大部分 CPU 都是支持 OpenCL 的,使用 OpenCL 不一定需要专业的 GPU 。

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.