Skip to content

Commit

Permalink
Removed commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
ranapratap55 committed Oct 8, 2024
1 parent 1c32ee1 commit 74cc26c
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions src/device/non_caching_load.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,37 +73,5 @@ __host__ __device__ T __non_caching_load(const T* p)
#undef LD
}

// template<typename T0, typename T1>
// inline
// __attribute__((always_inline))
// __host__ __device__ void __non_caching_load_128b(const T0 ret, const T1* p0)
// {
// #if !defined(__GFX11__) && !defined(GFX12)
// #define LD5 "global_load_dwordx4"
// #if defined(__gfx940__) || defined(__gfx941__) || defined(__gfx942__)
// #define BITS "sc0 sc1 nt"
// #elif defined(__GFX9__) || defined(__gfx1010__) || defined(__gfx1011__) || defined(__gfx1012__) || defined(__gfx1013__)
// #define BITS "glc slc"
// #else
// #define BITS "glc slc dlc"
// #endif
// #define WAIT ((0 << 14) | (0x3f << 8) | (0x7) << 4)
// #else
// #define LD5 "global_load_b128"
// #define BITS "glc slc dlc"
// #define WAIT ((0 << 10) | (0x3f << 4) | 0x7)
// #endif
// #define LOAD5 LD5 " %0 %1 off " BITS

// asm volatile(LOAD5 : "=v"(ret) : "v"(p0));
// __builtin_amdgcn_s_waitcnt(WAIT);

// return;

// #undef LOAD5
// #undef WAIT
// #undef BITS
// #undef LD5
// }

#endif

0 comments on commit 74cc26c

Please sign in to comment.