Skip to content

Commit

Permalink
Merge pull request #279 from PStegmann/feature/pst_AppleOCL
Browse files Browse the repository at this point in the history
Added OpenCL compiler flags for Apple.
  • Loading branch information
myurkin authored Nov 11, 2020
2 parents 758fea0 + 7dbf92b commit 22cd414
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This is currently empty. If you need some ignores, which are specific to your workflow (e.g. IDE), consider
# including them into $GIT_DIR/info/exclude (in this repository) or globally into $XDG_CONFIG_HOME/git/ignore
# See https://git-scm.com/docs/gitignore
# See https://git-scm.com/docs/gitignore
.DS_Store
8 changes: 7 additions & 1 deletion src/ocl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,14 @@ endif
# !!! End of control section. Everything below is not designed to be modified by user
#=======================================================================================================================

UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LDLIBS += -framework OpenCL
else
LDLIBS += -lOpenCL
endif
CFLAGS += -DOPENCL
LDLIBS += -lOpenCL

CSOURCE += oclcore.c oclmatvec.c

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

0 comments on commit 22cd414

Please sign in to comment.