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
828706cd
Commit
828706cd
authored
Feb 17, 2015
by
peastman
Browse files
Merge pull request #814 from peastman/cuda7
Workaround for Nvidia bug on Maxwell in CUDA 6
parents
37811976
bfe7570e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
platforms/opencl/src/OpenCLContext.cpp
platforms/opencl/src/OpenCLContext.cpp
+7
-0
No files found.
platforms/opencl/src/OpenCLContext.cpp
View file @
828706cd
...
...
@@ -190,6 +190,13 @@ OpenCLContext::OpenCLContext(const System& system, int platformIndex, int device
clGetDeviceInfo
(
device
(),
CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV
,
sizeof
(
cl_uint
),
&
computeCapabilityMajor
,
NULL
);
if
(
computeCapabilityMajor
>
1
)
supports64BitGlobalAtomics
=
true
;
if
(
computeCapabilityMajor
==
5
)
{
// Workaround for a bug in Maxwell on CUDA 6.x.
string
platformVersion
=
platforms
[
bestPlatform
].
getInfo
<
CL_PLATFORM_VERSION
>
();
if
(
platformVersion
.
find
(
"CUDA 6"
)
!=
string
::
npos
)
supports64BitGlobalAtomics
=
false
;
}
}
}
else
if
(
vendor
.
size
()
>=
28
&&
vendor
.
substr
(
0
,
28
)
==
"Advanced Micro Devices, Inc."
)
{
...
...
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