Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,10 @@ __global__ void GraphSafeGroupHadamardAmaxTmaKernel(
(compute_stage_x * kHadamardDimension * (THREADS_PER_CHUNK / kThreadsPerWarp)),
local_pre_rht_amax_reg, local_amax_reg, local_amax_t_reg);
}

// Ensure all threads have finished their computation before new data over-writes the shared
// memory.
__syncthreads();
}

// Ensure all threads have finished their computation before new data over-writes the shared
// memory.
__syncthreads();
// Ensure generic shared-memory accesses are visible before the next TMA write.
ptx::fence_proxy_async_shared_cta();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,11 +349,10 @@ __global__ void GroupHadamardAmaxTmaKernel(const __grid_constant__ CUtensorMap t
(compute_stage_x * kHadamardDimension * (THREADS_PER_CHUNK / kThreadsPerWarp)),
local_pre_rht_amax_reg, local_amax_reg, local_amax_t_reg);
}

// Ensure all threads have finished their computation before new data over-writes the shared
// memory.
__syncthreads();
}
// Ensure all threads have finished their computation before new data over-writes the shared
// memory.
__syncthreads();

// Ensure generic shared-memory accesses are visible before the next TMA write.
ptx::fence_proxy_async_shared_cta();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,10 @@ __global__ void HadamardAmaxTmaKernel(const __grid_constant__ CUtensorMap tensor
(compute_stage_x * kHadamardDimension * (THREADS_PER_CHUNK / kThreadsPerWarp)),
local_pre_rht_amax_reg, local_amax_reg, local_amax_t_reg);
}

// Ensure all threads have finished their computation before new data over-writes the shared
// memory.
__syncthreads();
}

// Ensure all threads have finished their computation before new data over-writes the shared
// memory.
__syncthreads();
// Ensure generic shared-memory accesses are visible before the next TMA write.
ptx::fence_proxy_async_shared_cta();
}
Expand Down