Support for gpuarrays
Separate out test from benchmark in script