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

Intrepid2: Set correct execution spaces for Projection tests #7438

Merged
merged 3 commits into from
Jun 14, 2020
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
77 changes: 64 additions & 13 deletions packages/intrepid2/unit-test/Projection/Cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,75 +1,126 @@
TRIBITS_ADD_EXECUTABLE_AND_TEST(
TRIBITS_ADD_EXECUTABLE(
Test_InterpolationProjection_HEX
SOURCES test_interpolation_projection_HEX.cpp
ADD_DIR_TO_NAME
)

TRIBITS_ADD_TEST(
Test_InterpolationProjection_HEX
ARGS PrintItAll
NUM_MPI_PROCS 1
PASS_REGULAR_EXPRESSION "TEST PASSED"
ADD_DIR_TO_NAME
RUN_SERIAL
)

TRIBITS_ADD_EXECUTABLE_AND_TEST(

TRIBITS_ADD_EXECUTABLE(
Test_InterpolationProjection_TET
SOURCES test_interpolation_projection_TET.cpp
ADD_DIR_TO_NAME
)

TRIBITS_ADD_TEST(
Test_InterpolationProjection_TET
ARGS PrintItAll
NUM_MPI_PROCS 1
PASS_REGULAR_EXPRESSION "TEST PASSED"
ADD_DIR_TO_NAME
RUN_SERIAL
)


TRIBITS_ADD_EXECUTABLE_AND_TEST(
TRIBITS_ADD_EXECUTABLE(
Test_InterpolationProjection_QUAD
SOURCES test_interpolation_projection_QUAD.cpp
ADD_DIR_TO_NAME
)

TRIBITS_ADD_TEST(
Test_InterpolationProjection_QUAD
ARGS PrintItAll
NUM_MPI_PROCS 1
PASS_REGULAR_EXPRESSION "TEST PASSED"
ADD_DIR_TO_NAME
RUN_SERIAL
)

TRIBITS_ADD_EXECUTABLE_AND_TEST(


TRIBITS_ADD_EXECUTABLE(
Test_InterpolationProjection_TRI
SOURCES test_interpolation_projection_TRI.cpp
ADD_DIR_TO_NAME
)

TRIBITS_ADD_TEST(
Test_InterpolationProjection_TRI
ARGS PrintItAll
NUM_MPI_PROCS 1
PASS_REGULAR_EXPRESSION "TEST PASSED"
ADD_DIR_TO_NAME
RUN_SERIAL
)

TRIBITS_ADD_EXECUTABLE_AND_TEST(


TRIBITS_ADD_EXECUTABLE(
Test_Convergence_HEX
SOURCES test_convergence_HEX.cpp
ADD_DIR_TO_NAME
)

TRIBITS_ADD_TEST(
Test_Convergence_HEX
ARGS PrintItAll
NUM_MPI_PROCS 1
PASS_REGULAR_EXPRESSION "TEST PASSED"
ADD_DIR_TO_NAME
RUN_SERIAL
)

TRIBITS_ADD_EXECUTABLE_AND_TEST(


TRIBITS_ADD_EXECUTABLE(
Test_Convergence_TET
SOURCES test_convergence_TET.cpp
ADD_DIR_TO_NAME
)

TRIBITS_ADD_TEST(
Test_Convergence_TET
ARGS PrintItAll
NUM_MPI_PROCS 1
PASS_REGULAR_EXPRESSION "TEST PASSED"
ADD_DIR_TO_NAME
RUN_SERIAL
)

TRIBITS_ADD_EXECUTABLE_AND_TEST(


TRIBITS_ADD_EXECUTABLE(
Test_Convergence_QUAD
SOURCES test_convergence_QUAD.cpp
ADD_DIR_TO_NAME
)

TRIBITS_ADD_TEST(
Test_Convergence_QUAD
ARGS PrintItAll
NUM_MPI_PROCS 1
PASS_REGULAR_EXPRESSION "TEST PASSED"
ADD_DIR_TO_NAME
RUN_SERIAL
)

TRIBITS_ADD_EXECUTABLE_AND_TEST(


TRIBITS_ADD_EXECUTABLE(
Test_Convergence_TRI
SOURCES test_convergence_TRI.cpp
ADD_DIR_TO_NAME
)

TRIBITS_ADD_TEST(
Test_Convergence_TRI
ARGS PrintItAll
NUM_MPI_PROCS 1
PASS_REGULAR_EXPRESSION "TEST PASSED"
ADD_DIR_TO_NAME
RUN_SERIAL
)
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::DeRhamCommutativityHex<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::DeRhamCommutativityHex<double,Kokkos::Cuda>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::DeRhamCommutativityQuad<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::DeRhamCommutativityQuad<double,Kokkos::Cuda>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::DeRhamCommutativityTet<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::DeRhamCommutativityTet<double,Kokkos::Cuda>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::DeRhamCommutativityTri<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::DeRhamCommutativityTri<double,Kokkos::Cuda>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::ConvergenceHex<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::ConvergenceHex<double,Kokkos::Cuda>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::ConvergenceQuad<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::ConvergenceQuad<double,Kokkos::Cuda>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::ConvergenceTet<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::ConvergenceTet<double,Kokkos::Cuda>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::ConvergenceTri<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::ConvergenceTri<double,Kokkos::Cuda>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::DeRhamCommutativityHex<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::DeRhamCommutativityHex<double,Kokkos::OpenMP>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::DeRhamCommutativityQuad<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::DeRhamCommutativityQuad<double,Kokkos::OpenMP>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::DeRhamCommutativityTet<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::DeRhamCommutativityTet<double,Kokkos::OpenMP>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::DeRhamCommutativityTri<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::DeRhamCommutativityTri<double,Kokkos::OpenMP>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::ConvergenceHex<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::ConvergenceHex<double,Kokkos::OpenMP>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::ConvergenceQuad<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::ConvergenceQuad<double,Kokkos::OpenMP>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::ConvergenceTet<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::ConvergenceTet<double,Kokkos::OpenMP>(verbose);

Kokkos::finalize();
return r_val;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
const bool verbose = (argc-1) > 0;
Kokkos::initialize();

const int r_val = Intrepid2::Test::ConvergenceTri<double,Kokkos::Serial>(verbose);
const int r_val = Intrepid2::Test::ConvergenceTri<double,Kokkos::OpenMP>(verbose);

Kokkos::finalize();
return r_val;
Expand Down