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 9c09221
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 @@ -218,6 +218,7 @@ Tensor& _compressed_row_strided_addmm_out(
}

namespace cpu {
#if !AT_USE_MKL_SPARSE()
template<typename scalar_t>
void addmv_sparse_csr(
const scalar_t* mat_values,
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 9c09221

Please sign in to comment.