fix build. add spdiag for csr