Subversion

gpucv

[/] [experimental/] [trunk/] [gpucv/] [include/] [GPUCVCuda/] [config.h] - Rev 271 Go to most recent revision

Compare with Previous - Blame


//CVG_LicenseBegin==============================================================
//
//	Copyright@ GET 2005 (Groupe des Ecoles de Telecom)
//		http://www.get-telecom.fr/
//	
//	This software is a GPU accelerated library for computer-vision. It 
//	supports an OPENCV-like extensible interface for easily porting OPENCV 
//	applications.
//	
//	Contacts:
//		GpuCV core team: gpucv@picoforge.int-evry.fr
//		GpuCV developers newsgroup: gpucv-developers@picoforge.int-evry.fr
//	
//	Project's Home Page:
//		https://picoforge.int-evry.fr/cgi-bin/twiki/view/Gpucv/Web/WebHome
//	
//	This software is governed by the CeCILL  license under French law and
//	abiding by the rules of distribution of free software.  You can  use, 
//	modify and/ or redistribute the software under the terms of the CeCILL
//	license as circulated by CEA, CNRS and INRIA at the following URL
//	"http://www.cecill.info". 
//	
//================================================================CVG_LicenseEnd
#ifndef __GPUCV_CUDA_CONFIG_H
#define __GPUCV_CUDA_CONFIG_H

#ifdef _CPLUSPLUS
        #include <GPUCV/include.h>
#endif

#define _GPUCV_COMPILE_CUDA 1
#if _GPUCV_COMPILE_CUDA

        #define _CUDA_USE_RUNTIME_API 1
        #define _CUDA_USE_DRIVER_API 0
        #define _GPUCV_CUDA_USE_SINGLE_CHANNEL_IMG 1

        #ifdef _WINDOWS
        #ifdef _GPUCV_CUDA_DLL
        #   define _GPUCV_CUDA_EXPORT		    __declspec(dllexport)
        #else
                #ifdef _GPUCV_LIBS
                        #   define _GPUCV_CUDA_EXPORT		//extern "C"	__declspec(dllimport)
                #else
                        #   define _GPUCV_CUDA_EXPORT			__declspec(dllimport)
                #endif
        #endif
        #else
                #define _GPUCV_CUDA_EXPORT
        #endif

        #ifdef _MSC_VER
                #define _GPUCV_CUDA_INLINE inline
        #else
                #define _GPUCV_CUDA_INLINE
        #endif

        #define GPUCV_DEBUG_CUDA GPUCV_DEBUG
#define GPUCV_CUDA_SUPPORT_3CH_IMG 3

#ifdef _GPUCV_CUDA_DLL
        #define _GPUCV_DISABLE_EXCEPTION 0 
        #define GCU_Assert(COND, MSG) SG_Assert(COND, MSG)
#else
        #define _GPUCV_DISABLE_EXCEPTION 0
        #define GCU_Assert(COND, MSG) SG_Assert(COND, MSG)
#endif

#if _DEBUG
        #define _GCU_DEBUG_MEMORY_ALLOC 0
#else
        #define _GCU_DEBUG_MEMORY_ALLOC 0
#endif


#endif //support CUDA
#endif //__GPUCV_CUDA_CONFIG_H

Powered by WebSVN v1.61