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
ab4025f8
Commit
ab4025f8
authored
May 03, 2012
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed for Kepler
parent
ea3fe441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
gpumat.cpp
modules/core/src/gpumat.cpp
+4
-3
No files found.
modules/core/src/gpumat.cpp
View file @
ab4025f8
...
...
@@ -320,7 +320,8 @@ namespace
template
<
class
T
>
void
getCudaAttribute
(
T
*
attribute
,
CUdevice_attribute
device_attribute
,
int
device
)
{
*
attribute
=
T
();
CUresult
error
=
CUDA_SUCCESS
;
// = cuDeviceGetAttribute( attribute, device_attribute, device ); why link erros under ubuntu??
//CUresult error = CUDA_SUCCESS;// = cuDeviceGetAttribute( attribute, device_attribute, device ); why link erros under ubuntu??
CUresult
error
=
cuDeviceGetAttribute
(
attribute
,
device_attribute
,
device
);
if
(
CUDA_SUCCESS
==
error
)
return
;
...
...
@@ -336,7 +337,7 @@ namespace
int
Cores
;
}
SMtoCores
;
SMtoCores
gpuArchCoresPerSM
[]
=
{
{
0x10
,
8
},
{
0x11
,
8
},
{
0x12
,
8
},
{
0x13
,
8
},
{
0x20
,
32
},
{
0x21
,
48
},
{
-
1
,
-
1
}
};
SMtoCores
gpuArchCoresPerSM
[]
=
{
{
0x10
,
8
},
{
0x11
,
8
},
{
0x12
,
8
},
{
0x13
,
8
},
{
0x20
,
32
},
{
0x21
,
48
},
{
0x30
,
192
},
{
-
1
,
-
1
}
};
int
index
=
0
;
while
(
gpuArchCoresPerSM
[
index
].
SM
!=
-
1
)
...
...
@@ -760,7 +761,7 @@ namespace
namespace
cv
{
namespace
gpu
{
namespace
device
{
void
copyToWithMask_gpu
(
DevMem2Db
src
,
DevMem2Db
dst
,
in
t
elemSize1
,
int
cn
,
DevMem2Db
mask
,
bool
colorMask
,
cudaStream_t
stream
);
void
copyToWithMask_gpu
(
DevMem2Db
src
,
DevMem2Db
dst
,
size_
t
elemSize1
,
int
cn
,
DevMem2Db
mask
,
bool
colorMask
,
cudaStream_t
stream
);
template
<
typename
T
>
void
set_to_gpu
(
DevMem2Db
mat
,
const
T
*
scalar
,
int
channels
,
cudaStream_t
stream
);
...
...
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