Skip to content
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
4 changes: 3 additions & 1 deletion csrc/index_compute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1941,12 +1941,14 @@ bool shouldUseTensorIndexer(
producer->definition()->isA<LoadStoreOp>() &&
producer->definition()->as<LoadStoreOp>()->opType() ==
LoadStoreOpType::LdMatrix;
is_producer_ldmatrix_op = false;
bool is_producer_stmatrix_op_with_no_alloc_domain =
producer->definition() != nullptr &&
producer->definition()->isA<LoadStoreOp>() &&
producer->definition()->as<LoadStoreOp>()->opType() ==
LoadStoreOpType::StMatrix &&
!producer->hasAllocation();
is_producer_stmatrix_op_with_no_alloc_domain = false;

if (assert) {
NVF_ERROR(
Expand Down Expand Up @@ -1974,7 +1976,7 @@ bool shouldUseTensorIndexer(

// If opted in, TensorIndexer is used as long as it's supported
if (GpuLower::current()->idModelOptions().isTensorIndexerEnabled() &&
is_tensor_indexer_supported(/*assert=*/false)) {
is_tensor_indexer_supported(/*assert=*/true)) {
return true;
}

Expand Down
Loading