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
a1a32466
Unverified
Commit
a1a32466
authored
Jan 31, 2023
by
Philip Turner
Committed by
GitHub
Jan 31, 2023
Browse files
Update OpenCLContext.cpp (#3917)
parent
6b51520c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
platforms/opencl/src/OpenCLContext.cpp
platforms/opencl/src/OpenCLContext.cpp
+5
-1
No files found.
platforms/opencl/src/OpenCLContext.cpp
View file @
a1a32466
...
...
@@ -211,7 +211,11 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
throw
OpenMMException
(
"This device does not support double precision"
);
string
vendor
=
device
.
getInfo
<
CL_DEVICE_VENDOR
>
();
int
numThreadBlocksPerComputeUnit
=
6
;
if
(
vendor
.
size
()
>=
6
&&
vendor
.
substr
(
0
,
6
)
==
"NVIDIA"
)
{
if
(
vendor
.
size
()
>=
5
&&
vendor
.
substr
(
0
,
5
)
==
"Apple"
)
{
simdWidth
=
32
;
}
else
if
(
vendor
.
size
()
>=
6
&&
vendor
.
substr
(
0
,
6
)
==
"NVIDIA"
)
{
compilationDefines
[
"WARPS_ARE_ATOMIC"
]
=
""
;
simdWidth
=
32
;
if
(
device
.
getInfo
<
CL_DEVICE_EXTENSIONS
>
().
find
(
"cl_nv_device_attribute_query"
)
!=
string
::
npos
)
{
...
...
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