Fix some errors in the gpu setup code.

- There were debugging statements in the kernel code that caused HSonly
  to crash - these have been conditioned upon
- There were no non-empty checks in the setup code - this has been added
- Two of the test functions were commented in the test code. They have
  been uncommented.