Divide check-ref targets into check-ref-cpu and check-ref-gpu

This allows us to run the CPU and GPU tests individually