Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USE_POLLY_ACC : Remove dependency on CUDA headerfiles and link libjulia to libGPURuntime #22036

Merged
merged 8 commits into from
Jun 13, 2017
1 change: 0 additions & 1 deletion Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down