Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid the SIMD code branch if the batched size is not a multiple of the vector length #1552

Merged
merged 1 commit into from
Sep 28, 2022
Merged
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: 1 addition & 1 deletion batched/sparse/impl/KokkosBatched_Spmv_TeamVector_Impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ KOKKOS_INLINE_FUNCTION int TeamVectorSpmvInternal::invoke(
const OrdinalType ys1) {
#if !defined(__CUDA_ARCH__) && !defined(__HIP_DEVICE_COMPILE__)
if (member.team_size() == 1) {
if (N_team > 1 && valuess0 == 1) {
if (N_team > 1 && valuess0 == 1 && valuess1 % N_team == 0) {
/*
Left layout as valuess0 = 1 and non-zero vector length given at
compilation time Here we use the SIMD data type which is using Intel
Expand Down