Skip to content

Commit

Permalink
[alpaka] Add new port, version 0.9.0
Browse files Browse the repository at this point in the history
Co-authored-by: Jonliu1993 <13720414433@163.com>
  • Loading branch information
bernhardmgruber and JonLiu1993 committed Sep 19, 2022
1 parent 01b29f6 commit 653891f
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
21 changes: 21 additions & 0 deletions ports/alpaka/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO alpaka-group/alpaka
REF 0.9.0
SHA512 c079c0101a1e1c0d244c074e19fcefa6c15751fbb6be072c6f245e515dece8700a40fd101b2b0ba5f9760f4545bf23e1917ea9804accbe16a45039f8b0ed8a01
HEAD_REF develop
)
set(VCPKG_BUILD_TYPE release)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}")

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/alpaka")

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
4 changes: 4 additions & 0 deletions ports/alpaka/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
alpaka provides CMake targets:

find_package(alpaka CONFIG REQUIRED)
target_link_libraries(main PRIVATE alpaka::alpaka)
25 changes: 25 additions & 0 deletions ports/alpaka/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "alpaka",
"version": "0.9.0",
"description": "The alpaka library is a header-only abstraction library for accelerator development",
"homepage": "https://github.com/alpaka-group/alpaka",
"license": "MPL-2.0",
"dependencies": [
{
"name": "boost-core",
"version>=": "1.74"
},
{
"name": "boost-predef",
"version>=": "1.74"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
9 changes: 9 additions & 0 deletions versions/a-/alpaka.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "fa2a5d53283561fed784514fd0063badc589eb39",
"version": "0.9.0",
"port-version": 0
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
"baseline": "0.2.0",
"port-version": 0
},
"alpaka": {
"baseline": "0.9.0",
"port-version": 0
},
"alsa": {
"baseline": "1.2.6.1",
"port-version": 0
Expand Down

0 comments on commit 653891f

Please sign in to comment.