Skip to content

Commit 84f91c1

Browse files
fix typos
1 parent 87fa927 commit 84f91c1

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

  • 10-H_CUDA_Graphs_and_Device-initiated_Communication_with_NVSHMEM
    • solutions/Device-initiated_Communication_with_NVSHMEM
    • tasks/Device-initiated_Communication_with_NVSHMEM

10-H_CUDA_Graphs_and_Device-initiated_Communication_with_NVSHMEM/solutions/Device-initiated_Communication_with_NVSHMEM/jacobi.cu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ int main(int argc, char* argv[]) {
231231

232232
// ny - 2 rows are distributed amongst `size` ranks in such a way
233233
// that each rank gets either (ny - 2) / size or (ny - 2) / size + 1 rows.
234-
// This optimizes load balancing when (ny - 2) % size != 0
234+
// this optimizes load balancing when (ny - 2) % size != 0
235235
int chunk_size;
236236
int chunk_size_low = (ny - 2) / size;
237237
int chunk_size_high = chunk_size_low + 1;
@@ -273,7 +273,7 @@ int main(int argc, char* argv[]) {
273273
const int iy_top_lower_boundary_idx = (top < num_ranks_low) ? (chunk_size_low + 1) : (chunk_size_high + 1);
274274
const int iy_bottom_upper_boundary_idx = 0;
275275

276-
// Set diriclet boundary conditions on left and right boarder
276+
// Set Dirichlet boundary conditions on left and right border
277277
initialize_boundaries<<<(chunk_size + 2) / 128 + 1, 128>>>(a, a_new, PI, iy_start_global - 1, nx, (chunk_size + 2), ny);
278278
CUDA_RT_CALL(cudaGetLastError());
279279
CUDA_RT_CALL(cudaDeviceSynchronize());
@@ -389,7 +389,7 @@ int main(int argc, char* argv[]) {
389389
CUDA_RT_CALL(cudaFreeHost(l2_norm_h));
390390
CUDA_RT_CALL(cudaFree(l2_norm_d));
391391

392-
//TODO: Deallocated a_new and a from the NVSHMEM symmetric heap
392+
//TODO: Deallocate a_new and a from the NVSHMEM symmetric heap
393393
nvshmem_free(a_new);
394394
nvshmem_free(a);
395395

@@ -458,7 +458,7 @@ double single_gpu(const int nx, const int ny, const int iter_max, real* const a_
458458
CUDA_RT_CALL(cudaMemset(a, 0, nx * ny * sizeof(real)));
459459
CUDA_RT_CALL(cudaMemset(a_new, 0, nx * ny * sizeof(real)));
460460

461-
// Set diriclet boundary conditions on left and right boarder
461+
// Set Dirichlet boundary conditions on left and right border
462462
initialize_boundaries<<<ny / 128 + 1, 128>>>(a, a_new, PI, 0, nx, ny, ny);
463463
CUDA_RT_CALL(cudaGetLastError());
464464
CUDA_RT_CALL(cudaDeviceSynchronize());

10-H_CUDA_Graphs_and_Device-initiated_Communication_with_NVSHMEM/tasks/Device-initiated_Communication_with_NVSHMEM/jacobi.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ int main(int argc, char* argv[]) {
256256

257257
//TODO: calculate halo/boundary row index of top and bottom neighbors
258258

259-
// Set diriclet boundary conditions on left and right boarder
259+
// Set Dirichlet boundary conditions on left and right border
260260
initialize_boundaries<<<(chunk_size + 2) / 128 + 1, 128>>>(a, a_new, PI, iy_start_global - 1, nx, (chunk_size + 2), ny);
261261
CUDA_RT_CALL(cudaGetLastError());
262262
CUDA_RT_CALL(cudaDeviceSynchronize());
@@ -393,7 +393,7 @@ int main(int argc, char* argv[]) {
393393
CUDA_RT_CALL(cudaFreeHost(l2_norm_h));
394394
CUDA_RT_CALL(cudaFree(l2_norm_d));
395395

396-
//TODO: Deallocated a_new and a from the NVSHMEM symmetric heap
396+
//TODO: Deallocate a_new and a from the NVSHMEM symmetric heap
397397
CUDA_RT_CALL(cudaFree(a_new));
398398
CUDA_RT_CALL(cudaFree(a));
399399

@@ -461,7 +461,7 @@ double single_gpu(const int nx, const int ny, const int iter_max, real* const a_
461461
CUDA_RT_CALL(cudaMemset(a, 0, nx * ny * sizeof(real)));
462462
CUDA_RT_CALL(cudaMemset(a_new, 0, nx * ny * sizeof(real)));
463463

464-
// Set diriclet boundary conditions on left and right boarder
464+
// Set Dirichlet boundary conditions on left and right border
465465
initialize_boundaries<<<ny / 128 + 1, 128>>>(a, a_new, PI, 0, nx, ny, ny);
466466
CUDA_RT_CALL(cudaGetLastError());
467467
CUDA_RT_CALL(cudaDeviceSynchronize());

0 commit comments

Comments
 (0)