petsc-3.7.1 2016-05-15
Report Typos and Errors

# PetscBLASInt

datatype used to represent 'int' parameters to BLAS/LAPACK functions. Many br

Notes: usually this is the same as PetscInt, but if PETSc was built with --with-64-bit-indices but Many brstandard C/Fortran integers are 32 bit then this is NOT the same as PetscInt it remains 32 bit Many br(except on very rare BLAS/LAPACK implementations that support 64 bit integers see the note below). Many br

PetscErrorCode PetscBLASIntCast(a,&b) checks if the given PetscInt a will fit in a PetscBLASInt, if not it Many brgenerates a PETSC_ERR_ARG_OUTOFRANGE error Many br

Installation Notes: The 64bit versions of MATLAB ship with BLAS and LAPACK that use 64 bit integers for sizes etc, Many brif you run ./configure with the option Many br--with-blas-lapack-lib=[/Applications/MATLAB_R2010b.app/bin/maci64/libmwblas.dylib,/Applications/MATLAB_R2010b.app/bin/maci64/libmwlapack.dylib] Many brbut you need to also use --known-64-bit-blas-indices. Many br

MKL also ships with 64 bit integer versions of the BLAS and LAPACK, if you select those you must also ./configure with --known-64-bit-blas-indices Many br

Developer Notes: Eventually ./configure should automatically determine the size of the integers used by BLAS/LAPACK. Many br

External packages such as hypre, ML, SuperLU etc do not provide any support for passing 64 bit integers to BLAS/LAPACK so cannot Many brbe used with PETSc if you have set PetscBLASInt to long int. Many br

### See Also

PetscMPIInt, PetscInt, PetscBLASIntCast()

Level:intermediate
Location:include/petscsys.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages