Skip to content

Commit

Permalink
Merge pull request #81 from regro-cf-autotick-bot/19.1.0_h62514a
Browse files Browse the repository at this point in the history
mlir v19.1.0
  • Loading branch information
h-vetinari authored Sep 18, 2024
2 parents 48ed036 + 6f0e139 commit f776add
Show file tree
Hide file tree
Showing 15 changed files with 62 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-win.yml

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

6 changes: 3 additions & 3 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
c_stdlib:
- sysroot
c_stdlib_version:
- '2.12'
- '2.17'
cdt_name:
- cos6
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
Expand Down
4 changes: 2 additions & 2 deletions .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ channel_sources:
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
- clang_bootstrap
cxx_compiler_version:
- '16'
- '17'
macos_machine:
- x86_64-apple-darwin13.4.0
target_platform:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ channel_targets:
cxx_compiler:
- clang_bootstrap
cxx_compiler_version:
- '16'
- '17'
macos_machine:
- arm64-apple-darwin20.0.0
target_platform:
Expand Down
2 changes: 2 additions & 0 deletions .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ target_platform:
- win-64
zlib:
- '1'
zstd:
- '1.5'
1 change: 0 additions & 1 deletion .scripts/build_steps.sh

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

2 changes: 1 addition & 1 deletion .scripts/run_osx_build.sh

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

8 changes: 4 additions & 4 deletions README.md

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

9 changes: 6 additions & 3 deletions build-locally.py

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

9 changes: 6 additions & 3 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
build_platform: {osx_arm64: osx_64, linux_ppc64le: linux_64, linux_aarch64: linux_64}
build_platform:
linux_aarch64: linux_64
linux_ppc64le: linux_64
osx_arm64: osx_64
conda_build:
pkg_format: '2'
conda_forge_output_validation: true
github:
branch_name: main
tooling_branch_name: main
conda_build:
pkg_format: '2'
test: native_and_emulated
16 changes: 12 additions & 4 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
#!/bin/bash

set -euxo pipefail

PARALLEL=""
if [[ "${target_platform}" == "linux-ppc64le" ]]; then
export CFLAGS="${CFLAGS//-fno-plt/}"
export CXXFLAGS="${CXXFLAGS//-fno-plt/}"
elif [[ "${target_platform}" == "linux-aarch64" ]]; then
# reduce parallelism on aarch to avoid OOM
PARALLEL="-j2"
elif [[ "${target_platform}" == osx-* ]]; then
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_ENABLE_LIBCXX=ON"
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_ENABLE_LIBCXX=ON"
fi

if [[ "${CONDA_BUILD_CROSS_COMPILATION:-0}" == "1" ]]; then
CMAKE_ARGS="${CMAKE_ARGS} -DLLVM_TABLEGEN_EXE=$BUILD_PREFIX/bin/llvm-tblgen -DNATIVE_LLVM_DIR=$BUILD_PREFIX/lib/cmake/llvm"
CMAKE_ARGS="${CMAKE_ARGS} -DCROSS_TOOLCHAIN_FLAGS_NATIVE=-DCMAKE_C_COMPILER=$CC_FOR_BUILD;-DCMAKE_CXX_COMPILER=$CXX_FOR_BUILD;-DCMAKE_C_FLAGS=-O2;-DCMAKE_CXX_FLAGS=-O2;-DCMAKE_EXE_LINKER_FLAGS=\"-L$BUILD_PREFIX/lib\";-DCMAKE_MODULE_LINKER_FLAGS=;-DCMAKE_SHARED_LINKER_FLAGS=;-DCMAKE_STATIC_LINKER_FLAGS=;-DCMAKE_AR=$(which ${AR});-DCMAKE_RANLIB=$(which ${RANLIB});-DCMAKE_PREFIX_PATH=${BUILD_PREFIX}"
NATIVE_FLAGS="-DCMAKE_C_COMPILER=$CC_FOR_BUILD;-DCMAKE_CXX_COMPILER=$CXX_FOR_BUILD"
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_C_FLAGS=-O2;-DCMAKE_CXX_FLAGS=-O2"
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath,${BUILD_PREFIX}/lib"
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_MODULE_LINKER_FLAGS=;-DCMAKE_SHARED_LINKER_FLAGS="
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_STATIC_LINKER_FLAGS=;-DCMAKE_PREFIX_PATH=${BUILD_PREFIX}"
CMAKE_ARGS="${CMAKE_ARGS} -DCROSS_TOOLCHAIN_FLAGS_NATIVE=${NATIVE_FLAGS}"
else
rm -rf $BUILD_PREFIX/bin/llvm-tblgen
fi
Expand All @@ -29,4 +37,4 @@ cmake ${CMAKE_ARGS} \
-GNinja \
../mlir

