summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.cc
blob: a0e21f7d01cd99bc952482d206f67802fc006497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "abstract_hardware_model.h"
#include "cuda-sim/memory.h"

void move_warp( warp_inst_t *&dst, warp_inst_t *&src )
{
   assert( dst->empty() );
   warp_inst_t* temp = dst;
   dst = src;
   src = temp;
   src->clear();
}

gpgpu_t::gpgpu_t()
{
   g_global_mem = new memory_space_impl<8192>("global",64*1024);
   g_param_mem = new memory_space_impl<8192>("param",64*1024);
   g_tex_mem = new memory_space_impl<8192>("tex",64*1024);
   g_surf_mem = new memory_space_impl<8192>("surf",64*1024);

   g_dev_malloc=GLOBAL_HEAP_START; 
}