From 62cf7c72f3f663899dc512c99a885682085982cd Mon Sep 17 00:00:00 2001 From: Pilar Cossio Date: Thu, 24 Jul 2014 09:50:55 +0200 Subject: [PATCH] New Class for printing out Cross Correlations --- bioem_cuda.cu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bioem_cuda.cu b/bioem_cuda.cu index d9d804e..087dfaf 100644 --- a/bioem_cuda.cu +++ b/bioem_cuda.cu @@ -398,6 +398,8 @@ int bioem_cuda::deviceInit() gpumap->sumsquare_RefMap = sumsquare; checkCudaErrors(cudaMalloc(&pProb_memory, pProb_device.get_size(RefMap.ntotRefMap, param.nTotGridAngles, param.param_device.writeAngles))); + checkCudaErrors(cudaMalloc(&pProb_memory, pProb_device.get_sizeCC(RefMap.ntotRefMap, param.nTotCC, param.param_device.writeCC))); + for (int i = 0; i < 2; i++) { checkCudaErrors(cudaStreamCreate(&cudaStream[i])); @@ -483,6 +485,7 @@ int bioem_cuda::deviceStartRun() maxRef = (size_t) RefMap.ntotRefMap * (size_t) GPUWorkload / 100; pProb_host = new bioem_Probability; pProb_host->init(maxRef, param.nTotGridAngles, *this); + pProb_host->initCC(maxRef, param.nTotCC, *this); pProb_host->copyFrom(&pProb, *this); } -- GitLab