[petsc-dev] fix needed for PETSc's use of _mm_prefetch

Barry Smith bsmith at mcs.anl.gov
Wed Aug 25 18:19:50 CDT 2010


libfast in: /users/nyevik/MANUALBUILD/petsc-3.1-p4/src/mat/impls/aij/seq
inode.c: In function 'PetscErrorCode MatMult_SeqAIJ_Inode(_p_Mat*, _p_Vec*, _p_Vec*)':
inode.c:426: error: invalid conversion from 'int' to '_mm_hint'
inode.c:426: error:   initializing argument 2 of 'void _mm_prefetch(const void*, _mm_hint)'
inode.c:427: error: invalid conversion from 'int' to '_mm_hint'
inode.c:427: error:   initializing argument 2 of 'void _mm_prefetch(const void*, _mm_hint)'

The PETSc code currently handles all this as the second argument is an int. This has to be fixed in petsc-dev to handle the case when int cannot be cast to _mm_hint

Volunteers?

   Barry





More information about the petsc-dev mailing list