Skip to content

Commit

Permalink
replace some errors with info
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Nov 15, 2024
1 parent 5e7a4de commit b0c5f9c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions particle_structs/src/cabm/cabm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ namespace pumipic {
int comm_rank;
MPI_Comm_rank(mpi_comm, &comm_rank);
if(!comm_rank)
pPrintError( "building CabM\n");
pPrintInfo( "building CabM\n");

// build view of offsets for SoA indices within particle elements
offsets = buildOffset(particles_per_element, num_ptcls, extra_padding, padding_start);
Expand All @@ -181,7 +181,7 @@ namespace pumipic {
}
// populate AoSoA with input data if given
if (particle_elements.size() > 0 && particle_info != NULL) {
if(!comm_rank) pPrintError( "initializing CabM data\n");
if(!comm_rank) pPrintInfo( "initializing CabM data\n");
fillAoSoA(particle_elements, particle_info); // initialize data
}
}
Expand All @@ -202,7 +202,7 @@ namespace pumipic {
int comm_rank;
MPI_Comm_rank(input.mpi_comm, &comm_rank);
if(!comm_rank)
pPrintError( "building CabM for %s\n", name.c_str());
pPrintInfo( "building CabM for %s\n", name.c_str());

// build view of offsets for SoA indices within particle elements
offsets = buildOffset(input.ppe, num_ptcls, extra_padding, padding_start);
Expand All @@ -222,7 +222,7 @@ namespace pumipic {
createGlobalMapping(input.e_gids, element_to_gid, element_gid_to_lid);
// populate AoSoA with input data if given
if (input.particle_elms.size() > 0 && input.p_info != NULL) {
if(!comm_rank) pPrintError( "initializing CabM data\n");
if(!comm_rank) pPrintInfo( "initializing CabM data\n");
fillAoSoA(input.particle_elms, input.p_info); // initialize data
}
}
Expand Down
4 changes: 2 additions & 2 deletions particle_structs/src/csr/CSR_buildFns.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace pumipic {
MPI_Comm_rank(mpi_comm, &comm_rank);

if(!comm_rank)
pPrintError( "Building CSR\n");
pPrintInfo( "Building CSR\n");

// SS1 allocate the offsets array and use an exclusive_scan (aka prefix sum)
// to fill the entries of the offsets array.
Expand All @@ -85,7 +85,7 @@ namespace pumipic {
// If particle info is provided then enter the information
lid_t given_particles = particle_elements.size();
if (given_particles > 0 && particle_info != NULL) {
if(!comm_rank) pPrintError( "initializing CSR data\n");
if(!comm_rank) pPrintInfo( "initializing CSR data\n");
initCsrData(particle_elements, particle_info);
}

Expand Down
4 changes: 2 additions & 2 deletions particle_structs/src/dps/dps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ namespace pumipic {
int comm_rank;
MPI_Comm_rank(mpi_comm, &comm_rank);
if(!comm_rank)
pPrintError( "building DPS\n");
pPrintInfo( "building DPS\n");

// calculate num_soa_ from number of particles + extra padding
num_soa_ = Kokkos::ceil(Kokkos::ceil(double(num_ptcls)/AoSoA_t::vector_length)*(1+extra_padding));
Expand All @@ -145,7 +145,7 @@ namespace pumipic {
createGlobalMapping(element_gids, element_to_gid, element_gid_to_lid);
// populate AoSoA with input data if given
if (particle_elements.size() > 0 && particle_info != NULL) {
if(!comm_rank) pPrintError( "initializing DPS data\n");
if(!comm_rank) pPrintInfo( "initializing DPS data\n");
fillAoSoA(particle_elements, particle_info, parentElms_); // fill aosoa with data
}
else
Expand Down
2 changes: 1 addition & 1 deletion particle_structs/src/scs/SellCSigma.h
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void SellCSigma<DataTypes, MemSpace>::construct(kkLidView ptcls_per_elem,
C_ = chooseChunkHeight(C_max, ptcls_per_elem);

if(!comm_rank)
pPrintError( "Building SCS with C: %d sigma: %d V: %d\n",C_,sigma,V_);
pPrintInfo( "Building SCS with C: %d sigma: %d V: %d\n",C_,sigma,V_);
//Perform sorting
kkLidView ptcls;
kkLidView index;
Expand Down
8 changes: 4 additions & 4 deletions support/ppTiming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ namespace pumipic {
if (prebarrierTime >= PREBARRIER_TOL) {
ptr += sprintf(ptr, " pre-brarrier (seconds) %f", prebarrierTime);
}
pPrintError( "%s\n", buffer);
pPrintInfo( "%s\n", buffer);
}
}
}
}

void PrintAdditionalTimeInfo(char* str, int v) {
if (isTiming() && verbosity >= v) {
pPrintError( "%s\n", str);
pPrintInfo( "%s\n", str);
}
}

Expand Down Expand Up @@ -183,7 +183,7 @@ namespace pumipic {
buffer <<" Total Prebarrier=" << time_per_op[index].prebarrier;
buffer <<'\n';
}
pPrintError( "%s\n", buffer.str().c_str());
pPrintInfo( "%s\n", buffer.str().c_str());
}
}
}
Expand Down Expand Up @@ -268,7 +268,7 @@ namespace pumipic {
int size = 1;
MPI_Bcast(&size, 1, MPI_INT, 0, MPI_COMM_WORLD);
MPI_Bcast(end, 1, MPI_CHAR, 0, MPI_COMM_WORLD);
pPrintError( "%s\n", buffer.str().c_str());
pPrintInfo( "%s\n", buffer.str().c_str());

}
else if (comm_rank) {
Expand Down

0 comments on commit b0c5f9c

Please sign in to comment.