From 2af5e1ba82b9f4bc7cda02719b83ce0337f6948d Mon Sep 17 00:00:00 2001
From: Moises Fernandez <moisesf@fmrib.ox.ac.uk>
Date: Thu, 11 Apr 2013 15:08:42 +0000
Subject: [PATCH] Changed to have a compiled version. Don't need to compile
 each run time

---
 CUDA/fit_gpu_kernels.h | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/CUDA/fit_gpu_kernels.h b/CUDA/fit_gpu_kernels.h
index 2d3bab3..62e99bc 100644
--- a/CUDA/fit_gpu_kernels.h
+++ b/CUDA/fit_gpu_kernels.h
@@ -11,7 +11,9 @@ extern "C" __global__ void fit_PVM_single_kernel(	//INPUT
 							const double* 		bvecs, 
 							const double* 		bvals, 
 							const int 		nvox, 
-							const int 		nfib, 
+							const int		ndirections,
+							const int 		nfib,
+							const int		nparams, 
 							const bool 		m_include_f0, 
 							//INPUT-OUTPUT
 							double* 		params);
@@ -21,7 +23,9 @@ extern "C" __global__ void fit_PVM_single_c_kernel(	//INPUT
 							const double* 		bvecs, 
 							const double* 		bvals, 
 							const int 		nvox, 
+							const int		ndirections,
 							const int 		nfib, 
+							const int		nparams,
 							const bool		m_eval_BIC,
 							const bool 		m_include_f0,
 							const bool	 	m_return_fanning,
@@ -34,7 +38,9 @@ extern "C" __global__ void fit_PVM_multi_kernel(	//INPUT
 							const double* 		bvecs, 
 							const double* 		bvals, 
 							const int 		nvox, 
-							const int 		nfib, 		
+							const int		ndirections,
+							const int 		nfib, 	
+							const int		nparams,	
 							const bool 		m_include_f0,
 							//OUTPUT
 							double* 		params);
@@ -45,7 +51,9 @@ extern "C" __global__ void get_residuals_PVM_single_kernel(	//INPUT
 								const double* 		bvecs, 
 								const double* 		bvals, 
 								const int 		nvox, 
+								const int		ndirections,
 								const int 		nfib, 
+								const int		nparams,
 								const bool 		m_include_f0,
 								const bool* 		includes_f0,
 								//OUTPUT
@@ -57,7 +65,9 @@ extern "C" __global__ void get_residuals_PVM_single_c_kernel(	//INPUT
 								const double* 		bvecs, 
 								const double* 		bvals, 
 								const int 		nvox, 
+								const int		ndirections,
 								const int 		nfib, 
+								const int		nparams,
 								const bool 		m_include_f0,
 								const bool* 		includes_f0,
 								//OUTPUT
@@ -70,7 +80,9 @@ extern "C" __global__ void get_residuals_PVM_multi_kernel(	//INPUT
 								const double* 		bvecs, 
 								const double* 		bvals, 
 								const int 		nvox, 
+								const int		ndirections,
 								const int 		nfib, 
+								const int		nparams,
 								const bool 		m_include_f0,
 								const bool* 		includes_f0,
 								//OUTPUT
-- 
GitLab