Back out of GPU Codegen if NVPTX is not available
commitf01b37001f8cac660f597a2fc23e1b26bb59af52
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Thu, 7 Jun 2018 21:10:49 +0000 (7 21:10 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Thu, 7 Jun 2018 21:10:49 +0000 (7 21:10 +0000)
treeb32b75d37070a0734b788a4c19692583e1ce66ec
parentaf1f8bb02c81112a136020b827b59600779f044d
Back out of GPU Codegen if NVPTX is not available

Summary:
When enabling GPU codegen in polly, CMake will fail if NVPTX is not a target
supported by the LLVM polly is being built against. In that case, GPU codegen
should be switched off.

Reviewers: Meinersbur, grosser, bollu

Reviewed By: Meinersbur

Subscribers: mgorny, bollu, pollydev, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@334233 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt