1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatCUSPSetFormat.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>MatCUSPSetFormat</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.4.2 2013-07-02</b></div>
<A NAME="MatCUSPSetFormat"><H1>MatCUSPSetFormat</H1></A>
Sets the storage format of CUSP matrices for a particular operation. Only the <A HREF="../Mat/MatMult.html#MatMult">MatMult</A> operation can use different GPU storage formats for AIJCUSP matrices. This requires the txpetscgpu package. Use --download-txpetscgpu to build/install PETSc to use these capabilities. If txpetscgpu is not enabled, this function simply passes through leaving the matrix in the original CSR format for usage on the GPU.
<H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
<PRE>
#include "petscmat.h"
#undef __FUNCT__
#define __FUNCT__ "MatCUSPSetFormat"
PetscErrorCode MatCUSPSetFormat(Mat A,MatCUSPFormatOperation op,MatCUSPStorageFormat format)
</PRE>
Not Collective
<P>
<H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>A </B></TD><TD>- Matrix of type SEQAIJCUSP
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>op </B></TD><TD>- <A HREF="../Mat/MatCUSPFormatOperation.html#MatCUSPFormatOperation">MatCUSPFormatOperation</A>. SEQAIJCUSP matrices support MAT_CUSP_MULT and MAT_CUSP_ALL. MPIAIJCUSP matrices support MAT_CUSP_MULT_DIAG, MAT_CUSP_MULT_OFFDIAG, and MAT_CUSP_ALL.
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>format </B></TD><TD>- <A HREF="../Mat/MatCUSPStorageFormat.html#MatCUSPStorageFormat">MatCUSPStorageFormat</A> (one of MAT_CUSP_CSR, MAT_CUSP_DIA, MAT_CUSP_ELL)
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Output Parameter</FONT></H3>
<P>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../Mat/MatCUSPStorageFormat.html#MatCUSPStorageFormat">MatCUSPStorageFormat</A>, <A HREF="../Mat/MatCUSPFormatOperation.html#MatCUSPFormatOperation">MatCUSPFormatOperation</A>
<BR><P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>intermediate
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/mat/impls/aij/seq/seqcusp/aijcusp.cu#MatCUSPSetFormat">src/mat/impls/aij/seq/seqcusp/aijcusp.cu</A>
<BR><A HREF="./index.html">Index of all Mat routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|