Posts: 20
Threads: 7
Joined: Jun 2013
Thanks: 0
Given 0 thank(s) in 0 post(s)
I am trying to figure out what it would take to get the Raspberry Pi to take advantage of it's powerfull GPU and possibly harness it's power with the CPU to run a cluster MineCraft C++ server in addition to compiling source.
Posts: 4,628
Threads: 115
Joined: Dec 2011
Thanks: 693
Given 494 thank(s) in 423 post(s)
Maybe it's possible to intigrate OpenCL in MCServer?
My brother and I started talking about programming with the GPU and he said that OpenCL works on both Nvidia and ATI cards, and that it also detects if it should use the CPU or the GPU. I have no idea if everything is true though or if it can even use the GPU of the RasPi but it might be worth investigating.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
I think that tycho might be going to be working on some sort of C++/openCL hybrid over the summer holidays.
Posts: 783
Threads: 12
Joined: Jan 2014
Thanks: 2
Given 73 thank(s) in 61 post(s)
Im looking at mad technique using c++ templates for codegen to write openCL kernels and openGL ES shaders. (yes you can use openGL shaders for computation if you treat the textures and frame buffer as a byte array). The pi does't support openCL at the moment only openGL ES. At the moment I'm experimenting with the lighting thread as its reasonably self contained and slow on ARM but if I get it working then I'll use for the generator.
Posts: 1,450
Threads: 53
Joined: Feb 2011
Thanks: 15
Given 120 thank(s) in 91 post(s)
It would only be useful for generating terrain though, nothing more.
Posts: 783
Threads: 12
Joined: Jan 2014
Thanks: 2
Given 73 thank(s) in 61 post(s)
06-01-2014, 11:49 PM
(This post was last modified: 06-02-2014, 01:13 AM by worktycho.)
Yes. But on a lot of pis the gpu is extremely underused so it could provide a major boost.
Posts: 681
Threads: 26
Joined: May 2014
Thanks: 112
Given 48 thank(s) in 37 post(s)
By the way I have a RaspberryPi and it's GPU is absolutely useless. It's just a good thing for static graphics processing and 2D + vector processing but it's absolutely rubbish for dynamic computing. I tried this stuff myself but the RPi doesn't have any GPU computing interface.
Posts: 783
Threads: 12
Joined: Jan 2014
Thanks: 2
Given 73 thank(s) in 61 post(s)
I know, thats why I'm planing to do crazy stuff with image rendering for vectors.