harness the GPU!

BlitzMax Forums/BlitzMax Programming/harness the GPU!

Nate the Great(Posted 2009) [#1]
hi

I have seen many programs online that claim to also use the GPU with the CPU for an amazing speed boost so has anyone ever done this in blitz max? is it even possible?


N(Posted 2009) [#2]
You can probably do it if you have a wrapper for Cuda or OpenCL (when Snow Leopard is released), but it's iffy and you'd probably be wasting your time.


ImaginaryHuman(Posted 2009) [#3]
I don't know why you'd say it's iffy? Lots of science people do GPGPU stuff.


Nate the Great(Posted 2009) [#4]
@IH - I think he's saying there's a chance I won't have any use for it but im pretty sure I will...

so is Cuda for windows? and OpenCL for mac? ok ill do my research thanks


slenkar(Posted 2009) [#5]
what about instancing of geometry for opengl e.g. speedtree


Brucey(Posted 2009) [#6]
Here you are : http://www.mathematik.uni-dortmund.de/~goeddeke/gpgpu/tutorial.html

:-)


JoshK(Posted 2009) [#7]
In the most recent version of my engine's editor, I calculated terrain editing on the GPU. When using a large tool radius that affects maybe 100,000 terrain points, it went from being unusably slow to being instantaneous. There are very few applications for this kind of hardware, but when you have one it makes it super fast.


Nate the Great(Posted 2009) [#8]
thanks brucey. ill look into that. :)


beanage(Posted 2009) [#9]
cant u just use images as input for a shader giving you back the result as an image? of course this really hasnt the capacities of a cuda app, but nevertheless its a huge speedup in perf when processing really large sequences of data .. in my very own project i make frequent use of this.. will post some code in 2-3 month.. if anyone is interested in it.