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

Add compile guards in EigenDecomposition for non-SIMD architectures #15

Merged
merged 1 commit into from
Jul 3, 2018
Merged
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
2 changes: 2 additions & 0 deletions include/EigenDecomposition.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ namespace EigenDecomposition
void matrix_matrix_multiply(const double (&D)[2][2], const double (&Q)[2][2], double (&A)[2][2]);
void matrix_matrix_multiply(const double (&D)[3][3], const double (&Q)[3][3], double (&A)[3][3]);

#ifndef STK_HAVE_NO_SIMD
// Simd solvers
void sym_diagonalize(const DoubleType (&A)[2][2], DoubleType (&Q)[2][2], DoubleType (&D)[2][2]);
void sym_diagonalize(const DoubleType (&A)[3][3], DoubleType (&Q)[3][3], DoubleType (&D)[3][3]);
void reconstruct_matrix_from_decomposition(const DoubleType (&D)[2][2], const DoubleType (&Q)[2][2], DoubleType (&A)[2][2]);
void reconstruct_matrix_from_decomposition(const DoubleType (&D)[3][3], const DoubleType (&Q)[3][3], DoubleType (&A)[3][3]);
void matrix_matrix_multiply(const DoubleType (&D)[2][2], const DoubleType (&Q)[2][2], DoubleType (&A)[2][2]);
void matrix_matrix_multiply(const DoubleType (&D)[3][3], const DoubleType (&Q)[3][3], DoubleType (&A)[3][3]);
#endif

}

Expand Down
3 changes: 2 additions & 1 deletion src/EigenDecomposition.C
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ EigenDecomposition::matrix_matrix_multiply(
}
}

#ifndef STK_HAVE_NO_SIMD
//--------------------------------------------------------------------------
//------------- SIMD solvers -----------------------------------------------
//--------------------------------------------------------------------------
Expand Down Expand Up @@ -510,7 +511,7 @@ EigenDecomposition::matrix_matrix_multiply(
}
}
}

#endif // STK_HAVE_NO_SIMD

} // namespace nalu
} // namespace Sierra