Skip to content

Commit

Permalink
[CMake] Retire Polly's FindCUDA.cmake in favour of CMake's default Fi…
Browse files Browse the repository at this point in the history
…ndCUDA.cmake script.

Patch by: Singapuram Sanjay

Reviewers: grosser, philip.pfaffe

Reviewed By: philip.pfaffe

Subscribers: pollydev, mgorny

Tags: #polly

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

llvm-svn: 304818
  • Loading branch information
pfaffe committed Jun 6, 2017
1 parent 281f414 commit 182807a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 29 deletions.
6 changes: 3 additions & 3 deletions polly/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ endif(POLLY_ENABLE_GPGPU_CODEGEN)


# Support GPGPU code generation if the library is available.
if (CUDALIB_FOUND)
if (CUDA_FOUND)
add_definitions(-DHAS_LIBCUDART)
INCLUDE_DIRECTORIES( ${CUDALIB_INCLUDE_DIR} )
endif(CUDALIB_FOUND)
INCLUDE_DIRECTORIES( ${CUDA_INCLUDE_DIRS} )
endif(CUDA_FOUND)
if (OpenCL_FOUND)
add_definitions(-DHAS_LIBOPENCL)
INCLUDE_DIRECTORIES( ${OpenCL_INCLUDE_DIR} )
Expand Down
23 changes: 0 additions & 23 deletions polly/cmake/FindCUDA.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion polly/include/polly/Config/config.h.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#ifndef POLLY_CONFIG_H
#define POLLY_CONFIG_H

#cmakedefine CUDALIB_FOUND
#cmakedefine CUDA_FOUND
#cmakedefine GPU_CODEGEN

#endif
4 changes: 2 additions & 2 deletions polly/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
if (CUDALIB_FOUND OR OpenCL_FOUND)
if (CUDA_FOUND OR OpenCL_FOUND)
add_subdirectory(GPURuntime)
endif (CUDALIB_FOUND OR OpenCL_FOUND)
endif (CUDA_FOUND OR OpenCL_FOUND)

set(LLVM_COMMON_DEPENDS ${LLVM_COMMON_DEPENDS} PARENT_SCOPE)

0 comments on commit 182807a

Please sign in to comment.