Skip to content

Commit

Permalink
Added a workaround to ocl/Makefile for problem when using clAmdFft
Browse files Browse the repository at this point in the history
…together with `libOpenCL.so` provided by Nvidia GPU driver (a line should be uncommented to activate).
  • Loading branch information
myurkin committed Jan 22, 2013
1 parent a00116a commit 8d5a2a0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/ocl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,20 @@ else # AMD clFFT flags
#CFLAGS += -I"C:\Program Files (x86)\AMD\clAmdFft\include"
#LDFLAGS += -L"C:\Program Files (x86)\AMD\clAmdFft\lib64\import"

LDFLAGS += -lclAmdFft.Runtime
LDFLAGS += -lclAmdFft.Runtime

# Uncomment the following line if you experience problems during linking, like
# "...libclAmdFft.Runtime.so: undefined reference to `clRetainContext@OPENCL_1.0'"
# This is caused by Nvidia OpenCL libraries on Linux (hopefully it will disappear in next releases of this library)
#LDFLAGS +=-Wl,--unresolved-symbols=ignore-in-shared-libs
endif

#===================================================================================================
# !!! End of control section. Everything below is not designed to be modified by user
#===================================================================================================

CFLAGS += -DOPENCL
LDFLAGS += -lOpenCL
LDFLAGS += -lOpenCL
CSOURCE += oclcore.c

ifneq ($(filter OCL_READ_SOURCE_RUNTIME,$(OPTIONS)),)
Expand Down

0 comments on commit 8d5a2a0

Please sign in to comment.