diff options
| author | Andrew M. B. Boktor <[email protected]> | 2012-05-08 12:03:59 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:19:38 -0700 |
| commit | eb3dde73c816997dd6a6310c1f06c0fd516076fb (patch) | |
| tree | 891502c9c9854016bb8394f551aa6ebda1c3bb81 /src | |
| parent | 3bc5f3b298f929eda7407bf233ad7e4846e57776 (diff) | |
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]
Diffstat (limited to 'src')
| -rw-r--r-- | src/abstract_hardware_model.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
