cpucomputation.h
来自「PDE simulator on GPU.」· C头文件 代码 · 共 35 行
H
35 行
// CPUcomputation.h: interface for the CCPUcomputation class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_CPUCOMPUTATION_H__BF01F0B7_35DD_48A2_9FCB_7A4C418D4DCD__INCLUDED_)
#define AFX_CPUCOMPUTATION_H__BF01F0B7_35DD_48A2_9FCB_7A4C418D4DCD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "CommonHW.h"
//////////////////////////////////////////////////////////////////////////////
//// Operations on CPU VS on GPU
//// Latest Date: 2003/11/10
//// Mainly for the computation on CPU
//////////////////////////////////////////////////////////////////////////////
void on_cpu_clVecOp(OperationOnGPUEnum op, float a, float b, float* x, float* y, float* result, int Dim_Vector);
void on_cpu_clMatVec(float* A, float* x, float* result, int Dim_Vector);
float on_cpu_clVecReduce(OperationOnGPUEnum cmb, float* x, int Dim_Vector);
void on_cpu_clMatMat(float* A, float* B, float* result, int Dim_Vector);
float on_cpu_clInnerProduct(float* x, float* y, int Dim_Vector);
//////////////////////////////////////////////////////////////////////////////
///// On CPU Linear Equations Solver
void JacobiSolverOnCPU(float *M, float *x, float *b, int Dim);
void GaussSeidelSolverOnCPU(float *M, float *x, float *b, int Dim);
void SucOverRelaxSolverOnCPU(float *M, float *x, float *b, int Dim);
void SteepestDescentSolverOnCPU(float *M, float *x, float *b, int Dim);
void ConjugateGradientSolverOnCPU(float *M, float *x, float *b, int Dim);
#endif // !defined(AFX_CPUCOMPUTATION_H__BF01F0B7_35DD_48A2_9FCB_7A4C418D4DCD__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?