I have a bit of a complicated problem
I have a class (Holder) with 4 arrays (arr1, arr2, arr3, arr4). Currently I have a class function which processes these arrays so I dont have to return anything since they are part of the class.
But I need to port my code to Brook+. Basically you write a function in Brook+ and compile it and it gives a cpp file which you can use in your program.
but the Brook + language doesnt allow classes, so I have to pass the 4 arrays individually. I have done this and have seen 600% performance increase using my Brook+ function (since it uses the GPU). but the problem is I need to return those values back to the class.
How do I go about doing this?