Skip to content

Commit

Permalink
Add ifdef guard
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed Mar 22, 2023
1 parent c47a1ff commit 6d663f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aten/src/ATen/native/sparse/SparseBlasImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ Tensor& _compressed_row_strided_addmm_out(
return result;
}

#if !AT_USE_MKL_SPARSE()
namespace cpu {
template<typename scalar_t>
void addmv_sparse_csr(
Expand Down Expand Up @@ -266,6 +267,8 @@ void addmv_sparse_bsr(
}
});
}
#endif // !AT_USE_MKL_SPARSE()

/*
Computes a sparse matrix-dense vector product defined as
y <- alpha*op(A)*x + beta*y
Expand Down

0 comments on commit 6d663f7

Please sign in to comment.