Commits

Michael Lange  committed 4658527 Draft

Fixing issues for non-OpenMP enabled builds.

  • Participants
  • Parent commits 8789b21

Comments (0)

Files changed (3)

File include/petsc-private/matimpl.h

 #if defined(PETSC_HAVE_CUSP)
   PetscCUSPFlag          valid_GPU_matrix; /* flag pointing to the matrix on the gpu*/
 #endif
-#if defined(PETSC_HAVE_OPENMP)
   PetscInt               *thread_start;
   PetscInt               *thread_end;
-#endif
   void                   *spptr;          /* pointer for special library like SuperLU */
   MatSolverPackage       solvertype;
   };
   PetscBool         flg,nz_balance=PETSC_FALSE,improved=PETSC_TRUE;
 
   PetscFunctionBegin;
-#if defined(PETSC_HAVE_OPENMP)
   nthread = PetscGetMaxThreads();
   PetscMalloc(nthread * sizeof(PetscInt), &A->thread_start);
   PetscMalloc(nthread * sizeof(PetscInt), &A->thread_end);
-#else
-  nthread = 1;
-#endif
 
   ierr = PetscOptionsGetBool(PETSC_NULL,"-matmult_nz_balance",&nz_balance, &flg);CHKERRQ(ierr);
 

File src/mat/impls/aij/seq/aij.c

 
   ierr = MatSeqAIJInvalidateDiagonal(A);CHKERRQ(ierr);
 
-#if defined(PETSC_HAVE_OPENMP)
   ierr = MatThreadPartition(A, m, a->nz, a->i);CHKERRQ(ierr);
-#endif
+
   PetscFunctionReturn(0);
 }
 

File src/mat/impls/baij/seq/baij.c

   ierr = MatCheckCompressedRow(A,&a->compressedrow,a->i,mbs,ratio);CHKERRQ(ierr);
   A->same_nonzero = PETSC_TRUE;
 
-#if defined(PETSC_HAVE_OPENMP)
   ierr = MatThreadPartition(A, mbs, a->nz, a->i);CHKERRQ(ierr);
-#endif
+
   PetscFunctionReturn(0);
 }