Skip to content

Commit

Permalink
Fix incorrect simulate_magnetization_kernel definition
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnh committed Dec 10, 2024
1 parent 6a89cf2 commit 3b67aa1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/compas/simulate/fisp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Array<cfloat, 2> simulate_magnetization(

void simulate_magnetization_kernel(
const kmm::DeviceContext& context,
kmm::NDRange,
gpu_view_mut<cfloat, 2> echos,
TissueParametersView parameters,
FISPSequenceView sequence);
Expand Down
1 change: 1 addition & 0 deletions include/compas/simulate/pssfp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Array<cfloat, 2> simulate_magnetization(

void simulate_magnetization_kernel(
const kmm::DeviceContext& context,
kmm::NDRange,
gpu_view_mut<cfloat, 2> echos,
TissueParametersView parameters,
pSSFPSequenceView sequence);
Expand Down
2 changes: 1 addition & 1 deletion src/simulate/derivative.cu
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void simulate_magnetization_derivative_impl(
.has_b1 = tissue.has_b1,
};

simulate_magnetization_kernel(context, delta_echos, new_tissue, sequence);
simulate_magnetization_kernel(context, kmm::NDRange {}, delta_echos, new_tissue, sequence);

num_blocks = {div_ceil(uint(nvoxels), block_size.x), div_ceil(uint(nreadouts), block_size.y)};

Expand Down

0 comments on commit 3b67aa1

Please sign in to comment.