Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[do not merge] Register stealing #3566

Draft
wants to merge 1 commit into
base: elect-sync-out
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions __tmp_kernel_none_f0_c0_r0_g0.cu
Original file line number Diff line number Diff line change
Expand Up @@ -11344,6 +11344,7 @@ __global__ void __cluster_dims__(2, 1, 1) nvfuser_none_f0_c0_r0_g0(Tensor<__half
}
__syncthreads();
if ((((nvfuser_index_t)threadIdx.y) == 2)) {
asm volatile("{setmaxnreg.dec.sync.aligned.u32 56; \n\t}");
if ((Hopper::electSync(4294967295U) && b16)) {
#pragma unroll 4
for(nvfuser_index_t i24 = 0; i24 < i3; ++i24) {
Expand All @@ -11368,11 +11369,13 @@ __global__ void __cluster_dims__(2, 1, 1) nvfuser_none_f0_c0_r0_g0(Tensor<__half
}
}
}
return;
Copy link
Collaborator Author

@zasdfgbnm zasdfgbnm Dec 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This return is super important, without this, our perf will be 4% of cuBLAS.

 Time (%)  Total Time (ns)  Instances  Avg (ns)   Med (ns)   Min (ns)  Max (ns)  StdDev (ns)                                                  Name

 --------  ---------------  ---------  ---------  ---------  --------  --------  -----------  ----------------------------------------------------------------------------------------------------
     89.5          2213806          1  2213806.0  2213806.0   2213806   2213806          0.0  <unnamed>::nvfuser_none_f0_c0_r0_g0(<unnamed>::Tensor<<unnamed>::__half, (int)3, (int)3>, <unnamed>…
      3.6            87935          1    87935.0    87935.0     87935     87935          0.0  nvjet_hsh_256x128_64x4_1x2_h_bz_coopA_NTT

} else {
#pragma unroll
for(nvfuser_index_t i31 = 0; i31 < 4; ++i31) {
mbarrier::arrive(toSmem((&T8[(i31 + 4LL)])));
}
asm volatile("{setmaxnreg.inc.sync.aligned.u32 224; \n\t}");
#pragma unroll 4
for(nvfuser_index_t i32 = 0; i32 < i3; ++i32) {
nvfuser_index_t i33;
Expand Down
Binary file added report3.nsys-rep
Binary file not shown.
Binary file added report3.sqlite
Binary file not shown.
Loading