From efaf4fcf008d725b98b8964c0bdd09267c4ba0a8 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Mon, 7 Apr 2014 21:37:47 +0000 Subject: Fix Windows build --- cuda/2d/darthelper.cu | 2 +- cuda/2d/darthelper.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'cuda/2d') 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); } -- cgit v1.2.3