1 --- pkg/sdk/C/common/common.mk.orig 2011-04-07 10:22:48.898804324 +0200
2 +++ pkg/sdk/C/common/common.mk 2011-04-07 10:24:03.351932604 +0200
4 # Add new SM Versions here as devices with new Compute Capability are released
5 SM_VERSIONS := 10 11 12 13 20 21
7 -CUDA_INSTALL_PATH ?= /usr/local/cuda
8 +CUDA_INSTALL_PATH ?= /usr
11 CUDA_INSTALL_PATH := $(cuda-install)
16 -INCLUDES += -I. -I$(CUDA_INSTALL_PATH)/include -I$(COMMONDIR)/inc -I$(SHAREDDIR)/inc
17 +INCLUDES += -I. -I$(CUDA_INSTALL_PATH)/include/cuda -I$(COMMONDIR)/inc -I$(SHAREDDIR)/inc
22 # architecture flag for nvcc and gcc compilers build
26 +NVCCFLAGS := --compiler-bindir=/opt/gcc-4.4
29 # Determining the necessary Cross-Compilation Flags
30 --- pkg/sdk/CUDALibraries/common/UtilNPP/defines.mk.orig 2011-04-07 10:25:38.788336773 +0200
31 +++ pkg/sdk/CUDALibraries/common/UtilNPP/defines.mk 2011-04-07 10:26:14.034906592 +0200
33 # Add new SM Versions here as devices with new Compute Capability are released
34 SM_VERSIONS := sm_10 sm_11 sm_12 sm_13 sm_20 sm_21
36 -CUDA_INSTALL_PATH ?= /usr/local/cuda
37 +CUDA_INSTALL_PATH ?= /usr
38 NPP_INSTALL_PATH ?= ../../../npp
39 NPP_INCLUDE_PATH ?= ../../common/npp/include
45 -INCLUDES += -I. -I$(CUDA_INSTALL_PATH)/include -I$(ROOTDIR)/inc -I$(NPP_INCLUDE_PATH) -I../FreeImage/include
46 +INCLUDES += -I. -I$(CUDA_INSTALL_PATH)/include/cuda -I$(ROOTDIR)/inc -I$(NPP_INCLUDE_PATH) -I../FreeImage/include
50 --- pkg/sdk/CUDALibraries/common/common.mk.orig 2011-04-07 10:25:38.791670097 +0200
51 +++ pkg/sdk/CUDALibraries/common/common.mk 2011-04-07 10:27:59.771282822 +0200
53 # Add new SM Versions here as devices with new Compute Capability are released
54 SM_VERSIONS := 10 11 12 13 20 21
56 -CUDA_INSTALL_PATH ?= /usr/local/cuda
57 +CUDA_INSTALL_PATH ?= /usr
60 CUDA_INSTALL_PATH := $(cuda-install)
65 -INCLUDES += -I. -I$(CUDA_INSTALL_PATH)/include -I$(COMMONDIR)/inc -I$(SHAREDDIR)/inc
66 +INCLUDES += -I. -I$(CUDA_INSTALL_PATH)/include/cuda -I$(COMMONDIR)/inc -I$(SHAREDDIR)/inc
71 # architecture flag for nvcc and gcc compilers build
75 +NVCCFLAGS := --compiler-bindir=/opt/gcc-4.4
78 # Determining the necessary Cross-Compilation Flags
79 --- pkg/sdk/CUDALibraries/src/imageSegmentationNPP/Makefile.orig 2011-04-07 10:25:38.791670097 +0200
80 +++ pkg/sdk/CUDALibraries/src/imageSegmentationNPP/Makefile 2011-04-07 10:29:11.924416209 +0200
83 ################################################################################
85 -CUDA_INSTALL_PATH ?= /usr/local/cuda
86 +CUDA_INSTALL_PATH ?= /usr
89 CUDA_INSTALL_PATH := $(cuda-install)
93 CXX := g++ -fPIC $(CXX_ARCH_FLAGS)
94 -INC := -I. -I../../common/UtilNPP/ -I../../../shared/inc/ -I$(CUDA_INSTALL_PATH)/include/
95 +INC := -I. -I../../common/UtilNPP/ -I../../../shared/inc/ -I$(CUDA_INSTALL_PATH)/include/cuda
97 LIB := -L$(SDK_INSTALL_PATH)/common/lib/ -lnpp -L$(CUDA_INSTALL_PATH)/lib$(CUDALIBARCH)/ -L$(CUDA_INSTALL_PATH)/lib/ -lcudart
98 LIB += -L$(SDK_INSTALL_PATH)/common/FreeImage/lib/$(OSLOWER)
99 --- pkg/sdk/CUDALibraries/src/freeImageInteropNPP/Makefile.orig 2011-04-07 10:25:38.791670097 +0200
100 +++ pkg/sdk/CUDALibraries/src/freeImageInteropNPP/Makefile 2011-04-07 10:29:04.237770832 +0200
103 ################################################################################
105 -CUDA_INSTALL_PATH ?= /usr/local/cuda
106 +CUDA_INSTALL_PATH ?= /usr
109 CUDA_INSTALL_PATH := $(cuda-install)
113 CXX := g++ -fPIC $(CXX_ARCH_FLAGS)
114 -INC := -I. -I../../common/UtilNPP/ -I../../../shared/inc -I../../common/FreeImage/include -I$(CUDA_INSTALL_PATH)/include/
115 +INC := -I. -I../../common/UtilNPP/ -I../../../shared/inc -I../../common/FreeImage/include -I$(CUDA_INSTALL_PATH)/include/cuda
117 LIB := -L$(SDK_INSTALL_PATH)/common/lib -L$(CUDA_INSTALL_PATH)/lib$(CUDALIBARCH) -lcudart -lnpp
118 LIB += -L$(SDK_INSTALL_PATH)/common/FreeImage/lib/$(OSLOWER)
119 --- pkg/sdk/CUDALibraries/src/histEqualizationNPP/Makefile.orig 2011-04-07 10:25:38.795003421 +0200
120 +++ pkg/sdk/CUDALibraries/src/histEqualizationNPP/Makefile 2011-04-07 10:28:46.857818980 +0200
123 ################################################################################
125 -CUDA_INSTALL_PATH ?= /usr/local/cuda
126 +CUDA_INSTALL_PATH ?= /usr
129 CUDA_INSTALL_PATH := $(cuda-install)
133 CXX := g++ -fPIC $(CXX_ARCH_FLAGS)
134 -INC := -I. -I../../common/UtilNPP/ -I../../../shared/inc -I$(CUDA_INSTALL_PATH)/include/
135 +INC := -I. -I../../common/UtilNPP/ -I../../../shared/inc -I$(CUDA_INSTALL_PATH)/include/cuda
137 LIB := -L$(SDK_INSTALL_PATH)/common/lib/ -lnpp -L$(CUDA_INSTALL_PATH)/lib$(CUDALIBARCH)/ -L$(CUDA_INSTALL_PATH)/lib/ -lcudart
138 LIB += -L$(SDK_INSTALL_PATH)/common/FreeImage/lib/$(OSLOWER)
139 --- pkg/sdk/CUDALibraries/src/boxFilterNPP/Makefile.orig 2011-04-07 10:25:38.795003421 +0200
140 +++ pkg/sdk/CUDALibraries/src/boxFilterNPP/Makefile 2011-04-07 10:28:31.921193700 +0200
143 ################################################################################
145 -CUDA_INSTALL_PATH ?= /usr/local/cuda
146 +CUDA_INSTALL_PATH ?= /usr
149 CUDA_INSTALL_PATH := $(cuda-install)
153 CXX := g++ -fPIC $(CXX_ARCH_FLAGS)
154 -INC := -I. -I../../common/UtilNPP/ -I../../../shared/inc -I$(CUDA_INSTALL_PATH)/include/
155 +INC := -I. -I../../common/UtilNPP/ -I../../../shared/inc -I$(CUDA_INSTALL_PATH)/include/cuda
157 LIB := -L$(SDK_INSTALL_PATH)/common/lib -L$(CUDA_INSTALL_PATH)/lib$(CUDALIBARCH) -lnpp -lcudart
158 LIB += -L$(SDK_INSTALL_PATH)/common/FreeImage/lib/$(OSLOWER)