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
d8b192c8
Commit
d8b192c8
authored
May 20, 2013
by
yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the mismatch on NV GPUs
parent
4162ebfa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
arithm_mul.cl
modules/ocl/src/opencl/arithm_mul.cl
+7
-1
tvl1flow.cpp
modules/ocl/src/tvl1flow.cpp
+5
-0
No files found.
modules/ocl/src/opencl/arithm_mul.cl
View file @
d8b192c8
...
@@ -277,9 +277,15 @@ __kernel void arithm_mul_D6 (__global double *src1, int src1_step, int src1_offs
...
@@ -277,9 +277,15 @@ __kernel void arithm_mul_D6 (__global double *src1, int src1_step, int src1_offs
}
}
#
endif
#
endif
#
ifdef
DOUBLE_SUPPORT
#
define
SCALAR_TYPE
double
#
else
#
define
SCALAR_TYPE
float
#
endif
__kernel
void
arithm_muls_D5
(
__global
float
*src1,
int
src1_step,
int
src1_offset,
__kernel
void
arithm_muls_D5
(
__global
float
*src1,
int
src1_step,
int
src1_offset,
__global
float
*dst,
int
dst_step,
int
dst_offset,
__global
float
*dst,
int
dst_step,
int
dst_offset,
int
rows,
int
cols,
int
dst_step1,
float
scalar
)
int
rows,
int
cols,
int
dst_step1,
SCALAR_TYPE
scalar
)
{
{
int
x
=
get_global_id
(
0
)
;
int
x
=
get_global_id
(
0
)
;
int
y
=
get_global_id
(
1
)
;
int
y
=
get_global_id
(
1
)
;
...
...
modules/ocl/src/tvl1flow.cpp
View file @
d8b192c8
...
@@ -472,4 +472,8 @@ void ocl_tvl1flow::warpBackward(const oclMat &I0, const oclMat &I1, oclMat &I1x,
...
@@ -472,4 +472,8 @@ void ocl_tvl1flow::warpBackward(const oclMat &I0, const oclMat &I1, oclMat &I1x,
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
u2_offset_y
));
args
.
push_back
(
make_pair
(
sizeof
(
cl_int
),
(
void
*
)
&
u2_offset_y
));
openCLExecuteKernel
(
clCxt
,
&
tvl1flow
,
kernelName
,
globalThread
,
localThread
,
args
,
-
1
,
-
1
);
openCLExecuteKernel
(
clCxt
,
&
tvl1flow
,
kernelName
,
globalThread
,
localThread
,
args
,
-
1
,
-
1
);
releaseTexture
(
I1_tex
);
releaseTexture
(
I1x_tex
);
releaseTexture
(
I1y_tex
);
}
}
\ No newline at end of file
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