summaryrefslogtreecommitdiffstats
path: root/cuda/2d
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <WillemJan.Palenstijn@uantwerpen.be>2014-04-07 21:37:47 +0000
committerwpalenst <WillemJan.Palenstijn@uantwerpen.be>2014-04-07 21:37:47 +0000
commitefaf4fcf008d725b98b8964c0bdd09267c4ba0a8 (patch)
tree19a550362f25a6288448374ea043ae8d1269ffb1 /cuda/2d
parent1eba5d772d768ce06ada5fbf2422a2bd4eae4fe0 (diff)
downloadastra-efaf4fcf008d725b98b8964c0bdd09267c4ba0a8.tar.gz
astra-efaf4fcf008d725b98b8964c0bdd09267c4ba0a8.tar.bz2
astra-efaf4fcf008d725b98b8964c0bdd09267c4ba0a8.tar.xz
astra-efaf4fcf008d725b98b8964c0bdd09267c4ba0a8.zip
Fix Windows build
Diffstat (limited to 'cuda/2d')
-rw-r--r--cuda/2d/darthelper.cu2
-rw-r--r--cuda/2d/darthelper.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/cuda/2d/darthelper.cu b/cuda/2d/darthelper.cu
index 28b77cc..768d14e 100644
--- a/cuda/2d/darthelper.cu
+++ b/cuda/2d/darthelper.cu
@@ -342,7 +342,7 @@ void dartSmoothing(float* out, const float* in, float b, unsigned int radius, un
-bool setGPUIndex(int iGPUIndex)
+_AstraExport bool setGPUIndex(int iGPUIndex)
{
if (iGPUIndex != -1) {
cudaSetDevice(iGPUIndex);
diff --git a/cuda/2d/darthelper.h b/cuda/2d/darthelper.h
index 3694b96..8f57d3c 100644
--- a/cuda/2d/darthelper.h
+++ b/cuda/2d/darthelper.h
@@ -29,13 +29,15 @@ $Id$
#ifndef _CUDA_ARITH2_H
#define _CUDA_ARITH2_H
+#include "util.h"
+
namespace astraCUDA {
void roiSelect(float* out, float radius, unsigned int width, unsigned int height);
void dartMask(float* out, const float* in, unsigned int conn, unsigned int radius, unsigned int threshold, unsigned int width, unsigned int height);
void dartSmoothing(float* out, const float* in, float b, unsigned int radius, unsigned int width, unsigned int height);
- bool setGPUIndex(int index);
+ _AstraExport bool setGPUIndex(int index);
}