Skip to content

Commit a70c7d9

Browse files
committed
Print adjusments
1 parent d5af573 commit a70c7d9

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

Diff for: chapter_09/ch9__parallel_histogram.cu

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,19 @@ int main(){
9494

9595
printf("\n_____ parallel_histogram [Block partitioning] _____\n\n");
9696

97-
printf("Running on Device with 1024 threads per block...");
97+
printf("\nRunning on Device with 1024 threads per block...");
9898
ch9__parallel_histogram(Device, {.block_dim = {1024, 1, 1}, .kernel_version = CH9__HISTOGRAM_WITH_BLOCK_PARTITIONING});
9999

100100
printf("\n_____ parallel_histogram [Interleaved partitioning] _____\n");
101-
printf("Running on Device with 1024 threads per block...");
101+
printf("\nRunning on Device with 1024 threads per block...");
102102
ch9__parallel_histogram(Device, {.block_dim = {1024, 1, 1}, .kernel_version = CH9__HISTOGRAM_WITH_INTERLEAVED_PARTITIONING});
103103

104104
printf("\n_____ parallel_histogram [Privatization] _____\n");
105-
printf("Running on Device with 1024 threads per block...");
105+
printf("\nRunning on Device with 1024 threads per block...");
106106
ch9__parallel_histogram(Device, {.block_dim = {1024, 1, 1}, .kernel_version = CH9__HISTOGRAM_PRIVATIZED});
107107

108108
printf("\n_____ parallel_histogram [Aggregation] _____\n");
109-
printf("Running on Device with 1024 threads per block...");
109+
printf("\nRunning on Device with 1024 threads per block...");
110110
ch9__parallel_histogram(Device, {.block_dim = {1024, 1, 1}, .kernel_version = CH9__HISTOGRAM_AGGREGATED});
111111

112112
printf("\n_____ parallel_histogram_CPU _____\n");

Diff for: chapter_10/ch10__spmv.cu

+3-2
Original file line numberDiff line numberDiff line change
@@ -224,11 +224,12 @@ int main(){
224224

225225
printf("\n_____ spmv [CSR] _____\n\n");
226226

227-
printf("Running on Device with 1024 threads per block...");
227+
printf("\nRunning on Device with 1024 threads per block...");
228228
ch10__spmv(Device, {.block_dim = {1024, 1, 1}, .kernel_version = CH10__SPMV_CSR});
229229

230230
printf("\n_____ spmv [ELL] _____\n");
231-
printf("Running on Device with 1024 threads per block...");
231+
232+
printf("\nRunning on Device with 1024 threads per block...");
232233
ch10__spmv(Device, {.block_dim = {1024, 1, 1}, .kernel_version = CH10__SPMV_ELL});
233234

234235
printf("\n_____ spmv_CPU [CSR] _____\n");

Diff for: chapter_11/ch11__merge_sort.cu

+5-5
Original file line numberDiff line numberDiff line change
@@ -390,17 +390,17 @@ int main(){
390390

391391
printf("\n_____ merge_sort _____\n\n");
392392

393-
printf("Running on Device with 256 threads per block...");
393+
printf("\nRunning on Device with 256 threads per block...");
394394
ch11__merge_sort(Device, {.block_dim = {256, 1, 1}, .kernel_version = CH11__BASIC_MERGE_SORT});
395395

396-
printf("\n_____ merge_sort_tiled _____\n\n");
396+
printf("\n_____ merge_sort_tiled _____\n");
397397

398-
printf("Running on Device with 256 threads per block...");
398+
printf("\nRunning on Device with 256 threads per block...");
399399
ch11__merge_sort(Device, {.block_dim = {256}, .kernel_version = CH11__TILED_MERGE_SORT});
400400

401-
printf("\n_____ merge_sort_circular_buffer _____\n\n");
401+
printf("\n_____ merge_sort_circular_buffer _____\n");
402402

403-
printf("Running on Device with 256 threads per block...");
403+
printf("\nRunning on Device with 256 threads per block...");
404404
ch11__merge_sort(Device, {.block_dim = {256, 1, 1}, .kernel_version = CH11__CIRCULAR_BUFFER_MERGE_SORT});
405405

406406

0 commit comments

Comments
 (0)