Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ lazy val executor = (project in file("."))
.settings(
name := "OpenCL executor",
version := "1.0",
scalaVersion := "2.13.3",
scalaVersion := "2.13.16",
organization := "org.rise-lang",
libraryDependencies += "junit" % "junit" % "4.11",
libraryDependencies += "org.scala-lang.modules" %% "scala-parallel-collections" % "0.2.0",
Expand Down
18 changes: 10 additions & 8 deletions lib/Executor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
cmake_minimum_required (VERSION 2.6)
cmake_minimum_required (VERSION 3.0)

if (${WIN32})
message ("Build on Windows not (yet) supported.")
endif (${WIN32})

# set compiler and default options
if (${UNIX})
# FIXME: not sure when required: -stdlib=libc++
if (${APPLE})
set (CMAKE_CXX_COMPILER "clang++" CACHE STRING "CXX Compiler.")
set (CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ -DGTEST_USE_OWN_TR1_TUPLE=1 -Wall -Wextra"
set (CMAKE_CXX_FLAGS "-std=c++11 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wall -Wextra"
CACHE STRING "Flags used by the compiler during all build types.")
else (${APPLE})
set (CMAKE_CXX_FLAGS "-std=c++0x -Wall -Wextra -pthread"
set (CMAKE_CXX_COMPILER "clang++" CACHE STRING "CXX Compiler.")
set (CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -pthread"
CACHE STRING "Flags used by the compiler during all build types.")
endif (${APPLE})
endif (${UNIX})

# include custom cmake modules (e.g. FindOpenCL.cmake)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake-modules)

project (Executor)

option (BUILD_SHARED_LIBS "Build shared libraries (DLLs)." ON)
Expand All @@ -27,7 +26,10 @@ if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE Release)
endif (NOT CMAKE_BUILD_TYPE)

find_package (OpenCL)
# see:
# https://github.com/KhronosGroup/OpenCL-Headers
# https://github.com/KhronosGroup/OpenCL-ICD-Loader
find_package (OpenCL REQUIRED)
find_package (JNI)

include_directories (
Expand Down Expand Up @@ -67,6 +69,6 @@ set (SOURCES


add_library (executor-jni ${SOURCES})
target_link_libraries (executor-jni ${OPENCL_LIBRARIES} ${JNI_LIBRARIES} pthread)
target_link_libraries (executor-jni OpenCL::OpenCL ${JNI_LIBRARIES} pthread)


90 changes: 0 additions & 90 deletions lib/Executor/cmake-modules/FindOpenCL.cmake

This file was deleted.