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
50096c2b
"csrc/vscode:/vscode.git/clone" did not exist on "5e577dee5890ab354c52b685b6525e6d81eaa33d"
Commit
50096c2b
authored
Apr 05, 2012
by
Peter Eastman
Browse files
Disable using AMD GPUs on OS X
parent
4b623f7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
platforms/opencl/src/OpenCLContext.cpp
platforms/opencl/src/OpenCLContext.cpp
+3
-1
No files found.
platforms/opencl/src/OpenCLContext.cpp
View file @
50096c2b
...
@@ -84,6 +84,8 @@ OpenCLContext::OpenCLContext(int numParticles, int platformIndex, int deviceInde
...
@@ -84,6 +84,8 @@ OpenCLContext::OpenCLContext(int numParticles, int platformIndex, int deviceInde
int
bestSpeed
=
-
1
;
int
bestSpeed
=
-
1
;
for
(
int
i
=
0
;
i
<
(
int
)
devices
.
size
();
i
++
)
{
for
(
int
i
=
0
;
i
<
(
int
)
devices
.
size
();
i
++
)
{
if
(
platforms
[
platformIndex
].
getInfo
<
CL_PLATFORM_VENDOR
>
()
==
"Apple"
&&
devices
[
i
].
getInfo
<
CL_DEVICE_VENDOR
>
()
==
"AMD"
)
continue
;
// Don't use AMD GPUs on OS X due to serious bugs.
int
maxSize
=
devices
[
i
].
getInfo
<
CL_DEVICE_MAX_WORK_ITEM_SIZES
>
()[
0
];
int
maxSize
=
devices
[
i
].
getInfo
<
CL_DEVICE_MAX_WORK_ITEM_SIZES
>
()[
0
];
int
processingElementsPerComputeUnit
=
8
;
int
processingElementsPerComputeUnit
=
8
;
if
(
devices
[
i
].
getInfo
<
CL_DEVICE_TYPE
>
()
!=
CL_DEVICE_TYPE_GPU
)
{
if
(
devices
[
i
].
getInfo
<
CL_DEVICE_TYPE
>
()
!=
CL_DEVICE_TYPE_GPU
)
{
...
@@ -195,7 +197,7 @@ OpenCLContext::OpenCLContext(int numParticles, int platformIndex, int deviceInde
...
@@ -195,7 +197,7 @@ OpenCLContext::OpenCLContext(int numParticles, int platformIndex, int deviceInde
}
}
else
else
simdWidth
=
1
;
simdWidth
=
1
;
if
(
platforms
[
0
].
getInfo
<
CL_PLATFORM_VENDOR
>
()
==
"Apple"
&&
vendor
==
"AMD"
)
if
(
platforms
[
platformIndex
].
getInfo
<
CL_PLATFORM_VENDOR
>
()
==
"Apple"
&&
vendor
==
"AMD"
)
compilationDefines
[
"MAC_AMD_WORKAROUND"
]
=
""
;
compilationDefines
[
"MAC_AMD_WORKAROUND"
]
=
""
;
if
(
supports64BitGlobalAtomics
)
if
(
supports64BitGlobalAtomics
)
compilationDefines
[
"SUPPORTS_64_BIT_ATOMICS"
]
=
""
;
compilationDefines
[
"SUPPORTS_64_BIT_ATOMICS"
]
=
""
;
...
...
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