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

Exclude AVX512 lines from codecov #340

Merged
merged 17 commits into from
Aug 24, 2022
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
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ fixes:

ignore:
- "pennylane_lightning/src/tests"
- "pennylane_lightning/src/gates/cpu_kernels/avx_common"

codecov:
notify:
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.26.0-dev4"
__version__ = "0.26.0-dev5"
1 change: 1 addition & 0 deletions pennylane_lightning/src/algorithms/JacobianTape.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ namespace Pennylane::Algorithms {
* @brief Utility class for encapsulating operations used by AdjointJacobian
* class.
*/

template <class T> class OpsData {
private:
size_t num_par_ops_;
Expand Down
2 changes: 2 additions & 0 deletions pennylane_lightning/src/simulator/CPUMemoryModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <cstdint>
#include <memory>

// LCOV_EXCL_START
namespace Pennylane {

/**
Expand Down Expand Up @@ -111,3 +112,4 @@ constexpr auto getBestAllocator() -> Util::AlignedAllocator<T> {
return getAllocator<T>(bestCPUMemoryModel());
}
} // namespace Pennylane
// LCOV_EXCL_STOP
12 changes: 12 additions & 0 deletions pennylane_lightning/src/simulator/KernelMap_X64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,41 +32,53 @@ int assignKernelsForGateOp() {

if (RuntimeInfo::AVX2() && RuntimeInfo::FMA()) {
assignKernelsForGateOp_AVX2(CPUMemoryModel::Aligned256);
// LCOV_EXCL_START
if (!RuntimeInfo::AVX512F()) {
assignKernelsForGateOp_AVX2(CPUMemoryModel::Aligned512);
}
// LCOV_EXCL_STOP
}
// LCOV_EXCL_START
if (RuntimeInfo::AVX512F()) {
assignKernelsForGateOp_AVX512(CPUMemoryModel::Aligned512);
}
// LCOV_EXCL_STOP
return 1;
}
int assignKernelsForGeneratorOp() {
assignKernelsForGeneratorOp_Default();

if (RuntimeInfo::AVX2() && RuntimeInfo::FMA()) {
assignKernelsForGeneratorOp_AVX2(CPUMemoryModel::Aligned256);
// LCOV_EXCL_START
if (!RuntimeInfo::AVX512F()) {
assignKernelsForGeneratorOp_AVX2(CPUMemoryModel::Aligned512);
}
// LCOV_EXCL_STOP
}
// LCOV_EXCL_START
if (RuntimeInfo::AVX512F()) {
assignKernelsForGeneratorOp_AVX512(CPUMemoryModel::Aligned512);
}
// LCOV_EXCL_STOP
return 1;
}
int assignKernelsForMatrixOp() {
assignKernelsForMatrixOp_Default();

if (RuntimeInfo::AVX2() && RuntimeInfo::FMA()) {
assignKernelsForMatrixOp_AVX2(CPUMemoryModel::Aligned256);
// LCOV_EXCL_START
if (!RuntimeInfo::AVX512F()) {
assignKernelsForMatrixOp_AVX2(CPUMemoryModel::Aligned512);
}
// LCOV_EXCL_STOP
}
// LCOV_EXCL_START
if (RuntimeInfo::AVX512F()) {
assignKernelsForMatrixOp_AVX512(CPUMemoryModel::Aligned512);
}
// LCOV_EXCL_STOP
return 1;
}
} // namespace Pennylane::KernelMap::Internal