Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
95696f7a
Commit
95696f7a
authored
Apr 25, 2013
by
Peter Eastman
Browse files
Disabled peer-to-peer communication, since it currently makes things slower
parent
b2ac07ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
platforms/cuda/src/CudaPlatform.cpp
platforms/cuda/src/CudaPlatform.cpp
+10
-9
No files found.
platforms/cuda/src/CudaPlatform.cpp
View file @
95696f7a
...
@@ -195,15 +195,16 @@ CudaPlatform::PlatformData::PlatformData(const System& system, const string& dev
...
@@ -195,15 +195,16 @@ CudaPlatform::PlatformData::PlatformData(const System& system, const string& dev
// Determine whether peer-to-peer copying is supported, and enable it if so.
// Determine whether peer-to-peer copying is supported, and enable it if so.
peerAccessSupported
=
true
;
peerAccessSupported
=
false
;
// Disable until I figure out why it usually makes things slower
for
(
int
i
=
1
;
i
<
contexts
.
size
();
i
++
)
{
// peerAccessSupported = true;
int
canAccess
;
// for (int i = 1; i < contexts.size(); i++) {
cuDeviceCanAccessPeer
(
&
canAccess
,
contexts
[
i
]
->
getDevice
(),
contexts
[
0
]
->
getDevice
());
// int canAccess;
if
(
!
canAccess
)
{
// cuDeviceCanAccessPeer(&canAccess, contexts[i]->getDevice(), contexts[0]->getDevice());
peerAccessSupported
=
false
;
// if (!canAccess) {
break
;
// peerAccessSupported = false;
}
// break;
}
// }
// }
if
(
peerAccessSupported
)
{
if
(
peerAccessSupported
)
{
for
(
int
i
=
1
;
i
<
contexts
.
size
();
i
++
)
{
for
(
int
i
=
1
;
i
<
contexts
.
size
();
i
++
)
{
contexts
[
0
]
->
setAsCurrent
();
contexts
[
0
]
->
setAsCurrent
();
...
...
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