OpenCL - "Failed to get platform id...: 0 (CL_SUCCESS)" [Build Error]

Advertisemen

To fix this error, note that it occurs when attempting to build any *.cl file. Firstly change the *.cl extension to *.c. i.e. kernel.cl to kernel.c

You still won't be able to build the code because the C compiler won't like "__kernel" and "__global"

In Solution Explorer, right click the *.c file and go to Properties and then Exclude it from Build

Advertisemen

Disclaimer: Gambar, artikel ataupun video yang ada di web ini terkadang berasal dari berbagai sumber media lain. Hak Cipta sepenuhnya dipegang oleh sumber tersebut. Jika ada masalah terkait hal ini, Anda dapat menghubungi kami disini.

Tidak ada komentar:

Posting Komentar

© Copyright 2017 Game Engine Tutorial