Point Cloud Library (PCL)  1.9.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
cutil_inline.h
1 /*
2  * Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
3  *
4  * Please refer to the NVIDIA end user license agreement (EULA) associated
5  * with this source code for terms and conditions that govern your use of
6  * this software. Any use, reproduction, disclosure, or distribution of
7  * this software and related documentation outside the terms of the EULA
8  * is strictly prohibited.
9  *
10  */
11 
12 #ifndef _CUTIL_INLINE_H_
13 #define _CUTIL_INLINE_H_
14 
15 #include <cuda.h>
16 #include <pcl/cuda/cutil.h>
17 #include <cuda_runtime_api.h>
18 
19 #include <pcl/cuda/cutil_inline_bankchecker.h>
20 #include <pcl/cuda/cutil_inline_runtime.h>
21 #include <pcl/cuda/cutil_inline_drvapi.h>
22 
23 inline void print_NVCC_min_spec(const char *sSDKsample, const char *sNVCCReq, const char *sDriverReq)
24 {
25  printf("CUDA %d.%02d Toolkit built this project.\n", CUDART_VERSION/1000, (CUDART_VERSION%100));
26  printf(" [ %s ] requirements:\n", sSDKsample);
27  printf(" -> CUDA %s Toolkit\n" , sNVCCReq);
28  printf(" -> %s NVIDIA Display Driver.\n", sDriverReq);
29 }
30 
31 #define ALIGN_OFFSET(offset, alignment) offset = (offset + (alignment-1)) & ~((alignment-1))
32 
33 
34 #endif // _CUTIL_INLINE_H_