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
772a6850
"...opencl/tests/TestOpenCLMonteCarloFlexibleBarostat.cpp" did not exist on "8e8923a79d40e52f0e3311deeaa7eaf13d951a9f"
Commit
772a6850
authored
Oct 23, 2012
by
Peter Eastman
Browse files
Fixed compilation error
parent
5fb78b59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
platforms/opencl/src/OpenCLContext.cpp
platforms/opencl/src/OpenCLContext.cpp
+2
-0
No files found.
platforms/opencl/src/OpenCLContext.cpp
View file @
772a6850
...
@@ -187,6 +187,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
...
@@ -187,6 +187,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
// This attribute does not ensure that all queries are supported by the runtime so still have to
// This attribute does not ensure that all queries are supported by the runtime so still have to
// check for errors.
// check for errors.
try
{
try
{
#ifdef CL_DEVICE_SIMD_PER_COMPUTE_UNIT_AMD
// AMD has both 32 and 64 width SIMDs. Can determine by using:
// AMD has both 32 and 64 width SIMDs. Can determine by using:
// simdWidth = device.getInfo<CL_DEVICE_WAVEFRONT_WIDTH_AMD>();
// simdWidth = device.getInfo<CL_DEVICE_WAVEFRONT_WIDTH_AMD>();
// Must catch cl:Error as will fail if runtime does not support queries.
// Must catch cl:Error as will fail if runtime does not support queries.
...
@@ -203,6 +204,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
...
@@ -203,6 +204,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
// If the queries are supported then must be newer than SDK 2.4.
// If the queries are supported then must be newer than SDK 2.4.
amdPostSdk2_4
=
true
;
amdPostSdk2_4
=
true
;
#endif
}
}
catch
(
cl
::
Error
err
)
{
catch
(
cl
::
Error
err
)
{
// Runtime does not support the query so is unlikely to be the newer scalar GPU.
// Runtime does not support the query so is unlikely to be the newer scalar 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