Commits

Matt Knepley committed 1019ffe

CUDA: CUSPARSE still includes CUSP headers, so change the guards

  • Participants
  • Parent commits 2692e27

Comments (0)

Files changed (4)

File src/mat/impls/aij/mpi/mpicusparse/makefile

-#requirespackage 'PETSC_HAVE_CUDA'
+#requirespackage 'PETSC_HAVE_CUSP'
 ALL: lib
 
 CFLAGS   =

File src/mat/impls/aij/seq/seqcusparse/makefile

-#requirespackage 'PETSC_HAVE_CUDA'
+#requirespackage 'PETSC_HAVE_CUSP'
 ALL: lib
 
 CFLAGS    =

File src/mat/interface/matregis.c

 PETSC_EXTERN PetscErrorCode MatCreate_MPIAIJCUSP(Mat);
 #endif
 
-#if defined PETSC_HAVE_CUDA
+#if defined PETSC_HAVE_CUSP
 PETSC_EXTERN PetscErrorCode MatCreate_SeqAIJCUSPARSE(Mat);
 PETSC_EXTERN PetscErrorCode MatCreate_MPIAIJCUSPARSE(Mat);
 #endif
   ierr = MatRegister(MATMPIAIJCUSP,     MatCreate_MPIAIJCUSP);CHKERRQ(ierr);
 #endif
 
-#if defined PETSC_HAVE_CUDA
+#if defined PETSC_HAVE_CUSP
   ierr = MatRegisterBaseName(MATAIJCUSPARSE,MATSEQAIJCUSPARSE,MATMPIAIJCUSPARSE);CHKERRQ(ierr);
   ierr = MatRegister(MATSEQAIJCUSPARSE, MatCreate_SeqAIJCUSPARSE);CHKERRQ(ierr);
   ierr = MatRegister(MATMPIAIJCUSPARSE, MatCreate_MPIAIJCUSPARSE);CHKERRQ(ierr);

File src/vec/vec/utils/veccusp/makefile

-#requirespackage 'PETSC_HAVE_CUDA'
+#requirespackage 'PETSC_HAVE_CUSP'
 
 ALL: lib