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
e479d792
Commit
e479d792
authored
Oct 24, 2012
by
Peter Eastman
Browse files
Minor fixes and cleanup
parent
772a6850
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
olla/src/Platform.cpp
olla/src/Platform.cpp
+3
-2
platforms/cuda/src/CudaPlatform.cpp
platforms/cuda/src/CudaPlatform.cpp
+3
-4
platforms/cuda/src/CudaSort.h
platforms/cuda/src/CudaSort.h
+2
-0
platforms/opencl/src/OpenCLPlatform.cpp
platforms/opencl/src/OpenCLPlatform.cpp
+1
-1
No files found.
olla/src/Platform.cpp
View file @
e479d792
...
...
@@ -272,8 +272,9 @@ const string& Platform::getDefaultPluginsDirectory() {
}
#else
if
(
dir
==
NULL
)
dir
=
"/usr/local/openmm/lib/plugins"
;
directory
=
string
(
dir
);
directory
=
"/usr/local/openmm/lib/plugins"
;
else
directory
=
string
(
dir
);
#endif
return
directory
;
}
...
...
platforms/cuda/src/CudaPlatform.cpp
View file @
e479d792
...
...
@@ -101,14 +101,13 @@ CudaPlatform::CudaPlatform() {
string
nvcc
=
(
compiler
==
NULL
?
"/usr/local/cuda/bin/nvcc"
:
string
(
compiler
));
setPropertyDefaultValue
(
CudaCompiler
(),
nvcc
);
char
*
tmpdir
=
getenv
(
"TMPDIR"
);
if
(
tmpdir
==
NULL
)
tmpdir
=
P_tmpdir
;
setPropertyDefaultValue
(
CudaTempDirectory
(),
string
(
tmpdir
));
string
tmp
=
(
tmpdir
==
NULL
?
string
(
P_tmpdir
)
:
string
(
tmpdir
));
setPropertyDefaultValue
(
CudaTempDirectory
(),
tmp
);
#endif
}
bool
CudaPlatform
::
supportsDoublePrecision
()
const
{
return
fals
e
;
return
tru
e
;
}
const
string
&
CudaPlatform
::
getPropertyValue
(
const
Context
&
context
,
const
string
&
property
)
const
{
...
...
platforms/cuda/src/CudaSort.h
View file @
e479d792
...
...
@@ -101,6 +101,8 @@ private:
*/
class
CudaSort
::
SortTrait
{
public:
virtual
~
SortTrait
()
{
}
/**
* Get the size of each data value in bytes.
*/
...
...
platforms/opencl/src/OpenCLPlatform.cpp
View file @
e479d792
...
...
@@ -83,7 +83,7 @@ OpenCLPlatform::OpenCLPlatform() {
}
bool
OpenCLPlatform
::
supportsDoublePrecision
()
const
{
return
fals
e
;
return
tru
e
;
}
const
string
&
OpenCLPlatform
::
getPropertyValue
(
const
Context
&
context
,
const
string
&
property
)
const
{
...
...
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