Skip to content

Commit

Permalink
Comment out unused parameters only necessary for #14
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrivlachos committed Nov 15, 2024
1 parent 2bbed9e commit 7647318
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spotfinder/kernels/erosion.cu
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ namespace cg = cooperative_groups;
#pragma region Erosion kernel
__global__ void erosion(uint8_t __restrict__ *dispersion_mask,
uint8_t __restrict__ *erosion_mask,
uint8_t __restrict__ *mask,
// uint8_t __restrict__ *mask,
size_t dispersion_mask_pitch,
size_t erosion_mask_pitch,
size_t mask_pitch,
// size_t mask_pitch,
int width,
int height,
uint8_t radius) {
Expand Down
4 changes: 2 additions & 2 deletions spotfinder/kernels/erosion.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

__global__ void erosion(uint8_t __restrict__ *dispersion_mask,
uint8_t __restrict__ *erosion_mask,
uint8_t __restrict__ *mask,
// uint8_t __restrict__ *mask,
size_t dispersion_mask_pitch,
size_t erosion_mask_pitch,
size_t mask_pitch,
// size_t mask_pitch,
int width,
int height,
uint8_t radius);
2 changes: 0 additions & 2 deletions spotfinder/spotfinder.cu
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,8 @@ void call_do_spotfinding_extended(dim3 blocks,
// Perform erosion
erosion<<<blocks, threads, shared_memory, stream>>>(d_dispersion_mask.get(),
d_erosion_mask.get(),
mask.get(),
d_dispersion_mask.pitch,
d_erosion_mask.pitch,
mask.pitch,
width,
height,
first_pass_kernel_radius);
Expand Down

0 comments on commit 7647318

Please sign in to comment.