forked from OSchip/llvm-project
GPGPU: Shorten ppcg include paths to avoid conflict with cuda.h
Instead of directly linking to ppcg's main source directory, we link to the parent director. This allows us to access ppcg's include files with 'ppcg/cuda.h' and avoids a conflict with NVIDIA's cuda.h header. Also drop an include directory that is currently not used. llvm-svn: 275536
This commit is contained in:
parent
60f63b49f2
commit
a56f8f8e58
|
@ -138,8 +138,7 @@ include_directories(
|
|||
${CMAKE_CURRENT_BINARY_DIR}/lib/External/isl/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/External/isl/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/External/pet/include
|
||||
${CMAKE_CURRENT_BINARY_DIR}/lib/External/ppcg
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/External/ppcg
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lib/External
|
||||
${CMAKE_CURRENT_BINARY_DIR}/include
|
||||
)
|
||||
|
||||
|
|
|
@ -26,11 +26,11 @@
|
|||
#include "isl/union_map.h"
|
||||
|
||||
extern "C" {
|
||||
#include "cuda.h"
|
||||
#include "gpu.h"
|
||||
#include "gpu_print.h"
|
||||
#include "ppcg.h"
|
||||
#include "schedule.h"
|
||||
#include "ppcg/cuda.h"
|
||||
#include "ppcg/gpu.h"
|
||||
#include "ppcg/gpu_print.h"
|
||||
#include "ppcg/ppcg.h"
|
||||
#include "ppcg/schedule.h"
|
||||
}
|
||||
|
||||
#include "llvm/Support/Debug.h"
|
||||
|
|
Loading…
Reference in New Issue