문제

I want to write a raytracer and GPGPU seems like a very good way to accelerate it. The problem is that although OpenCL is a Khronos standard, it seems Intel, NVIDIA and ATI have all released their own SDK.

Although it seems most people around here wonder if their kernel code runs on all platforms, I'm wondering how to compile an actual C program that makes use of the OpenCL API for all platforms.

도움이 되었습니까?

해결책

Unfortunately, the only way to be sure to have no bug on all platforms is to test your kernel on all platforms ( and on all generation of GPU or CPU ...), because sometimes, the NVIDIA ptx compiler crash when the AMD compiler works. And after you have to optimize your OpenCL code for each GPU and CPU architectures ... Enjoy OpenCL ;)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top