summaryrefslogtreecommitdiffstats
path: root/parallel-libs/streamexecutor/lib/Device.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parallel-libs/streamexecutor/lib/Device.cpp')
-rw-r--r--parallel-libs/streamexecutor/lib/Device.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/parallel-libs/streamexecutor/lib/Device.cpp b/parallel-libs/streamexecutor/lib/Device.cpp
deleted file mode 100644
index 2bed3e7be16..00000000000
--- a/parallel-libs/streamexecutor/lib/Device.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-//===-- Device.cpp - Device implementation --------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-///
-/// \file
-/// Implementation of Device class internals.
-///
-//===----------------------------------------------------------------------===//
-
-#include "streamexecutor/Device.h"
-
-#include <cassert>
-
-#include "streamexecutor/PlatformDevice.h"
-#include "streamexecutor/Stream.h"
-
-#include "llvm/ADT/STLExtras.h"
-
-namespace streamexecutor {
-
-Device::Device(PlatformDevice *PDevice) : PDevice(PDevice) {}
-
-Device::~Device() = default;
-
-Expected<Stream> Device::createStream() {
- Expected<const void *> MaybePlatformStream = PDevice->createStream();
- if (!MaybePlatformStream)
- return MaybePlatformStream.takeError();
- return Stream(PDevice, *MaybePlatformStream);
-}
-
-} // namespace streamexecutor
OpenPOWER on IntegriCloud