summaryrefslogtreecommitdiffstats
path: root/xmrstak/backend/amd/amd_gpu/gpu.cpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-11-23 20:14:47 +0100
committerGitHub <noreply@github.com>2017-11-23 20:14:47 +0100
commit8d3f8b21286fc053fe682c69b5de05a5d95f3b38 (patch)
tree907b7d7222691a2487c17d4f222a6d14308c486d /xmrstak/backend/amd/amd_gpu/gpu.cpp
parent0c67b32c5d7933d46f7fad1624fa87ab6523caa0 (diff)
parenta7c5e97a123789cd894f2264a696ab23646212c2 (diff)
downloadxmr-stak-8d3f8b21286fc053fe682c69b5de05a5d95f3b38.zip
xmr-stak-8d3f8b21286fc053fe682c69b5de05a5d95f3b38.tar.gz
Merge pull request #197 from ExceptionallyGreat/macos-x-amd-gpu-fix
Fix for AMD GPU detection on MacOS X
Diffstat (limited to 'xmrstak/backend/amd/amd_gpu/gpu.cpp')
-rw-r--r--xmrstak/backend/amd/amd_gpu/gpu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmrstak/backend/amd/amd_gpu/gpu.cpp b/xmrstak/backend/amd/amd_gpu/gpu.cpp
index 15b8457..879a2e4 100644
--- a/xmrstak/backend/amd/amd_gpu/gpu.cpp
+++ b/xmrstak/backend/amd/amd_gpu/gpu.cpp
@@ -476,7 +476,7 @@ std::vector<GpuContext> getAMDDevices(int index)
if(clStatus == CL_SUCCESS)
{
std::string devVendor(devVendorVec.data());
- if( devVendor.find("Advanced Micro Devices") != std::string::npos)
+ if( devVendor.find("Advanced Micro Devices") != std::string::npos || devVendor.find("AMD") != std::string::npos)
{
GpuContext ctx;
ctx.deviceIdx = k;
@@ -541,7 +541,7 @@ int getAMDPlatformIdx()
clGetPlatformInfo(platforms[i], CL_PLATFORM_VENDOR, infoSize, platformNameVec.data(), NULL);
std::string platformName(platformNameVec.data());
- if( platformName.find("Advanced Micro Devices") != std::string::npos)
+ if( platformName.find("Advanced Micro Devices") != std::string::npos || platformName.find("Apple") != std::string::npos)
{
platformIndex = i;
printer::inst()->print_msg(L0,"Found AMD platform index id = %i, name = %s",i , platformName.c_str());
OpenPOWER on IntegriCloud