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

Tpetra: Adding beefy CPU perf test options #12936

Merged
merged 1 commit into from
Apr 18, 2024
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
38 changes: 37 additions & 1 deletion packages/tpetra/core/test/PerformanceCGSolve/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ IF (Tpetra_INST_DOUBLE)
)

TRIBITS_ADD_TEST(

Performance-CGSolve
NAME Performance_StrongScaling_CGSolve
ARGS "--size=200"
Expand All @@ -69,6 +68,43 @@ IF (Tpetra_INST_DOUBLE)
CATEGORIES PERFORMANCE
)

TRIBITS_ADD_TEST(
Performance-CGSolve
NAME Performance_StrongScaling_CGSolve
ARGS "--size=200"
COMM mpi
NUM_MPI_PROCS 25
STANDARD_PASS_OUTPUT
RUN_SERIAL
CATEGORIES PERFORMANCE
)

# For big machines

TRIBITS_ADD_TEST(
Performance-CGSolve
NAME Performance_StrongScaling_CGSolve
ARGS "--size=200"
COMM mpi
NUM_MPI_PROCS 81
STANDARD_PASS_OUTPUT
RUN_SERIAL
CATEGORIES PERFORMANCE
)

TRIBITS_ADD_TEST(
Performance-CGSolve
NAME Performance_StrongScaling_CGSolve
ARGS "--size=200"
COMM mpi
NUM_MPI_PROCS 100
STANDARD_PASS_OUTPUT
RUN_SERIAL
CATEGORIES PERFORMANCE
)



IF (Tpetra_ENABLE_CUDA)
MESSAGE(STATUS "Tpetra: Performance-CGSolve CUDA_LAUNCH_BLOCKING test ENABLED")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,11 @@ int run()
b = gen_type::generate_miniFE_vector (nsize, map->getComm ());
}

// Output the problem size
Tpetra::global_size_t ng = map->getGlobalNumElements();
if(!myRank)
std::cout<<"Global matrix size = "<<ng<<std::endl;

// The vector x on input is the initial guess for the CG solve.
// On output, it is the approximate solution.
RCP<vec_type> x (new vec_type (A->getDomainMap ()));
Expand Down
Loading