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
593fae4c
Commit
593fae4c
authored
Feb 10, 2011
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor chnages in GPU samples
parent
bbffbe90
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
multi.cpp
samples/gpu/multi.cpp
+1
-1
performance.h
samples/gpu/performance/performance.h
+1
-1
stereo_multi.cpp
samples/gpu/stereo_multi.cpp
+1
-1
No files found.
samples/gpu/multi.cpp
View file @
593fae4c
...
@@ -50,7 +50,6 @@ CUcontext contexts[2];
...
@@ -50,7 +50,6 @@ CUcontext contexts[2];
int
main
()
int
main
()
{
{
int
num_devices
=
getCudaEnabledDeviceCount
();
int
num_devices
=
getCudaEnabledDeviceCount
();
if
(
num_devices
<
2
)
if
(
num_devices
<
2
)
{
{
cout
<<
"Two or more GPUs are required
\n
"
;
cout
<<
"Two or more GPUs are required
\n
"
;
...
@@ -69,6 +68,7 @@ int main()
...
@@ -69,6 +68,7 @@ int main()
}
}
}
}
// Init CUDA Driver API
safeCall
(
cuInit
(
0
));
safeCall
(
cuInit
(
0
));
// Create context for GPU #0
// Create context for GPU #0
...
...
samples/gpu/performance/performance.h
View file @
593fae4c
...
@@ -71,7 +71,7 @@ public:
...
@@ -71,7 +71,7 @@ public:
private
:
private
:
TestSystem
()
:
can_flush_
(
false
),
cpu_elapsed_
(
0
),
gpu_elapsed_
(
0
),
TestSystem
()
:
can_flush_
(
false
),
cpu_elapsed_
(
0
),
gpu_elapsed_
(
0
),
speedup_total_
(
0
.
0
),
num_subtests_called_
(
0
)
{}
;
speedup_total_
(
0
.
0
),
num_subtests_called_
(
0
)
{}
void
flushSubtestData
();
void
flushSubtestData
();
...
...
samples/gpu/stereo_multi.cpp
View file @
593fae4c
...
@@ -78,7 +78,6 @@ int main(int argc, char** argv)
...
@@ -78,7 +78,6 @@ int main(int argc, char** argv)
}
}
int
num_devices
=
getCudaEnabledDeviceCount
();
int
num_devices
=
getCudaEnabledDeviceCount
();
if
(
num_devices
<
2
)
if
(
num_devices
<
2
)
{
{
cout
<<
"Two or more GPUs are required
\n
"
;
cout
<<
"Two or more GPUs are required
\n
"
;
...
@@ -111,6 +110,7 @@ int main(int argc, char** argv)
...
@@ -111,6 +110,7 @@ int main(int argc, char** argv)
return
-
1
;
return
-
1
;
}
}
// Init CUDA Driver API
safeCall
(
cuInit
(
0
));
safeCall
(
cuInit
(
0
));
// Create context for the first GPU
// Create context for the first GPU
...
...
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