/tomo/pyhst

To get this branch, use:
bzr branch http://darksoft.org/webbzr/tomo/pyhst

« back to all changes in this revision

Viewing changes to dfi_cuda/dfi_cuda_defines.h

  • Committer: Suren A. Chilingaryan
  • Date: 2013-06-14 15:30:33 UTC
  • Revision ID: csa@dside.dyndns.org-20130614153033-t9b56hr4jdkd3ul8
Placeholders for DFI implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define MAXNPROJECTIONS 4096                    //!< Maximum number of supported projections per slices
 
2
#define HST_CUDA_MAX_DEVICES 16                 //!< Maximum CUDA-devices supported by the module (check tex_projes)
 
3
 
 
4
#define BLOCK_SIZE 16                           //!< CUDA block size (for filtering)
 
5
#define BLOCK_SIZE_X BLOCK_SIZE                 //!< Check kernels, there are some expectations
 
6
#define BLOCK_SIZE_Y BLOCK_SIZE                 //!< Check kernels, there are some expectations
 
7
 
 
8
    /* We should be carefoul here, in many cases it faster to preform everything at once
 
9
    probably due to the texture caching */
 
10
//#ifdef HST_OPTIMIZE_KEPLER
 
11
//# define BP_BATCH_SIZE 128                    //!< Batch size (in blocks) for Back Projection  (should be even)
 
12
//#else /* HW_OPTIMIZE_KEPLER */
 
13
//# ifdef  HW_IGNORE_OLD_HARDWARE
 
14
//#  define BP_BATCH_SIZE 128                   //!< Batch size (in blocks) for Back Projection  (should be even)
 
15
//# else /*  HW_IGNORE_OLD_HARDWARE */
 
16
//#  define BP_BATCH_SIZE 8                     //!< Batch size (in blocks) for Back Projection  (should be even)
 
17
//# endif /*  HW_IGNORE_OLD_HARDWARE */
 
18
//#endif /*  HW_OPTIMIZE_KEPLER */
 
19
//#define FFT_BATCH_SIZE 8                      //!< Batch size (in blocks) for FFT transformations (should be even)
 
20
 
 
21
 
 
22
#define BP_BATCH_SIZE 512
 
23
#define FFT_BATCH_SIZE 256                      //!< Anyway limited by size of constant memory
 
24