Skip to content

Commit

Permalink
USE_POLLY_ACC : Remove dependency on CUDA headerfiles and link libjul…
Browse files Browse the repository at this point in the history
…ia to libGPURuntime (JuliaLang#22036)

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

* Removed comments and CUDALIB_INCLUDE_DIR variable.
  • Loading branch information
singam-sanjay authored and staticfloat committed Jun 13, 2017
1 parent a32071d commit 70be8ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,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

0 comments on commit 70be8ab

Please sign in to comment.