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
bac94f85
Commit
bac94f85
authored
Dec 18, 2012
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed printCudaDeviceInfo for 3.5 CC (Patch #2641)
parent
dd8e442b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
gpumat.cpp
modules/core/src/gpumat.cpp
+7
-5
No files found.
modules/core/src/gpumat.cpp
View file @
bac94f85
...
...
@@ -401,7 +401,7 @@ namespace
int
Cores
;
}
SMtoCores
;
SMtoCores
gpuArchCoresPerSM
[]
=
{
{
0x10
,
8
},
{
0x11
,
8
},
{
0x12
,
8
},
{
0x13
,
8
},
{
0x20
,
32
},
{
0x21
,
48
},
{
0x30
,
192
},
{
-
1
,
-
1
}
};
SMtoCores
gpuArchCoresPerSM
[]
=
{
{
0x10
,
8
},
{
0x11
,
8
},
{
0x12
,
8
},
{
0x13
,
8
},
{
0x20
,
32
},
{
0x21
,
48
},
{
0x30
,
192
},
{
0x35
,
192
},
{
-
1
,
-
1
}
};
int
index
=
0
;
while
(
gpuArchCoresPerSM
[
index
].
SM
!=
-
1
)
...
...
@@ -410,7 +410,7 @@ namespace
return
gpuArchCoresPerSM
[
index
].
Cores
;
index
++
;
}
printf
(
"MapSMtoCores undefined SMversion %d.%d!
\n
"
,
major
,
minor
);
return
-
1
;
}
}
...
...
@@ -448,9 +448,11 @@ void cv::gpu::printCudaDeviceInfo(int device)
printf
(
" CUDA Driver Version / Runtime Version %d.%d / %d.%d
\n
"
,
driverVersion
/
1000
,
driverVersion
%
100
,
runtimeVersion
/
1000
,
runtimeVersion
%
100
);
printf
(
" CUDA Capability Major/Minor version number: %d.%d
\n
"
,
prop
.
major
,
prop
.
minor
);
printf
(
" Total amount of global memory: %.0f MBytes (%llu bytes)
\n
"
,
(
float
)
prop
.
totalGlobalMem
/
1048576.0
f
,
(
unsigned
long
long
)
prop
.
totalGlobalMem
);
printf
(
" (%2d) Multiprocessors x (%2d) CUDA Cores/MP: %d CUDA Cores
\n
"
,
prop
.
multiProcessorCount
,
convertSMVer2Cores
(
prop
.
major
,
prop
.
minor
),
convertSMVer2Cores
(
prop
.
major
,
prop
.
minor
)
*
prop
.
multiProcessorCount
);
int
cores
=
convertSMVer2Cores
(
prop
.
major
,
prop
.
minor
);
if
(
cores
>
0
)
printf
(
" (%2d) Multiprocessors x (%2d) CUDA Cores/MP: %d CUDA Cores
\n
"
,
prop
.
multiProcessorCount
,
cores
,
cores
*
prop
.
multiProcessorCount
);
printf
(
" GPU Clock Speed: %.2f GHz
\n
"
,
prop
.
clockRate
*
1e-6
f
);
printf
(
" Max Texture Dimension Size (x,y,z) 1D=(%d), 2D=(%d,%d), 3D=(%d,%d,%d)
\n
"
,
...
...
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