ninja
ninja ${PARALLEL}
8 changes: 4 additions & 4 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
c_compiler: # [osx and arm64]
- clang_bootstrap # [osx and arm64]
cxx_compiler: # [osx and arm64]
- clang_bootstrap # [osx and arm64]
c_compiler: # [osx]
- clang_bootstrap # [osx]
cxx_compiler: # [osx]
- clang_bootstrap # [osx]
25 changes: 18 additions & 7 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% set version = "18.1.8" %}
{% set version = "19.1.0" %}
{% set major_version = version.split(".")[0] %}
{% set maj_min = major_version ~ "." ~ version.split(".")[1] %}

# as of LLVM 17, we expect an "rc" suffix for the release candidates
{% set extra = "rc" if version.split(".")[-1] not in "0123456789" else "" %}
# as of LLVM 19, we expect an "-rcX" suffix for the release candidates
{% set extra = "-" ~ version.split(".")[-1] if version.split(".")[-1] not in "0123456789" else "" %}
{% set extra = "git" if version.split(".")[-1] == "dev0" else extra %}

package:
Expand All @@ -12,7 +12,7 @@ package:

source:
- url: https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-{{ version.replace(".rc", "-rc") }}.tar.gz
sha256: 09c08693a9afd6236f27a2ebae62cda656eba19021ef3f94d59e931d662d4856
sha256: 0a08341036ca99a106786f50f9c5cb3fbe458b3b74cab6089fd368d0edb2edfe
patches:
# https://reviews.llvm.org/D99470
- patches/0001-Support-cross-compiling-standalone-MLIR.patch
Expand All @@ -37,6 +37,10 @@ outputs:
- name: mlir
script: install_mlir.sh # [unix]
script: install_mlir.bat # [win]
build:
ignore_run_exports_from:
# the build fails if it doesn't find zlib, but it's not used
- zlib # [unix]
requirements:
build:
- {{ stdlib('c') }}
Expand All @@ -49,9 +53,12 @@ outputs:
- llvmdev {{ version }}
- llvm {{ version }}
- zlib
- zstd # [win]
run:
- {{ pin_subpackage("libmlir", exact=True) }}
- llvmdev {{ version }}
- {{ pin_subpackage("libmlir" ~ major_version, exact=True) }} # [unix]
# we need to do this manually because clang_bootstrap has no run-export
- libcxx >={{ cxx_compiler_version }} # [osx]
test:
commands:
# static library
Expand Down Expand Up @@ -84,7 +91,9 @@ outputs:
host:
- llvmdev {{ version }}
- llvm {{ version }}
- zlib
run:
# we need to do this manually because clang_bootstrap has no run-export
- libcxx >={{ cxx_compiler_version }} # [osx]
test:
commands:
# presence of versioned libraries
Expand Down Expand Up @@ -118,14 +127,16 @@ outputs:
host:
- llvmdev {{ version }}
- llvm {{ version }}
- zlib
- {{ pin_subpackage("libmlir" ~ major_version, exact=True) }} # [unix]
run:
- {{ pin_subpackage("libmlir" ~ major_version, exact=True) }} # [unix]
# we need to do this manually because clang_bootstrap has no run-export
- libcxx >={{ cxx_compiler_version }} # [osx]
test:
commands:
# presence of unversioned libraries
- test -f $PREFIX/lib/libMLIR${SHLIB_EXT} # [unix]
# nothing on windows (package currently empty)
- if exist %LIBRARY_BIN%\libmlir.dll exit 1 # [win]

about:
Expand Down

0 comments on commit f776add

Please sign in to comment.