From 3b67aa17f0f268c402282c827a429167f2023ffe Mon Sep 17 00:00:00 2001 From: stijn Date: Tue, 10 Dec 2024 11:55:40 +0100 Subject: [PATCH] Fix incorrect `simulate_magnetization_kernel` definition --- include/compas/simulate/fisp.h | 1 + include/compas/simulate/pssfp.h | 1 + src/simulate/derivative.cu | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/compas/simulate/fisp.h b/include/compas/simulate/fisp.h index 6de225d..bf2b728 100644 --- a/include/compas/simulate/fisp.h +++ b/include/compas/simulate/fisp.h @@ -21,6 +21,7 @@ Array simulate_magnetization( void simulate_magnetization_kernel( const kmm::DeviceContext& context, + kmm::NDRange, gpu_view_mut echos, TissueParametersView parameters, FISPSequenceView sequence); diff --git a/include/compas/simulate/pssfp.h b/include/compas/simulate/pssfp.h index 29b1bad..a3a8c47 100644 --- a/include/compas/simulate/pssfp.h +++ b/include/compas/simulate/pssfp.h @@ -21,6 +21,7 @@ Array simulate_magnetization( void simulate_magnetization_kernel( const kmm::DeviceContext& context, + kmm::NDRange, gpu_view_mut echos, TissueParametersView parameters, pSSFPSequenceView sequence); diff --git a/src/simulate/derivative.cu b/src/simulate/derivative.cu index a82b507..64dd232 100644 --- a/src/simulate/derivative.cu +++ b/src/simulate/derivative.cu @@ -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)};