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

Hush compiler warning and fix typos #493

Merged
merged 1 commit into from
Nov 6, 2024
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
10 changes: 6 additions & 4 deletions src/TiledArray/math/linalg/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ inline DistArray<Tile, Policy> concat(const DistArray<Tile, Policy>& a,
case Concat::Both:
return TiledArray::concat<Tile, Policy>({a, b},
std::vector<bool>{true, true});
default:
TA_EXCEPTION("Invalid Concat value");
}
}

Expand Down Expand Up @@ -257,7 +259,7 @@ inline auto norm2(
TiledArray::math::linalg::detail::prefer_distributed(MATRIX)) \
return TiledArray::math::linalg::ttg::FN; \
if (get_linalg_backend() == LinearAlgebraBackend::ScaLAPACK) \
TA_EXCEPTION("ScaLAPACK lineear algebra backend is not available"); \
TA_EXCEPTION("ScaLAPACK linear algebra backend is not available"); \
return non_distributed::FN;
#elif !TILEDARRAY_HAS_TTG && TILEDARRAY_HAS_SCALAPACK
#define TILEDARRAY_MATH_LINALG_DISPATCH_W_TTG(FN, MATRIX) \
Expand All @@ -274,7 +276,7 @@ inline auto norm2(
if (get_linalg_backend() == LinearAlgebraBackend::TTG) \
TA_EXCEPTION("TTG linear algebra backend is not available"); \
if (get_linalg_backend() == LinearAlgebraBackend::ScaLAPACK) \
TA_EXCEPTION("ScaLAPACK lineear algebra backend is not available"); \
TA_EXCEPTION("ScaLAPACK linear algebra backend is not available"); \
return non_distributed::FN;
#endif // !TILEDARRAY_HAS_TTG && !TILEDARRAY_HAS_SCALAPACK
#endif // defined(TILEDARRAY_MATH_LINALG_DISPATCH_W_TTG)
Expand All @@ -301,7 +303,7 @@ inline auto norm2(
TA_EXCEPTION(TILEDARRAY_MATH_LINALG_DISPATCH_WO_TTG_STRINGIFY( \
FN) " is not provided by the TTG backend"); \
if (get_linalg_backend() == LinearAlgebraBackend::ScaLAPACK) \
TA_EXCEPTION("ScaLAPACK lineear algebra backend is not available"); \
TA_EXCEPTION("ScaLAPACK linear algebra backend is not available"); \
return non_distributed::FN;
#elif !TILEDARRAY_HAS_TTG && TILEDARRAY_HAS_SCALAPACK
#define TILEDARRAY_MATH_LINALG_DISPATCH_WO_TTG(FN, MATRIX) \
Expand All @@ -318,7 +320,7 @@ inline auto norm2(
if (get_linalg_backend() == LinearAlgebraBackend::TTG) \
TA_EXCEPTION("TTG linear algebra backend is not available"); \
if (get_linalg_backend() == LinearAlgebraBackend::ScaLAPACK) \
TA_EXCEPTION("ScaLAPACK lineear algebra backend is not available"); \
TA_EXCEPTION("ScaLAPACK linear algebra backend is not available"); \
return non_distributed::FN;
#endif // !TILEDARRAY_HAS_TTG && !TILEDARRAY_HAS_SCALAPACK
#endif // defined(TILEDARRAY_MATH_LINALG_DISPATCH_WO_TTG)
Expand Down
Loading