Skip to content

Commit

Permalink
Merge branch 'dev' into ParticleRestart
Browse files Browse the repository at this point in the history
  • Loading branch information
evaneschneider authored Oct 30, 2023
2 parents bd4726f + d60e086 commit ac92bbc
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion builds/make.inc.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
DFLAGS += -DCUDA #-DCUDA_ERROR_CHECK

#To use MPI, DFLAGS must include -DMPI_CHOLLA
DFLAGS += -DMPI_CHOLLA -DBLOCK
DFLAGS += -DMPI_CHOLLA

#Set the MPI Processes grid [nproc_x, nproc_y, nproc_z]
#DFLAGS += -DSET_MPI_GRID
Expand Down
1 change: 0 additions & 1 deletion builds/make.type.cloudy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ MPI_GPU ?=

DFLAGS += -DCUDA
DFLAGS += -DMPI_CHOLLA
DFLAGS += -DBLOCK
DFLAGS += -DPRECISION=2
DFLAGS += -DPPMP
DFLAGS += -DHLLC
Expand Down
1 change: 0 additions & 1 deletion builds/make.type.cooling
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ MPI_GPU ?=

DFLAGS += -DCUDA
DFLAGS += -DMPI_CHOLLA
DFLAGS += -DBLOCK
DFLAGS += -DPRECISION=2
DFLAGS += -DPPMP
DFLAGS += -DHLLC
Expand Down
1 change: 0 additions & 1 deletion builds/make.type.dust
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ MPI_GPU ?=

DFLAGS += -DCUDA
DFLAGS += -DMPI_CHOLLA
DFLAGS += -DBLOCK
DFLAGS += -DPRECISION=2
DFLAGS += -DPPMC
DFLAGS += -DHLLC
Expand Down
4 changes: 2 additions & 2 deletions src/analysis/analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void Grid3D::Compute_Lya_Statistics()
{
int axis, n_skewers;
Real time_start, time_end, time_elapsed;
time_start = get_time();
time_start = Get_Time();

// Copmpute Lya Statitics
chprintf("Computing Lya Absorbiton along skewers \n");
Expand Down Expand Up @@ -70,7 +70,7 @@ void Grid3D::Compute_Lya_Statistics()
// Analysis.Computed_Flux_Power_Spectrum = 0;
// }

time_end = get_time();
time_end = Get_Time();
time_elapsed = (time_end - time_start) * 1000;
chprintf("Analysis Time: %f9.1 ms \n", time_elapsed);
}
Expand Down
4 changes: 2 additions & 2 deletions src/cooling/load_cloudy_texture.cu
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ void Test_Cloudy_Speed()
dim3 dim1dGrid((num_n * num_T + TPB - 1) / TPB, 1, 1);
dim3 dim1dBlock(TPB, 1, 1);
CHECK(cudaDeviceSynchronize());
Real time_start = get_time();
Real time_start = Get_Time();
for (int i = 0; i < 100; i++) {
hipLaunchKernelGGL(Test_Cloudy_Speed_Kernel, dim1dGrid, dim1dBlock, 0, 0, num_n, num_T, coolTexObj, heatTexObj);
}
CHECK(cudaDeviceSynchronize());
Real time_end = get_time();
Real time_end = Get_Time();
printf(" Cloudy Test Time %9.4f micro-s \n", (time_end - time_start));
printf("Exiting due to Test_Cloudy_Speed() being called \n");
exit(0);
Expand Down
2 changes: 1 addition & 1 deletion src/global/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ extern float *heating_table;
* \brief Set gamma values for Riemann solver. */
extern void Set_Gammas(Real gamma_in);

/*! \fn double get_time(void)
/*! \fn double Get_Time(void)
* \brief Returns the current clock time. */
extern double Get_Time(void);

Expand Down
4 changes: 2 additions & 2 deletions src/gravity/potential_SOR_3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ void Grid3D::Get_Potential_SOR(Real Grav_Constant, Real dens_avrg, Real current_
{
#ifdef TIME_SOR
Real time_start, time_end, time;
time_start = get_time();
time_start = Get_Time();
#endif

Grav.Poisson_solver.Copy_Input_And_Initialize(Grav.F.density_h, Grav.F.potential_h, Grav_Constant, dens_avrg,
Expand Down Expand Up @@ -233,7 +233,7 @@ void Grid3D::Get_Potential_SOR(Real Grav_Constant, Real dens_avrg, Real current_
#ifdef MPI_CHOLLA
MPI_Barrier(world);
#endif
time_end = get_time();
time_end = Get_Time();
time = (time_end - time_start);
chprintf(" SOR: Time = %f seg\n", time);
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/utils/timing_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <vector>

#include "../global/global.h" // Provides Real, get_time
#include "../global/global.h" // Provides Real, Get_Time

// #ifdef CPU_TIME
// Each instance of this class represents a single timer, timing a single
Expand Down

0 comments on commit ac92bbc

Please sign in to comment.