[arrayfire] 244/284: BUGFIX Add/remove entries for platform when adding external device/context
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository arrayfire.
commit aba1851efcad92cd9c95cfd795de97ef2a9e6dcb
Author: Shehzan Mohammed <shehzan at arrayfire.com>
Date: Thu Jan 21 22:53:02 2016 -0500
BUGFIX Add/remove entries for platform when adding external device/context
---
src/backend/opencl/platform.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backend/opencl/platform.cpp b/src/backend/opencl/platform.cpp
index 94efd7a..1abb032 100644
--- a/src/backend/opencl/platform.cpp
+++ b/src/backend/opencl/platform.cpp
@@ -699,6 +699,7 @@ void addDeviceContext(cl_device_id dev, cl_context ctx, cl_command_queue que)
devMngr.mDevices.push_back(tDevice);
devMngr.mContexts.push_back(tContext);
devMngr.mQueues.push_back(tQueue);
+ devMngr.mPlatforms.push_back(getPlatformEnum(*tDevice));
// FIXME: add OpenGL Interop for user provided contexts later
devMngr.mIsGLSharingOn.push_back(false);
} catch (const cl::Error &ex) {
@@ -757,6 +758,7 @@ void removeDeviceContext(cl_device_id dev, cl_context ctx)
devMngr.mDevices.erase(devMngr.mDevices.begin()+deleteIdx);
devMngr.mContexts.erase(devMngr.mContexts.begin()+deleteIdx);
devMngr.mQueues.erase(devMngr.mQueues.begin()+deleteIdx);
+ devMngr.mPlatforms.erase(devMngr.mPlatforms.begin()+deleteIdx);
// FIXME: add OpenGL Interop for user provided contexts later
devMngr.mIsGLSharingOn.erase(devMngr.mIsGLSharingOn.begin()+deleteIdx);
// OTHERWISE, update(decrement) the `mActive*Id` variables
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list