Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
b8535d17
Commit
b8535d17
authored
Jul 15, 2010
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bixed bug in cudaSafeCall
parent
55b1e9cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
cuda_shared.hpp
modules/gpu/cuda/cuda_shared.hpp
+1
-1
precomp.hpp
modules/gpu/src/precomp.hpp
+7
-9
No files found.
modules/gpu/cuda/cuda_shared.hpp
View file @
b8535d17
...
...
@@ -65,7 +65,7 @@ namespace cv
}
#ifdef __CUDACC__
#define cudaSafeCall(e
rr) {
if( cudaSuccess != err) cv::gpu::error(cudaGetErrorString(err), __FILE__, __LINE__); }
#define cudaSafeCall(e
xpr) { cudaError_t err = expr;
if( cudaSuccess != err) cv::gpu::error(cudaGetErrorString(err), __FILE__, __LINE__); }
#endif
#endif
/* __OPENCV_CUDA_SHARED_HPP__ */
modules/gpu/src/precomp.hpp
View file @
b8535d17
...
...
@@ -53,30 +53,28 @@
#include <iostream>
#include "opencv2/gpu/gpu.hpp"
#include "opencv2/gpu/gpumat.hpp"
#include "cuda_shared.hpp"
#ifndef HAVE_CUDA
#define cudaSafeCall(e
r
r) CV_Error(CV_GpuNotFound, "The library is compilled with no GPU support")
#define cudaCallerSafeCall(e
r
r) CV_Error(CV_GpuNotFound, "The library is compilled with no GPU support")
#define cudaSafeCall(e
xp
r) CV_Error(CV_GpuNotFound, "The library is compilled with no GPU support")
#define cudaCallerSafeCall(e
xp
r) CV_Error(CV_GpuNotFound, "The library is compilled with no GPU support")
#else
/* HAVE_CUDA */
#if _MSC_VER >= 1200
#pragma warning (disable : 4100 4211 4201 4408)
#if _MSC_VER >= 1200
#pragma warning (disable : 4100 4211 4201 4408)
#endif
#include "cuda_runtime_api.h"
#ifdef __GNUC__
#define cudaSafeCall(e
rr) {
if(cudaSuccess != err) cv::gpu::error(cudaGetErrorString(err), __FILE__, __LINE__, __func__); }
#define cudaSafeCall(e
xpr) { cudaError_t err = expr;
if(cudaSuccess != err) cv::gpu::error(cudaGetErrorString(err), __FILE__, __LINE__, __func__); }
#else
#define cudaSafeCall(e
rr) {
if(cudaSuccess != err) cv::gpu::error(cudaGetErrorString(err), __FILE__, __LINE__); }
#define cudaSafeCall(e
xpr) { cudaError_t err = expr;
if(cudaSuccess != err) cv::gpu::error(cudaGetErrorString(err), __FILE__, __LINE__); }
#endif
#define cudaCallerSafeCall(e
rr) er
r;
#define cudaCallerSafeCall(e
xpr) exp
r;
#endif
/* HAVE_CUDA */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment