Debugging APIs for GPU and CPU