early-access version 2853
This commit is contained in:
16
externals/vcpkg/ports/clblas/Fix-BuildDLL.patch
vendored
Executable file
16
externals/vcpkg/ports/clblas/Fix-BuildDLL.patch
vendored
Executable file
@@ -0,0 +1,16 @@
|
||||
diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt
|
||||
index f2d5a88..8f84133 100644
|
||||
--- a/src/library/CMakeLists.txt
|
||||
+++ b/src/library/CMakeLists.txt
|
||||
@@ -910,11 +910,6 @@ endif( )
|
||||
|
||||
include( InstallRequiredSystemLibraries )
|
||||
|
||||
-# Install necessary runtime files for debug builds
|
||||
-install( PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
|
||||
- CONFIGURATIONS Debug
|
||||
- DESTINATION ${CLBLAS_RUNTIME_DESTINATION} )
|
||||
-
|
||||
# Install all *.pdb files for debug builds
|
||||
install( DIRECTORY ${PROJECT_BINARY_DIR}/staging/
|
||||
DESTINATION ${CLBLAS_RUNTIME_DESTINATION}
|
||||
36
externals/vcpkg/ports/clblas/cmake.patch
vendored
Executable file
36
externals/vcpkg/ports/clblas/cmake.patch
vendored
Executable file
@@ -0,0 +1,36 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 6a88c41..05b8029 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -276,6 +276,9 @@ endif()
|
||||
|
||||
# This will define OPENCL_FOUND
|
||||
find_package( OpenCL ${OPENCL_VERSION} )
|
||||
+set( OPENCL_FOUND ${OpenCL_FOUND})
|
||||
+set( OPENCL_LIBRARIES ${OpenCL_LIBRARIES} )
|
||||
+set( OPENCL_INCLUDE_DIRS ${OpenCL_INCLUDE_DIRS} )
|
||||
|
||||
# Find Boost on the system, and configure the type of boost build we want
|
||||
set( Boost_USE_MULTITHREADED ON )
|
||||
diff --git a/src/clBLASConfig.cmake.in b/src/clBLASConfig.cmake.in
|
||||
index f52d1d6..464feca 100644
|
||||
--- a/src/clBLASConfig.cmake.in
|
||||
+++ b/src/clBLASConfig.cmake.in
|
||||
@@ -1,3 +1,3 @@
|
||||
include(${CMAKE_CURRENT_LIST_DIR}/clBLASTargets.cmake)
|
||||
-get_filename_component(CLBLAS_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/@reldir@/include ABSOLUTE)
|
||||
+get_filename_component(CLBLAS_INCLUDE_DIRS ${CMAKE_CURRENT_LIST_DIR}/@reldir@/../include ABSOLUTE)
|
||||
set(CLBLAS_LIBRARIES clBLAS)
|
||||
diff --git a/src/library/CMakeLists.txt b/src/library/CMakeLists.txt
|
||||
index 5164898..f2d5a88 100644
|
||||
--- a/src/library/CMakeLists.txt
|
||||
+++ b/src/library/CMakeLists.txt
|
||||
@@ -894,7 +894,7 @@ install( TARGETS clBLAS
|
||||
EXPORT Library
|
||||
RUNTIME DESTINATION bin${SUFFIX_BIN}
|
||||
LIBRARY DESTINATION lib${SUFFIX_LIB}
|
||||
- ARCHIVE DESTINATION lib${SUFFIX_LIB}/import
|
||||
+ ARCHIVE DESTINATION lib${SUFFIX_LIB}
|
||||
)
|
||||
|
||||
# For debug builds, include the debug runtimes into the package for testing on non-developer machines
|
||||
50
externals/vcpkg/ports/clblas/portfile.cmake
vendored
Executable file
50
externals/vcpkg/ports/clblas/portfile.cmake
vendored
Executable file
@@ -0,0 +1,50 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO clMathLibraries/clBLAS
|
||||
REF v2.12
|
||||
SHA512 5d9b0c58adde69e83d95e9c713e0cdc5f64785fe7e05553a14c57fa483c4ef39e9dc780c26880a7f15924967d5ce4ea29035c29d63eac7ee5a2ae5ddacac2b72
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
cmake.patch
|
||||
Fix-BuildDLL.patch
|
||||
)
|
||||
|
||||
# v2.12 has a very old FindOpenCL.cmake using OPENCL_ vs. OpenCL_ var names
|
||||
# conflicting with the built-in, more modern FindOpenCL.cmake
|
||||
file(REMOVE "${SOURCE_PATH}/src/FindOpenCL.cmake")
|
||||
|
||||
vcpkg_find_acquire_program(PYTHON3)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}/src"
|
||||
OPTIONS
|
||||
-DBUILD_TEST=OFF
|
||||
-DBUILD_KTEST=OFF
|
||||
-DSUFFIX_LIB=
|
||||
-DPYTHON_EXECUTABLE=${PYTHON3}
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
||||
endif()
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
file(REMOVE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/bin/clBLAS-tune.pdb"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/bin/clBLAS-tune.exe"
|
||||
"${CURRENT_PACKAGES_DIR}/bin/clBLAS-tune.exe"
|
||||
)
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
||||
else()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/clBLAS)
|
||||
endif()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/clblas" RENAME copyright)
|
||||
17
externals/vcpkg/ports/clblas/vcpkg.json
vendored
Executable file
17
externals/vcpkg/ports/clblas/vcpkg.json
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "clblas",
|
||||
"version": "2.12",
|
||||
"port-version": 6,
|
||||
"description": "clBLAS is an OpenCL 1.2 accelerated BLAS (Basic Linear Algebra Subsystem) library.",
|
||||
"dependencies": [
|
||||
"opencl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user