Skip to content
Snippets Groups Projects
tnlCuda.h 1.57 KiB
Newer Older
  • Learn to ignore specific revisions
  • /***************************************************************************
                              tnlCuda.h  -  description
                                 -------------------
        begin                : Nov 7, 2012
        copyright            : (C) 2012 by Tomas Oberhuber
        email                : tomas.oberhuber@fjfi.cvut.cz
     ***************************************************************************/
    
    /***************************************************************************
     *                                                                         *
     *   This program is free software; you can redistribute it and/or modify  *
     *   it under the terms of the GNU General Public License as published by  *
     *   the Free Software Foundation; either version 2 of the License, or     *
     *   (at your option) any later version.                                   *
     *                                                                         *
     ***************************************************************************/
    
    #ifndef TNLCUDA_H_
    #define TNLCUDA_H_
    
    #include <core/tnlDevice.h>
    #include <core/tnlString.h>
    
    #include <core/tnlAssert.h>
    
       static tnlString getDeviceType();
    
       static tnlDeviceEnum getDevice();
    
       static int getMaxGridSize();
    
       static void setMaxGridSize( int newMaxGridSize );
    
       static int getMaxBlockSize();
    
       static void setMaxBlockSize( int newMaxBlockSize );
    
       static int getGPUTransferBufferSize();
    
    
       protected:
    
       static int maxGridSize, maxBlockSize;
    
    #include <implementation/core/tnlCuda_impl.h>
    
    
    #endif /* TNLCUDA_H_ */