From eb3dde73c816997dd6a6310c1f06c0fd516076fb Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Tue, 8 May 2012 12:03:59 -0800 Subject: Fixing a potential problem. Right now this doesn't cause any trouble becaue increment_thread_id guarantees that this particular part of the condition is never false (in correct operation) Normal kernel configuration have the z dimention smaller than the x dimention which causes it to be always true, but with a weird configuration, this is a potential place for failure. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12357] --- src/abstract_hardware_model.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/abstract_hardware_model.h') diff --git a/src/abstract_hardware_model.h b/src/abstract_hardware_model.h index 7a710f8..f70058e 100644 --- a/src/abstract_hardware_model.h +++ b/src/abstract_hardware_model.h @@ -173,7 +173,7 @@ public: } bool more_threads_in_cta() const { - return m_next_tid.z < m_block_dim.z && m_next_tid.y < m_block_dim.y && m_next_tid.z < m_block_dim.x; + return m_next_tid.z < m_block_dim.z && m_next_tid.y < m_block_dim.y && m_next_tid.x < m_block_dim.x; } unsigned get_uid() const { return m_uid; } std::string name() const; -- cgit v1.3