Skip to content

Commit

Permalink
unified test
Browse files Browse the repository at this point in the history
  • Loading branch information
masahi committed May 17, 2022
1 parent 754c83e commit df7708f
Show file tree
Hide file tree
Showing 3 changed files with 403 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/target/source/codegen_cuda.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include <tvm/tir/stmt_functor.h>
#include <tvm/tir/index_map.h>

#include <algorithm>
#include <cmath>
#include <string>
#include <utility>
Expand Down
2 changes: 1 addition & 1 deletion src/tir/transforms/lower_warp_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ Pass LowerWarpMemory() {
auto pass_func = [](PrimFunc f, IRModule m, PassContext ctx) {
auto* n = f.CopyOnWrite();
auto target = f->GetAttr<Target>(tvm::attr::kTarget);
int warp_size = 32;
int warp_size = target.value()->GetAttr<Integer>("thread_warp_size", 1).value();
WarpMemoryRewriter warp_memory_rewriter(warp_size);
auto stmt = warp_memory_rewriter.Rewrite(std::move(n->body));
n->body = UpdatePointerStorageScope(warp_memory_rewriter.new_storage_scopes_)(stmt);
Expand Down
Loading

0 comments on commit df7708f

Please sign in to comment.