summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgpu-sim')
-rw-r--r--src/gpgpu-sim/mem_fetch.cc2
-rw-r--r--src/gpgpu-sim/shader.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/gpgpu-sim/mem_fetch.cc b/src/gpgpu-sim/mem_fetch.cc
index a09c071..abf1d4e 100644
--- a/src/gpgpu-sim/mem_fetch.cc
+++ b/src/gpgpu-sim/mem_fetch.cc
@@ -117,7 +117,7 @@ bool mem_fetch::isatomic() const
void mem_fetch::do_atomic()
{
- m_inst.do_atomic();
+ m_inst.do_atomic( m_access.get_warp_mask() );
}
bool mem_fetch::istexture() const
diff --git a/src/gpgpu-sim/shader.h b/src/gpgpu-sim/shader.h
index e7d2f1b..5db35d3 100644
--- a/src/gpgpu-sim/shader.h
+++ b/src/gpgpu-sim/shader.h
@@ -1110,8 +1110,6 @@ public:
mem_fetch *alloc( const warp_inst_t &inst, const mem_access_t &access ) const
{
warp_inst_t inst_copy = inst;
- // tgrogers Oct 27, 2011 - I am commenting out this line of code, because it is screwing up our instruction counts on memory instructions. I am not sure what the point of this was, because no one seems to read the active mask on the memory fetches's warp instruction.
- //inst_copy.set_active(access.get_warp_mask());
mem_fetch *mf = new mem_fetch(access,
&inst_copy,
access.is_write()?WRITE_PACKET_SIZE:READ_PACKET_SIZE,