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
639b0716
"vscode:/vscode.git/clone" did not exist on "21e03362af0374cd7a84ecd40d2d627f49e30f94"
Commit
639b0716
authored
Jul 13, 2020
by
peastman
Browse files
Additional check for unsupported platforms
parent
fb68776e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/opencl/src/OpenCLContext.cpp
platforms/opencl/src/OpenCLContext.cpp
+1
-1
No files found.
platforms/opencl/src/OpenCLContext.cpp
View file @
639b0716
...
@@ -173,7 +173,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
...
@@ -173,7 +173,7 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
}
}
}
}
int
speed
=
devices
[
i
].
getInfo
<
CL_DEVICE_MAX_COMPUTE_UNITS
>
()
*
processingElementsPerComputeUnit
*
devices
[
i
].
getInfo
<
CL_DEVICE_MAX_CLOCK_FREQUENCY
>
();
int
speed
=
devices
[
i
].
getInfo
<
CL_DEVICE_MAX_COMPUTE_UNITS
>
()
*
processingElementsPerComputeUnit
*
devices
[
i
].
getInfo
<
CL_DEVICE_MAX_CLOCK_FREQUENCY
>
();
if
(
maxSize
>=
minThreadBlockSize
&&
speed
>
bestSpeed
)
{
if
(
maxSize
>=
minThreadBlockSize
&&
(
speed
>
bestSpeed
||
(
supported
&&
!
bestSupported
))
)
{
bestDevice
=
i
;
bestDevice
=
i
;
bestSpeed
=
speed
;
bestSpeed
=
speed
;
bestPlatform
=
j
;
bestPlatform
=
j
;
...
...
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