Changeset 414:1c75332cde6d

Show
Ignore:
Timestamp:
10/28/2012 10:35:16 PM (8 months ago)
Author:
Andreas Schaefer <gentryx@…>
Branch:
default
Message:

testing classic LBM implementation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/testbed/performancetests/cudatests.cu

    r413 r414  
    377377}; 
    378378 
     379template<int DIM_X, int DIM_Y, int DIM_Z> 
     380class LBMClassic 
     381{ 
     382public: 
     383    static void run(dim3 dimGrid, dim3 dimBlock, int dimX, int dimY, int dimZ, double *gridOld, double *gridNew) 
     384    { 
     385        updateLBMClassic<DIM_X, DIM_Y, DIM_Z><<<dimGrid, dimBlock>>>(dimX, dimY, dimZ, gridOld, gridNew); 
     386    } 
     387}; 
     388 
    379389template<template<int A, int B, int C> class KERNEL, int DIM_X, int DIM_Y, int DIM_Z>  
    380390double benchmarkCUDA(int dimX, int dimY, int dimZ, int repeats)  
     
    444454    if (dim <= DIM) {                                                   \ 
    445455        std::cout << dim << " "                                         \ 
    446                   << benchmarkCUDA<LBMSoA, DIM + ADD, DIM, 256 + 64>(   \ 
     456                  << benchmarkCUDA<LBMClassic, DIM + ADD, DIM, 256 + 64>(   \ 
    447457                      dim, dim, 256 + 32 - 4, 20) << "\n";              \ 
    448458        return;                                                         \ 
    449459    } 
     460 
     461                  // << benchmarkCUDA<LBMSoA, DIM + ADD, DIM, 256 + 64>(   \ 
    450462 
    451463    // CASE(32,  12);