Skip to content

Commit

Permalink
[HOTFIX] Workaround for HIP iGEMM in buffer_load_max_length (#2297)
Browse files Browse the repository at this point in the history
* add workaround for SWDEV_413051

* fix bugprone-branch-clone

---------

Co-authored-by: Jing Zhang <[email protected]>
Co-authored-by: Jun Liu <[email protected]>
  • Loading branch information
3 people committed Aug 17, 2023
1 parent 3fccdc9 commit 5b967b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/include/miopen/solver/implicitgemm_util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ MIOPEN_DECLARE_ENV_VAR(MIOPEN_DEBUG_CONV_IMPLICIT_GEMM_BLOCK_SYNC_LDS_WITHOUT_SY
// corresponding llvm intrinsic functions
// so we disable using those llvm intrinsic functions on gfx1030
#define WORKAROUND_MIOPEN_ISSUE_557 1
#define WORKAROUND_SWDEV_413051 1

namespace miopen {

Expand Down Expand Up @@ -497,7 +498,7 @@ static inline bool support_amd_buffer_atomic_fadd(const std::string& device_name
template <typename T>
int amd_buffer_load_max_length()
{
if(std::is_same<float, T>())
if(std::is_same<float, T>() || WORKAROUND_SWDEV_413051)
{
return 4;
}
Expand Down

0 comments on commit 5b967b9

Please sign in to comment.