-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unit-tests: adding logic specific to openmptarget backend
Adding the openmptarget folder that contains the source files for the backend's unit-tests. Ignoring Vector batched tests that only run on host. Also commenting out the batched tests as they do not build correctly at the moment.
- Loading branch information
Showing
13 changed files
with
124 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#ifndef TEST_OPENMPTARGET_HPP | ||
#define TEST_OPENMPTARGET_HPP | ||
|
||
#include <gtest/gtest.h> | ||
#include <Kokkos_Core.hpp> | ||
#include <KokkosKernels_config.h> | ||
|
||
#if defined(KOKKOSKERNELS_TEST_ETI_ONLY) && !defined(KOKKOSKERNELS_ETI_ONLY) | ||
#define KOKKOSKERNELS_ETI_ONLY | ||
#endif | ||
|
||
class openmptarget : public ::testing::Test { | ||
protected: | ||
static void SetUpTestCase() | ||
{ | ||
} | ||
|
||
static void TearDownTestCase() | ||
{ | ||
} | ||
}; | ||
|
||
#define TestCategory openmptarget | ||
#define TestExecSpace Kokkos::Experimental::OpenMPTarget | ||
|
||
#endif // TEST_OPENMPTARGET_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef TEST_OPENMPTARGET_BATCHED_CPP | ||
#define TEST_OPENMPTARGET_BATCHED_CPP | ||
|
||
#include "Test_OpenMPTarget.hpp" | ||
#include "Test_Batched.hpp" | ||
|
||
#endif // TEST_OPENMPTARGET_BATCHED_CPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef TEST_OPENMPTARGET_BLAS_CPP | ||
#define TEST_OPENMPTARGET_BLAS_CPP | ||
|
||
#include "Test_OpenMPTarget.hpp" | ||
#include "Test_Blas.hpp" | ||
|
||
#endif // TEST_OPENMPTARGET_BLAS_CPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef TEST_OPENMPTARGET_COMMON_CPP | ||
#define TEST_OPENMPTARGET_COMMON_CPP | ||
|
||
#include "Test_OpenMPTarget.hpp" | ||
#include "Test_Common.hpp" | ||
|
||
#endif // TEST_OPENMPTARGET_COMMON_CPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef TEST_OPENMPTARGET_GRAPH_CPP | ||
#define TEST_OPENMPTARGET_GRAPH_CPP | ||
|
||
#include "Test_OpenMPTarget.hpp" | ||
#include "Test_Graph.hpp" | ||
|
||
#endif // TEST_OPENMPTARGET_GRAPH_CPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#ifndef TEST_OPENMPTARGET_SPARSE_CPP | ||
#define TEST_OPENMPTARGET_SPARSE_CPP | ||
|
||
#include "Test_OpenMPTarget.hpp" | ||
#include "Test_Sparse.hpp" | ||
|
||
#endif // TEST_OPENMPTARGET_SPARSE_CPP |