Skip to content

Commit a4bc168

Browse files
committed
Successful compilation of HIP
1 parent 650a939 commit a4bc168

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+884
-5370
lines changed

Common/CUDA/GD_AwTV.cu

+2-2
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ void aw_pocs_tv(float* img,float* dst,float alpha,const long* image_size, int ma
542542
size_t dimgridRed = (total_pixels + MAXTHREADS - 1) / MAXTHREADS;
543543

544544
hipStreamSynchronize(stream[dev*nStream_device+1]);
545-
reduceNorm2 << <dimgridRed, dimblockRed, MAXTHREADS*sizeof(float),stream[dev*nStream_device]>> >(d_norm2[dev], d_norm2aux[dev], total_pixels);
545+
reduceNorm2 <<<dimgridRed, dimblockRed, MAXTHREADS*sizeof(float),stream[dev*nStream_device]>>>(d_norm2[dev], d_norm2aux[dev], total_pixels);
546546

547547
}
548548
for (dev = 0; dev < deviceCount; dev++){
@@ -553,7 +553,7 @@ void aw_pocs_tv(float* img,float* dst,float alpha,const long* image_size, int ma
553553
size_t dimgridRed = (total_pixels + MAXTHREADS - 1) / MAXTHREADS;
554554

555555
if (dimgridRed > 1) {
556-
reduceSum << <1, dimblockRed, MAXTHREADS*sizeof(float),stream[dev*nStream_device] >> >(d_norm2aux[dev], d_norm2[dev], dimgridRed);
556+
reduceSum <<<1, dimblockRed, MAXTHREADS*sizeof(float),stream[dev*nStream_device]>>>(d_norm2aux[dev], d_norm2[dev], dimgridRed);
557557
hipStreamSynchronize(stream[dev*nStream_device]);
558558
hipMemcpyAsync(&sumnorm2[dev], d_norm2[dev], sizeof(float), hipMemcpyDeviceToHost,stream[dev*nStream_device+1]);
559559
}

Common/CUDA/GD_TV.cu

+2-2
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ do { \
526526
size_t dimgridRed = (total_pixels + MAXTHREADS - 1) / MAXTHREADS;
527527

528528
hipStreamSynchronize(stream[dev*nStream_device+1]);
529-
reduceNorm2 << <dimgridRed, dimblockRed, MAXTHREADS*sizeof(float),stream[dev*nStream_device]>> >(d_norm2[dev], d_norm2aux[dev], total_pixels);
529+
reduceNorm2 <<<dimgridRed, dimblockRed, MAXTHREADS*sizeof(float),stream[dev*nStream_device]>>>(d_norm2[dev], d_norm2aux[dev], total_pixels);
530530

531531
}
532532
for (dev = 0; dev < deviceCount; dev++){
@@ -537,7 +537,7 @@ do { \
537537
size_t dimgridRed = (total_pixels + MAXTHREADS - 1) / MAXTHREADS;
538538

539539
if (dimgridRed > 1) {
540-
reduceSum << <1, dimblockRed, MAXTHREADS*sizeof(float),stream[dev*nStream_device] >> >(d_norm2aux[dev], d_norm2[dev], dimgridRed);
540+
reduceSum <<<1, dimblockRed, MAXTHREADS*sizeof(float),stream[dev*nStream_device]>>>(d_norm2aux[dev], d_norm2[dev], dimgridRed);
541541
hipStreamSynchronize(stream[dev*nStream_device]);
542542
hipMemcpyAsync(&sumnorm2[dev], d_norm2[dev], sizeof(float), hipMemcpyDeviceToHost,stream[dev*nStream_device+1]);
543543
}

0 commit comments

Comments
 (0)