From c2fca6da81c2444b564c2b9d0b51dd175dbd5251 Mon Sep 17 00:00:00 2001 From: Luka Stanisic <luka.stanisic@mpcdf.mpg.de> Date: Tue, 18 Dec 2018 14:35:30 +0100 Subject: [PATCH] replace deprecated CUDA functions with the renamed (correct) ones to ensure compatibility with CUDA 10 --- bioem_cuda.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bioem_cuda.cu b/bioem_cuda.cu index 4b3355c..992643a 100644 --- a/bioem_cuda.cu +++ b/bioem_cuda.cu @@ -946,7 +946,7 @@ int bioem_cuda::deviceExit() delete gpumap; delete initialized_const; - cudaThreadExit(); + cudaDeviceReset(); deviceInitialized = 0; return (0); @@ -1037,7 +1037,7 @@ int bioem_cuda::deviceFinishRun() break; } - cudaThreadSynchronize(); + cudaDeviceSynchronize(); if (GPUWorkload < 100) { pProb.copyFrom(pProb_host, *this); -- GitLab