Commit 95fdd54e authored by Oliver Bock's avatar Oliver Bock
Browse files

Updated AMD APPSDK environment settings/defaults

parent af519111
PWD = $(shell pwd) PWD = $(shell pwd)
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda
ATISTREAMSDKROOT ?= /usr/local/ati AMDAPPSDKROOT ?= /opt/AMDAPP
TARGET = clfft_example TARGET = clfft_example
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(ATISTREAMSDKROOT)/include -I../include CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(AMDAPPSDKROOT)/include -I../include
LDFLAGS += $(PWD)/../lib/libclfft.a LDFLAGS += $(PWD)/../lib/libclfft.a
OS = $(shell uname -s) OS = $(shell uname -s)
...@@ -13,7 +13,7 @@ ifeq ($(OS), Darwin) ...@@ -13,7 +13,7 @@ ifeq ($(OS), Darwin)
LDFLAGS += -framework OpenCL LDFLAGS += -framework OpenCL
LDFLAGS += -framework Accelerate LDFLAGS += -framework Accelerate
else else
LDFLAGS += -L$(ATISTREAMSDKROOT)/lib/$(ARCH) LDFLAGS += -L$(AMDAPPSDKROOT)/lib/$(ARCH)
LDFLAGS += -lOpenCL LDFLAGS += -lOpenCL
endif endif
......
NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda NVIDIA_SDK_INSTALL_PATH ?= /usr/local/cuda
ATISTREAMSDKROOT ?= /usr/local/ati AMDAPPSDKROOT ?= /opt/AMDAPP
TARGET = libclfft.a TARGET = libclfft.a
CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(ATISTREAMSDKROOT)/include -I../include CXXFLAGS += -O3 -Wall -g -I$(NVIDIA_SDK_INSTALL_PATH)/OpenCL/common/inc -I$(AMDAPPSDKROOT)/include -I../include
OS = $(shell uname -s) OS = $(shell uname -s)
ifeq ($(OS), Darwin) ifeq ($(OS), Darwin)
CXXFLAGS += -I/System/Library/Frameworks CXXFLAGS += -I/System/Library/Frameworks
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment