Skip to content
Merged
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
2 changes: 2 additions & 0 deletions KernelBench/changelog/v0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Please refer to KernelBench v0.1 release note
https://scalingintelligence.stanford.edu/blogs/kernelbenchv01/
3 changes: 3 additions & 0 deletions KernelBench/changelog/v0.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Ongoing Effort

Updated Level1/92_cumsum_exclusive.py - Fix exclusive cumsum implementation
4 changes: 2 additions & 2 deletions KernelBench/level1/92_cumsum_exclusive.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def __init__(self, dim):
self.dim = dim

def forward(self, x):
exclusive_cumsum = torch.cat((torch.zeros_like(x.select(self.dim, 0).unsqueeze(self.dim)), x), dim=self.dim)[:-1]
return torch.cumsum(exclusive_cumsum, dim=self.dim)
cumsum = torch.cumsum(x.narrow(dim=self.dim, start=0, length=x.size(self.dim)-1), dim=self.dim)
return torch.cat((torch.zeros_like(x.select(self.dim, 0).unsqueeze(self.dim)), cumsum), dim=self.dim)

batch_size = 32768
input_shape = (32768,)
Expand Down