[petsc-dev] 32-bits or 64-bits petsc
Barry Smith
bsmith at mcs.anl.gov
Wed Sep 18 13:55:54 CDT 2013
Except for our calls to BLAS/LAPACK and MPI (where we have no choice) we avoid having to convert indices en mass between packages. For example when building PETSc with 32 bit indices we link against superlu_dist built for 32 bit indices and when building PETSc with 64 bit indices we link against superlu_dist built for 64 bit indices. We don't allow linking 64 bit index PETSc against both 32 bit and 64 bit superlu_dist and casting all the indices on the fly when copying them over. I recommend you take the same route it reduces complexity of the interface and having that added flexibility doesn't buy you much IMHO.
Barry
On Sep 18, 2013, at 1:32 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> sizeof(PetscInt) or the macro PETSC_USE_64BIT_INDICES
>
> On Sep 18, 2013 11:30 AM, "Jose David Bermeol" <jbermeol at purdue.edu> wrote:
> Hi, I'm coding a solver, and I'm using PetscInt for indices, the problem is that a have to do a cast to int or long long int to pass the information to my external package, is there a variable that says which kind of indices(int or long long int) I'm using?
>
> Thanks
More information about the petsc-dev
mailing list