[arrayfire] 50/284: Removed dead code from opencl::DeviceManager class

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Feb 7 18:59:18 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 53de79030d346f54d7293e159441f3267747489a
Author: pradeep <pradeep at arrayfire.com>
Date:   Thu Dec 3 12:07:02 2015 -0500

    Removed dead code from opencl::DeviceManager class
---
 src/backend/opencl/platform.cpp | 5 -----
 src/backend/opencl/platform.hpp | 2 --
 2 files changed, 7 deletions(-)

diff --git a/src/backend/opencl/platform.cpp b/src/backend/opencl/platform.cpp
index 85364c4..6f9ae99 100644
--- a/src/backend/opencl/platform.cpp
+++ b/src/backend/opencl/platform.cpp
@@ -98,7 +98,6 @@ DeviceManager::~DeviceManager()
     for (auto q: mQueues) delete q;
     for (auto d : mDevices) delete d;
     for (auto c : mContexts) delete c;
-    for (auto p : mPlatforms) delete p;
 #endif
 }
 
@@ -123,9 +122,6 @@ DeviceManager::DeviceManager()
 #endif
         };
 
-        for (auto &platform : platforms)
-            mPlatforms.push_back(new Platform(platform));
-
         unsigned nDevices = 0;
         for (auto devType : DEVC_TYPES) {
             for (auto &platform : platforms) {
@@ -150,7 +146,6 @@ DeviceManager::DeviceManager()
                     mDevices.push_back(new Device(dev));
                     mContexts.push_back(ctx);
                     mQueues.push_back(cq);
-                    mCtxOffsets.push_back(nDevices);
                     mIsGLSharingOn.push_back(false);
                 }
             }
diff --git a/src/backend/opencl/platform.hpp b/src/backend/opencl/platform.hpp
index 90f57ae..7f0dab6 100644
--- a/src/backend/opencl/platform.hpp
+++ b/src/backend/opencl/platform.hpp
@@ -70,8 +70,6 @@ class DeviceManager
         std::vector<cl::CommandQueue*>  mQueues;
         std::vector<cl::Device*>       mDevices;
         std::vector<cl::Context*>     mContexts;
-        std::vector<cl::Platform*>   mPlatforms;
-        std::vector<unsigned>       mCtxOffsets;
         std::vector<bool>        mIsGLSharingOn;
 
         unsigned mActiveCtxId;

-- 
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