 
    cudaEventDestroy( eStart );
    cudaEventDestroy( eStop );
-
-   //////free memory space in CUDA
 
    for(int i=0; i<array_size;i++)
    {       


    cudaEventElapsedTime(&cuda_elapsedTime,eStart,eStop);
    printf("Stemmer GPU Time=%4.3f ms\n", cuda_elapsedTime);
    for(int i=0;i<array_size;i++)
    {

        cudaMemcpy(&(stem_list[i]->j),&(host2_stem_list[i]->j),sizeof(int),cudaMemcpyDeviceToHost);


/*--------------------stemmer definition ends here------------------------*/

#include <limits.h>
#include <float.h>
#include <math.h>
#include <sys/time.h>

static struct stemmer **stem_list;

struct stemmer **dev_stem_list;

#define ARRAYSIZE 4100000
#define A_INC       10000
#define INC            32 /* size units in which s is increased */

static int a_max = ARRAYSIZE;
static int i_max = INC;  /* maximum offset in s */

#define LETTER(ch) (isupper(ch) || islower(ch))
