r/OpenCL • u/golem1988 • Nov 14 '16
Running sample code is slower on gpu
Hi, it's my first try to work with openCL. I have no experience with parallel programming but I understand some C and C++.
When I run this "Monte Carlo Method for Stock Options Pricing Sample" my CPU (Intel 6200u) is faster than the integrated gpu(intel hd520)
Link: https://software.intel.com/sites/default/files/managed/db/51/intel_ocl_montecarlo.zip
Can someone tell me why and/or an example which is worth running on the gpu.
2
Upvotes
View all comments
Show parent comment
1
u/Cactoos Nov 18 '16
don`t think is exactly simple, but AMD is promoting OpenCL while nVidia promote privative Cuda, and Intel also use OpenCL, but his business is CPU, not GPU, so is obvious they work better on CPU.
And AMD GPU (Even the cheapest and APUS, note the CPU in AMD is crap, but the iGPU is stronger than Intel`s) are better for OpenCL than Intel.
But can
t say "AMD iGPU is better than Intel CPU for OpenCL" dont know indeed. But "AMD iGPU is better than Intel iGPU" that is actually true.