FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update SDK to ComputeCpp v2.0.0 · codeplaysoftware/computecpp-sdk@8bbea92 · GitHub

This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Repository navigation

Commit 8bbea92

Browse files
committed
Update SDK to ComputeCpp v2.0.0
The name of the ComputeCpp library has changed on Windows. Since we are supporting MSVC 2019 now, we need to include the compiler checks to make it work, and also need an update to Google Test to avoid a deprecation in MSVC. Additionally, targets which use the ComputeCpp library are now forced to have their linker language set as C++. The makes sure that (for example) the platform C++ library is linked to the target, even if not set by the user code.
1 parent 3299025 commit 8bbea92

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎.travis/build_computecpp.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

33
set -ev
4-
wget --no-check-certificate https://computecpp.codeplay.com/downloads/computecpp-ce/1.3.0/ubuntu-16.04-64bit.tar.gz
4+
wget --no-check-certificate https://computecpp.codeplay.com/downloads/computecpp-ce/2.0.0/x86_64-linux-gnu.tar.gz
55
mkdir -p /tmp/computecpp
6-
tar -xzf ubuntu-16.04-64bit.tar.gz -C /tmp/computecpp --strip-components=1
6+
tar -xzf x86_64-linux-gnu.tar.gz -C /tmp/computecpp --strip-components=1

‎cmake/Modules/FindComputeCpp.cmake‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ find_library(COMPUTECPP_RUNTIME_LIBRARY
8080
DOC "ComputeCpp Runtime Library")
8181

8282
find_library(COMPUTECPP_RUNTIME_LIBRARY_DEBUG
83-
NAMES ComputeCpp ComputeCpp_vs2015_d
83+
NAMES ComputeCpp_d ComputeCpp ComputeCpp_vs2015_d
8484
HINTS ${computecpp_find_hint}
8585
PATH_SUFFIXES lib
8686
DOC "ComputeCpp Debug Runtime Library")
@@ -154,6 +154,8 @@ endif()
154154
list(APPEND COMPUTECPP_DEVICE_COMPILER_FLAGS -sycl-target ${COMPUTECPP_BITCODE})
155155
message(STATUS "compute++ flags - ${COMPUTECPP_DEVICE_COMPILER_FLAGS}")
156156

157+
include(ComputeCppCompilerChecks)
158+
157159
if(NOT TARGET OpenCL::OpenCL)
158160
add_library(OpenCL::OpenCL UNKNOWN IMPORTED)
159161
set_target_properties(OpenCL::OpenCL PROPERTIES
@@ -399,6 +401,8 @@ function(add_sycl_to_target)
399401
${ARGN}
400402
)
401403

404+
set_target_properties(${SDK_ADD_SYCL_TARGET} PROPERTIES LINKER_LANGUAGE CXX)
405+
402406
# If the CXX compiler is set to compute++ enable the driver.
403407
get_filename_component(cmakeCxxCompilerFileName "${CMAKE_CXX_COMPILER}" NAME)
404408
if("${cmakeCxxCompilerFileName}" STREQUAL "compute++")

‎tests/CMakeLists.txt.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ find_package(Threads)
44
include(ExternalProject)
55
ExternalProject_Add(googletest
66
GIT_REPOSITORY https://github.com/google/googletest.git
7-
GIT_TAG release-1.8.0
7+
GIT_TAG release-1.10.0
88
SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src"
99
BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build"
1010
CONFIGURE_COMMAND ""

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL