early-access version 2853
This commit is contained in:
26
externals/vcpkg/ports/onednn/portfile.cmake
vendored
Executable file
26
externals/vcpkg/ports/onednn/portfile.cmake
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO oneapi-src/oneDNN
|
||||
REF v2.4.3
|
||||
SHA512 6a597be1b6b50d252e346a96d3c9b4771e9d8e8fc495a09b638ea296d53e71d51ea2e2be04cc20de1bca17215a7a7e5f22a1808628bcdf98180def2d91b2c9e3
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
||||
set(DNNL_OPTIONS "-DDNNL_LIBRARY_TYPE=STATIC")
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS ${DNNL_OPTIONS}
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
|
||||
# The port name and the find_package() name are different (onednn versus dnnl)
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME dnnl CONFIG_PATH lib/cmake/dnnl)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
# Copyright and license
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
18
externals/vcpkg/ports/onednn/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/onednn/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "onednn",
|
||||
"version-semver": "2.4.3",
|
||||
"port-version": 1,
|
||||
"description": "oneAPI Deep Neural Network Library (oneDNN)",
|
||||
"homepage": "https://github.com/oneapi-src/oneDNN",
|
||||
"supports": "x64 & !uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user