/ani/mrses

To get this branch, use:
bzr branch http://suren.me/webbzr/ani/mrses

« back to all changes in this revision

Viewing changes to cell/mrses_impl.h

  • Committer: Suren A. Chilingaryan
  • Date: 2010-04-30 15:00:46 UTC
  • Revision ID: csa@dside.dyndns.org-20100430150046-1x5cwqqelzx420vf
Fix SPE crashes on big (above 4096) and non-power-of-2 number of properties

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#define SPE_BLOCK 16            // This indicates minimal block of processing by SPE code
13
13
#define SIMD_BLOCK 16           // In bytes
14
14
#define HW_ITERATE_BLOCKS 16
 
15
#define SPE_MAX_TRANSFER_SIZE 16384
15
16
 
16
17
//#define TRACE_TIMINGS 1
17
18
//#define USE_FAST_RANDOM 1             //* default random/rand somehow sequentalize threads
33
34
struct MRSESContextT {
34
35
    MRSESDistance dist;
35
36
 
 
37
    int palloc;                 /**< Size of vectors in index array, iterate only */
36
38
    int properties;             /**< Number of properties */
37
39
    int alloc;                  /**< Size of vectors in A and B matrixes for alignment */
38
40
    int nA, nB;                 /**< Number of samples */