Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 18.1.0 #24

Merged
merged 7 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-osx.yml

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

7 changes: 7 additions & 0 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
c_stdlib:
- sysroot
c_stdlib_version:
- '2.12'
cdt_name:
- cos6
channel_sources:
Expand All @@ -12,5 +16,8 @@ docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
- linux-64
zip_keys:
- - c_stdlib_version
- cdt_name
zlib:
- '1.2'
7 changes: 7 additions & 0 deletions .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
BUILD:
- aarch64-conda_cos7-linux-gnu
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_arch:
- aarch64
cdt_name:
Expand All @@ -16,5 +20,8 @@ docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
- linux-aarch64
zip_keys:
- - c_stdlib_version
- cdt_name
zlib:
- '1.2'
7 changes: 7 additions & 0 deletions .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
c_stdlib:
- sysroot
c_stdlib_version:
- '2.17'
cdt_name:
- cos7
channel_sources:
Expand All @@ -12,5 +16,8 @@ docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
- linux-ppc64le
zip_keys:
- - c_stdlib_version
- cdt_name
zlib:
- '1.2'
8 changes: 7 additions & 1 deletion .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
- '10.13'
MACOSX_SDK_VERSION:
- '10.13'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '10.13'
channel_sources:
- conda-forge
channel_targets:
Expand Down
6 changes: 6 additions & 0 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
MACOSX_SDK_VERSION:
- '11.0'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '11.0'
channel_sources:
- conda-forge
channel_targets:
Expand Down
4 changes: 2 additions & 2 deletions .gitattributes

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

2 changes: 1 addition & 1 deletion .github/CODEOWNERS

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

11 changes: 6 additions & 5 deletions README.md

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

32 changes: 26 additions & 6 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
{% set name = "llvm-spirv" %}
{% set version = "17.0.0" %}
{% set version = "18.1.0" %}
{% set llvm_version = ".".join(version.split(".")[:2]) %}
{% set major = version.split('.')[0] %}
# https://www.phoronix.com/news/LLVM-N-1-Stable-Versioning
{% if major | int >= 18 %}
{% set abi_version = ".".join(version.split(".")[:2]) %}
{% else %}
{% set abi_version = version.split('.')[0] %}
{% endif %}

package:
name: llvm-spirv-split
version: {{ version }}

source:
url: https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/v{{ version.replace("_", "-") }}.tar.gz
sha256: eba381e1dd99b4ff6c672a28f52755d1adf2d810a97b51e6074ad4fa67937fb2
sha256: 78a770eff24d5ffe2798479845adec4b909cbf058ddc55830ea00fa7d2c1698a

build:
number: 0
skip: true # [not unix]

requirements:
build:
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
- cmake
- make
Expand All @@ -25,6 +32,7 @@ requirements:
- llvmdev {{ llvm_version }}.*
- llvm {{ llvm_version }}.*
- spirv-headers
- spirv-tools
- zlib

outputs:
Expand All @@ -33,11 +41,13 @@ outputs:
build:
ignore_run_exports_from:
- zlib
- spirv-tools
files:
- lib/libLLVMSPIRVLib.{{ major }}.dylib # [osx]
- lib/libLLVMSPIRVLib.so.{{ major }} # [linux]
- lib/libLLVMSPIRVLib.{{ abi_version }}.dylib # [osx]
- lib/libLLVMSPIRVLib.so.{{ abi_version }} # [linux]
requirements:
build:
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
- cmake
- make
Expand All @@ -47,14 +57,15 @@ outputs:
- llvm {{ llvm_version }}.*
- zlib
- spirv-headers
- spirv-tools
run_constrained:
- llvmdev {{ llvm_version }}.*
- llvm-spirv {{ version }}.* *_{{ PKG_BUILDNUM }}
test:
commands:
- test ! -f ${PREFIX}/lib/libLLVMSPIRVLib${SHLIB_EXT}
- test -f ${PREFIX}/lib/libLLVMSPIRVLib.{{ major }}.dylib # [osx]
- test -f ${PREFIX}/lib/libLLVMSPIRVLib.so.{{ major }} # [linux]
- test -f ${PREFIX}/lib/libLLVMSPIRVLib.{{ abi_version }}.dylib # [osx]
- test -f ${PREFIX}/lib/libLLVMSPIRVLib.so.{{ abi_version }} # [linux]

- name: libllvmspirv
script: install.sh
Expand All @@ -63,13 +74,15 @@ outputs:
- {{ pin_subpackage("libllvmspirv" ~ major) }}
ignore_run_exports_from:
- zlib
- spirv-tools
files:
- lib/libLLVMSPIRVLib.dylib # [osx]
- lib/libLLVMSPIRVLib.so # [linux]
- lib/pkgconfig/LLVMSPIRVLib.pc
- include/LLVMSPIRVLib/
requirements:
build:
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
- cmake
- make
Expand All @@ -79,6 +92,7 @@ outputs:
- llvm {{ llvm_version }}.*
- zlib
- spirv-headers
- spirv-tools
- {{ pin_subpackage("libllvmspirv" ~ major, exact=True) }}
run:
- {{ pin_subpackage("libllvmspirv" ~ major, exact=True) }}
Expand All @@ -97,6 +111,7 @@ outputs:
- bin/llvm-spirv-{{ major }}
requirements:
build:
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
- cmake
- make
Expand All @@ -106,6 +121,7 @@ outputs:
- llvm {{ llvm_version }}.*
- zlib
- spirv-headers
- spirv-tools
- {{ pin_subpackage("libllvmspirv" ~ major, exact=True) }}
run:
- {{ pin_subpackage("libllvmspirv" ~ major, exact=True) }}
Expand All @@ -118,10 +134,12 @@ outputs:
build:
ignore_run_exports_from:
- zlib
- spirv-tools
files:
- bin/llvm-spirv
requirements:
build:
- {{ stdlib('c') }}
- {{ compiler('cxx') }}
- cmake
- make
Expand All @@ -131,6 +149,7 @@ outputs:
- llvm {{ llvm_version }}.*
- zlib
- spirv-headers
- spirv-tools
- {{ pin_subpackage("llvm-spirv-" ~ major, exact=True) }}
run:
- {{ pin_subpackage("llvm-spirv-" ~ major, exact=True) }}
Expand All @@ -151,3 +170,4 @@ extra:
recipe-maintainers:
- isuruf
- matthiasdiener
- ZzEeKkAa