[StreamExecutor] Make SE work with an in-tree LLVM build.
authorJustin Lebar <jlebar@google.com>
Fri, 9 Sep 2016 21:01:02 +0000 (21:01 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 9 Sep 2016 21:01:02 +0000 (21:01 +0000)
commitb9e51397bfe1fdbf0f1ae444744a8958b985bcb4
tree39cee36e526289648a8ecbac7a4fa413daa648a3
parent4aff9e6d716172b800903c913b0917bec55fb4c5
[StreamExecutor] Make SE work with an in-tree LLVM build.

Summary:
With these changes, we can put parallel-libs within llvm/projects and
build as normal.

This is kind of the minimal change I could figure out how to make while
still making us compatible with llvm's build system.  Some things I'm
not thrilled about include:

 * The creation of a CoreTests directory (the macros really seemed to
   want this)

 * Pulling SimpleHostPlatformDevice.h into CoreTests.  It seems to me
   this should live inside unittests/include, or maybe tests/include,
   but I didn't want to make that change in this patch.

One important piece of work that remains to be done is to make

  $ ninja check-streamexecutor

run all the tests.  Right now the only way I've figured out to run the
tests is

  $ ninja projects/parallel-libs/streamexecutor/unittests/StreamExecutorUnitTests
  $ projects/parallel-libs/streamexecutor/unittests/CoreTests/CoreTests

Reviewers: jhen

Subscribers: beanz, parallel_libs-commits, jprice

Differential Revision: https://reviews.llvm.org/D24368

llvm-svn: 281091
12 files changed:
parallel-libs/CMakeLists.txt [new file with mode: 0644]
parallel-libs/streamexecutor/CMakeLists.txt
parallel-libs/streamexecutor/lib/CMakeLists.txt
parallel-libs/streamexecutor/lib/Utils/CMakeLists.txt [new file with mode: 0644]
parallel-libs/streamexecutor/lib/unittests/CMakeLists.txt [deleted file]
parallel-libs/streamexecutor/unittests/CMakeLists.txt [new file with mode: 0644]
parallel-libs/streamexecutor/unittests/CoreTests/CMakeLists.txt [new file with mode: 0644]
parallel-libs/streamexecutor/unittests/CoreTests/DeviceTest.cpp [moved from parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp with 100% similarity]
parallel-libs/streamexecutor/unittests/CoreTests/KernelSpecTest.cpp [moved from parallel-libs/streamexecutor/lib/unittests/KernelSpecTest.cpp with 100% similarity]
parallel-libs/streamexecutor/unittests/CoreTests/PackedKernelArgumentArrayTest.cpp [moved from parallel-libs/streamexecutor/lib/unittests/PackedKernelArgumentArrayTest.cpp with 100% similarity]
parallel-libs/streamexecutor/unittests/CoreTests/SimpleHostPlatformDevice.h [moved from parallel-libs/streamexecutor/lib/unittests/SimpleHostPlatformDevice.h with 100% similarity]
parallel-libs/streamexecutor/unittests/CoreTests/StreamTest.cpp [moved from parallel-libs/streamexecutor/lib/unittests/StreamTest.cpp with 100% similarity]