5.8.6.1 : Le header gray_scott_nvcpp.h
Écrivons le fichier gray_scott_nvcpp.h :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#ifndef __GRAY_SCOTT_NVCPP_H__ #define __GRAY_SCOTT_NVCPP_H__ #include <iostream> #include <vector> void gray_scott_nvcpp(float * matOutV, float * matInU, float * matInV, float * matTmpU, float * matTmpV, size_t nbImage, size_t nbExtraStep, size_t nbGpuCall, size_t nbRow, size_t nbCol, size_t paddedNbRow, size_t paddedNbCol, const float * matDeltaSquare, long nbStencilRow, long nbStencilCol, float diffusionRateU, float diffusionRateV, float feedRate, float killRate, float dt); #endif |
Le fichier gray_scott_nvcpp.h complet :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
/*************************************** Auteur : Pierre Aubert Mail : pierre.aubert@lapp.in2p3.fr Licence : CeCILL-C ****************************************/ #ifndef __GRAY_SCOTT_NVCPP_H__ #define __GRAY_SCOTT_NVCPP_H__ #include <iostream> #include <vector> void gray_scott_nvcpp(float * matOutV, float * matInU, float * matInV, float * matTmpU, float * matTmpV, size_t nbImage, size_t nbExtraStep, size_t nbGpuCall, size_t nbRow, size_t nbCol, size_t paddedNbRow, size_t paddedNbCol, const float * matDeltaSquare, long nbStencilRow, long nbStencilCol, float diffusionRateU, float diffusionRateV, float feedRate, float killRate, float dt); #endif |
Vous pouvez le télécharger ici.