Skip to content

Commit

Permalink
formatting and dpcpp fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Sep 23, 2022
1 parent 8af2dc7 commit ef2b32f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions dev_tools/scripts/config
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
- PathPrefix: "ginkgo/core"
- PathIgnore: "0"
- RemoveTest: "true"
- "^test/matric/csr_kernels2.cpp"
- CoreSuffix: "_kernels2"
- PathPrefix: "ginkgo/core"
- PathIgnore: "0"
- RemoveTest: "true"
- "elimination_forest\.cpp"
- FixInclude: "core/factorization/elimination_forest.hpp"
- "common/unified/.*.cpp"
Expand Down
2 changes: 1 addition & 1 deletion test/matrix/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ginkgo_create_common_device_test(csr_kernels)
ginkgo_create_common_device_test(csr_kernels2)
ginkgo_create_common_test(csr_kernels2)
ginkgo_create_common_test(coo_kernels)
ginkgo_create_common_test(dense_kernels)
ginkgo_create_common_test(diagonal_kernels)
Expand Down
8 changes: 7 additions & 1 deletion test/matrix/csr_kernels2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


#include <random>
#include <stdexcept>


#include <gtest/gtest.h>
Expand All @@ -49,7 +50,6 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <ginkgo/core/matrix/identity.hpp>
#include <ginkgo/core/matrix/sellp.hpp>
#include <ginkgo/core/matrix/sparsity_csr.hpp>
#include <stdexcept>


#include "core/components/prefix_sum_kernels.hpp"
Expand Down Expand Up @@ -1199,6 +1199,9 @@ TEST_F(Csr, CreateSubMatrixIsEquivalentToRef)
}


#ifndef GKO_COMPILING_DPCPP


TEST_F(Csr, CanDetectMissingDiagonalEntry)
{
using T = double;
Expand Down Expand Up @@ -1245,3 +1248,6 @@ TEST_F(Csr, AddScaledIdentityToNonSquare)

GKO_ASSERT_MTX_NEAR(mtx, dmtx, r<vtype>::value);
}


#endif // GKO_COMPILING_DPCPP

0 comments on commit ef2b32f

Please sign in to comment.