Add CPU windowtest, osx version
Alloc a contiguous array so only one memcpy call needed
Simplify CUDA error handling; use contig. array
Turn off dynamic thread count selection

if number of threads is set in env variable OMP_NUM_THREADS