Skip to content

Commit

Permalink
Merge pull request #62 from densamoilov/fix-if-cond
Browse files Browse the repository at this point in the history
recipe: replace if condition to fix jinja2 parsing issue
  • Loading branch information
xhochy authored Aug 15, 2024
2 parents 94b13c6 + b2ac0c2 commit 37d82fd
Show file tree
Hide file tree
Showing 17 changed files with 73 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .ci_support/linux_64_dnnl_cpu_runtimedpcpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cxx_compiler_version:
- '12'
dnnl_cpu_runtime:
- dpcpp
dnnl_cpu_runtime_name:
- dpcpp
docker_image:
- quay.io/condaforge/linux-anvil-alma-x86_64:8
target_platform:
Expand All @@ -31,3 +33,5 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/linux_64_dnnl_cpu_runtimeomp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cxx_compiler_version:
- '12'
dnnl_cpu_runtime:
- omp
dnnl_cpu_runtime_name:
- cpu-omp
docker_image:
- quay.io/condaforge/linux-anvil-alma-x86_64:8
target_platform:
Expand All @@ -31,3 +33,5 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/linux_64_dnnl_cpu_runtimetbb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cxx_compiler_version:
- '12'
dnnl_cpu_runtime:
- tbb
dnnl_cpu_runtime_name:
- cpu-tbb
docker_image:
- quay.io/condaforge/linux-anvil-alma-x86_64:8
target_platform:
Expand All @@ -31,3 +33,5 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/linux_64_dnnl_cpu_runtimethreadpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cxx_compiler_version:
- '12'
dnnl_cpu_runtime:
- threadpool
dnnl_cpu_runtime_name:
- cpu-threadpool
docker_image:
- quay.io/condaforge/linux-anvil-alma-x86_64:8
target_platform:
Expand All @@ -31,3 +33,5 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ cxx_compiler_version:
- '12'
dnnl_cpu_runtime:
- omp
dnnl_cpu_runtime_name:
- cpu-omp
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
Expand All @@ -33,3 +35,5 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ cxx_compiler_version:
- '12'
dnnl_cpu_runtime:
- omp
dnnl_cpu_runtime_name:
- cpu-omp
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
Expand All @@ -29,3 +31,5 @@ zip_keys:
- cxx_compiler_version
- - c_stdlib_version
- cdt_name
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/osx_64_dnnl_cpu_runtimeomp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cxx_compiler_version:
- '16'
dnnl_cpu_runtime:
- omp
dnnl_cpu_runtime_name:
- cpu-omp
llvm_openmp:
- '16'
macos_machine:
Expand All @@ -33,3 +35,5 @@ tbb_devel:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/osx_64_dnnl_cpu_runtimetbb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cxx_compiler_version:
- '16'
dnnl_cpu_runtime:
- tbb
dnnl_cpu_runtime_name:
- cpu-tbb
llvm_openmp:
- '16'
macos_machine:
Expand All @@ -33,3 +35,5 @@ tbb_devel:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/osx_64_dnnl_cpu_runtimethreadpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cxx_compiler_version:
- '16'
dnnl_cpu_runtime:
- threadpool
dnnl_cpu_runtime_name:
- cpu-threadpool
llvm_openmp:
- '16'
macos_machine:
Expand All @@ -33,3 +35,5 @@ tbb_devel:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/osx_arm64_dnnl_cpu_runtimeomp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cxx_compiler_version:
- '16'
dnnl_cpu_runtime:
- omp
dnnl_cpu_runtime_name:
- cpu-omp
llvm_openmp:
- '16'
macos_machine:
Expand All @@ -33,3 +35,5 @@ tbb_devel:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 4 additions & 0 deletions .ci_support/osx_arm64_dnnl_cpu_runtimetbb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ cxx_compiler_version:
- '16'
dnnl_cpu_runtime:
- tbb
dnnl_cpu_runtime_name:
- cpu-tbb
llvm_openmp:
- '16'
macos_machine:
Expand All @@ -33,3 +35,5 @@ tbb_devel:
zip_keys:
- - c_compiler_version
- cxx_compiler_version
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
5 changes: 5 additions & 0 deletions .ci_support/win_64_dnnl_cpu_runtimeomp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ cxx_compiler:
- vs2019
dnnl_cpu_runtime:
- omp
dnnl_cpu_runtime_name:
- cpu-omp
target_platform:
- win-64
tbb:
- '2021'
tbb_devel:
- '2021'
zip_keys:
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
5 changes: 5 additions & 0 deletions .ci_support/win_64_dnnl_cpu_runtimetbb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ cxx_compiler:
- vs2019
dnnl_cpu_runtime:
- tbb
dnnl_cpu_runtime_name:
- cpu-tbb
target_platform:
- win-64
tbb:
- '2021'
tbb_devel:
- '2021'
zip_keys:
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
5 changes: 5 additions & 0 deletions .ci_support/win_64_dnnl_cpu_runtimethreadpool.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,14 @@ cxx_compiler:
- vs2019
dnnl_cpu_runtime:
- threadpool
dnnl_cpu_runtime_name:
- cpu-threadpool
target_platform:
- win-64
tbb:
- '2021'
tbb_devel:
- '2021'
zip_keys:
- - dnnl_cpu_runtime_name
- dnnl_cpu_runtime
4 changes: 1 addition & 3 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@ dnnl_cpu_runtime:
- omp
- threadpool # [not (ppc64le or aarch64 or arm64)]
- dpcpp # [x86_64 and linux64]

dnnl_cpu_runtime_name:
- cpu-tbb # [not (ppc64le or aarch64)]
- cpu-omp
- cpu-threadpool # [not (ppc64le or aarch64 or arm64)]
- dpcpp # [x86_64 and linux64]

zip_keys:
-
- dnnl_cpu_runtime_name
- dnnl_cpu_runtime
8 changes: 2 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ source:
- 0001-Add-TBB-tbb-to-TBB_IMPORTED_TARGETS.patch

build:
number: 0
number: 1

outputs:
- name: {{ name|lower }}
Expand Down Expand Up @@ -77,11 +77,7 @@ outputs:
- if not exist %LIBRARY_PREFIX%\\lib\\dnnl.lib exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\\include\\dnnl.h exit 1 # [win]

{% if dnnl_cpu_runtime != "dpcpp" %}
- name: onednn-cpu-{{ dnnl_cpu_runtime }}
{% else %}
- name: onednn-{{ dnnl_cpu_runtime }}
{% endif %}
- name: onednn-{{ dnnl_cpu_runtime_name }}
version: {{ version }}
build:
string: {{ dnnl_cpu_runtime }}_h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}
Expand Down

0 comments on commit 37d82fd

Please sign in to comment.