Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Problem Sets/Problem Set 3/student_func.cu
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ void reduce_minmax_kernel(const float* const d_in, float* d_out, const size_t si
}

int get_max_size(int n, int d) {
if(n%d == 0) {
return (int)ceil( (float)n/(float)d );
}
return (int)ceil( (float)n/(float)d ) + 1;
}

Expand Down