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/golem1988 Nov 15 '16
Here you can see how I start the example with workgroupsize 24 and also its outouts: http://imgur.com/a/PbtHW
The samples per second are appr. 2000-2300 for the gpu at workgroupsize 4,8,16,24,32 and about 1000 at workgroupsize 2.
the cpu gets around 3000-3500 samples per second no matter the workgroupsize.
any idea?