diff --git a/Make.inc b/Make.inc index 06c3d17e29bff..769f400ee60c7 100644 --- a/Make.inc +++ b/Make.inc @@ -242,7 +242,6 @@ BUILD_LLDB := 0 USE_POLLY := 0 USE_POLLY_OPENMP := 0 # Enable OpenMP code-generation USE_POLLY_ACC := 0 # Enable GPU code-generation -CUDALIB_INCLUDE_DIR := # Path to CUDA header files # Cross-compile #XC_HOST := i686-w64-mingw32 diff --git a/src/Makefile b/src/Makefile index 494720aa772c4..ce5e8b63a5679 100644 --- a/src/Makefile +++ b/src/Makefile @@ -65,13 +65,9 @@ ifeq ($(USE_POLLY_OPENMP),1) FLAGS += -fopenmp endif ifeq ($(USE_POLLY_ACC),1) -LLVMLINK += -lPollyPPCG +LLVMLINK += -lPollyPPCG -lGPURuntime FLAGS += -DUSE_POLLY_ACC -ifeq ($(CUDALIB_INCLUDE_DIR),) -$(error CUDALIB_INCLUDE_DIR not set: If compiling with USE_POLLY_ACC, user must provide the path to CUDA header files) -endif -FLAGS += -I$(CUDALIB_INCLUDE_DIR) -FLAGS += -I$(shell $(LLVM_CONFIG_HOST) --src-root)/tools/polly/tools +FLAGS += -I$(shell $(LLVM_CONFIG_HOST) --src-root)/tools/polly/tools # Required to find GPURuntime/GPUJIT.h endif endif else