Point Cloud Library (PCL)  1.11.0
 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 #pragma once
13 
14 #include <cuda.h>
15 #include <pcl/cuda/cutil.h>
16 #include <cuda_runtime_api.h>
17 
18 #include <pcl/cuda/cutil_inline_bankchecker.h>
19 #include <pcl/cuda/cutil_inline_runtime.h>
20 #include <pcl/cuda/cutil_inline_drvapi.h>
21 
22 inline void print_NVCC_min_spec(const char *sSDKsample, const char *sNVCCReq, const char *sDriverReq)
23 {
24  printf("CUDA %d.%02d Toolkit built this project.\n", CUDART_VERSION/1000, (CUDART_VERSION%100));
25  printf(" [ %s ] requirements:\n", sSDKsample);
26  printf(" -> CUDA %s Toolkit\n" , sNVCCReq);
27  printf(" -> %s NVIDIA Display Driver.\n", sDriverReq);
28 }
29 
30 #define ALIGN_OFFSET(offset, alignment) offset = (offset + (alignment-1)) & ~((alignment-1))