32 #ifdef BUILD_CUDA_MODULE 35 #include <cuda_runtime.h> 37 #endif // #ifdef BUILD_CUDA_MODULE 42 #ifdef BUILD_CUDA_MODULE 43 inline int GetCUDACurrentDeviceTextureAlignment() {
46 cudaError_t err = cudaGetDevice(&device);
47 if (err != cudaSuccess) {
48 throw std::runtime_error(
49 "GetCUDACurrentDeviceTextureAlignment(): cudaGetDevice failed " 51 std::string(cudaGetErrorString(err)));
55 err = cudaDeviceGetAttribute(&value, cudaDevAttrTextureAlignment, device);
56 if (err != cudaSuccess) {
57 throw std::runtime_error(
58 "GetCUDACurrentDeviceTextureAlignment(): cudaGetDevice failed " 60 std::string(cudaGetErrorString(err)));
Definition: PinholeCameraIntrinsic.cpp:35