Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit 4e9032a

Browse files
authored
Backport release changes (#672)
* Add new conda-forge recipe * Add zstd guard * Fix git parse for a source release * Fix release version
1 parent bca911e commit 4e9032a

File tree

3 files changed

+31
-15
lines changed

3 files changed

+31
-15
lines changed

CMakeLists.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,13 +87,18 @@ if(DEFINED ENV{CONDA_PREFIX})
8787
endif()
8888

8989
string(TIMESTAMP HDK_BUILD_DATE "%Y%m%d")
90-
find_package(Git)
91-
execute_process(
92-
COMMAND ${GIT_EXECUTABLE} rev-parse --short=10 HEAD
93-
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
94-
OUTPUT_VARIABLE HDK_GIT_HASH
95-
OUTPUT_STRIP_TRAILING_WHITESPACE
90+
91+
if(EXISTS "${CMAKE_SOURCE_DIR}/.git")
92+
find_package(Git)
93+
execute_process(
94+
COMMAND ${GIT_EXECUTABLE} rev-parse --short=10 HEAD
95+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
96+
OUTPUT_VARIABLE HDK_GIT_HASH
97+
OUTPUT_STRIP_TRAILING_WHITESPACE
9698
)
99+
else()
100+
set(HDK_GIT_HASH "source-release")
101+
endif()
97102
file(WRITE ${CMAKE_BINARY_DIR}/HDK_GIT_HASH.txt "${HDK_GIT_HASH}\n")
98103
file(STRINGS ${CMAKE_BINARY_DIR}/HDK_GIT_HASH.txt HDK_GIT_HASH)
99104

@@ -302,6 +307,9 @@ if (ENABLE_CUDA)
302307
endif()
303308

304309
# LLVM
310+
if (WIN32)
311+
find_package(zstd REQUIRED)
312+
endif()
305313
find_package(LLVM CONFIG REQUIRED)
306314

307315
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")

recipe/build-hdk.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ cmake -Wno-dev \
3131
-DCMAKE_PREFIX_PATH=$PREFIX \
3232
-DCMAKE_INSTALL_PREFIX=$PREFIX/$INSTALL_BASE \
3333
-DCMAKE_BUILD_TYPE=Release \
34-
-B build -S .
34+
-DENABLE_L0=on \
35+
-DENABLE_AWS_S3=off -B build -S .
3536

3637
cmake --build build --parallel $(nproc)
3738
cmake --install build --prefix $PREFIX/$INSTALL_BASE

recipe/meta.yaml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{% set version = "0.6.0" %} # PEP 386
1+
{% set version = "0.9.0" %} # PEP 386
22

3-
{% set number = "1" %}
3+
{% set number = "0" %}
44
{% set cuda_enabled = cuda_compiler_version is not undefined and cuda_compiler_version == '11.0' %}
55
{% set build_ext = "cuda" if cuda_enabled else "cpu" %}
66
{% set build_string = "h{}_{}".format(PKG_HASH, number) %}
@@ -10,18 +10,18 @@
1010
{% set install_base = "opt/hdk" %}
1111
{% set arrow_version = "11.*" %}
1212
{% set arrow_proc_version = "3.*" %}
13-
{% set llvm_version = "14" %}
13+
{% set llvm_version = "15" %}
1414

1515
package:
1616
name: hdk
1717
version: {{ version }}
1818

1919
source:
20-
# git_url: https://github.com/intel-ai/hdk
21-
# git_branch: release/v{{ version }}
20+
git_url: https://github.com/intel-ai/hdk
21+
git_branch: main
2222
# git_rev: 798103ac37f9badd540b4f4508ca180162eeb654
23-
url: https://github.com/intel-ai/hdk/archive/refs/tags/v{{ version }}.tar.gz
24-
sha256: 0396d5133666dee23fedb568acfbb49bfd8e36e149ed7e554a5bd9acda310a97
23+
# url: https://github.com/intel-ai/hdk/archive/refs/tags/v{{ version }}.tar.gz
24+
# sha256: 0314c7ad990b1f3072f9058e991915b5f1d6d3240aaf04ffe518d68087178675
2525

2626
build:
2727
number: {{ number }}
@@ -63,10 +63,14 @@ outputs:
6363
- make # [not win]
6464
- maven
6565
- vs2022_win-64 # [win]
66+
- level-zero-devel # [not win]
67+
- pkg-config # [not win]
68+
- llvm-spirv {{ llvm_version }} # [not win]
69+
- libllvmspirv {{ llvm_version }} # [not win]
6670
host:
6771
# If no version limit is specified for python then conda goes
6872
# crazy and is unable to create host env on windows.
69-
- python >=3.8
73+
- python {{ python }}
7074
- cython
7175
- numpy
7276
- tbb-devel
@@ -89,6 +93,7 @@ outputs:
8993
- llvm {{ llvm_version }}
9094
- arrow-cpp ={{ arrow_version }}=*{{ build_ext }}
9195
- pyarrow ={{ arrow_version }}=*{{ build_ext }}
96+
- zlib
9297
run:
9398
- arrow-cpp-proc {{ arrow_proc_version }} {{ build_ext }}
9499
- pyarrow ={{ arrow_version }}=*{{ build_ext }}
@@ -98,6 +103,8 @@ outputs:
98103
- tbb
99104
- boost-cpp
100105
- folly 2022.11.07.00 # [not win]
106+
- llvm-spirv {{ llvm_version }} # [not win]
107+
- level-zero # [not win]
101108

102109
run_constrained:
103110
- arrow-cpp-proc {{ arrow_proc_version }} {{ build_ext }}

0 commit comments

Comments
 (0)