Move error checking and diagnostics to the header please

CUDNN_STATUS_BAD_PARAM is just about as uninformative as one could possibly come up with.

We are looking into this issue.

Thanks