Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit 3f718cc

Browse files
Refactoring: Replaced the cast with reinterpret_cast<void**> for pointer-to-pointer conversion.
1 parent c1ec1a2 commit 3f718cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PixiCUDA/src/cualgo/kernel.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ void cuda_motion_blur_image(
7272
unsigned char* device_in_image = nullptr;
7373
unsigned char* device_out_image = nullptr;
7474

75-
cudaMalloc((void**)&device_in_image, image_size);
76-
cudaMalloc((void**)&device_out_image, image_size);
75+
cudaMalloc(reinterpret_cast<void**>(&device_in_image), image_size);
76+
cudaMalloc(reinterpret_cast<void**>(&device_out_image), image_size);
7777
cudaMemset(device_out_image, NULL, image_size);
7878

7979
// Copy the host variables to the device (CPU -> GPU)

0 commit comments

Comments
 (0)