Skip to content

Commit

Permalink
ENH 11 rc1
Browse files Browse the repository at this point in the history
automerged PR by conda-forge/automerge-action
  • Loading branch information
github-actions[bot] authored Oct 14, 2020
2 parents 78c1e1c + 57e165d commit 2bd2e5a
Show file tree
Hide file tree
Showing 20 changed files with 115 additions and 69 deletions.
4 changes: 2 additions & 2 deletions .azure-pipelines/azure-pipelines-linux.yml

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

9 changes: 6 additions & 3 deletions .azure-pipelines/azure-pipelines-osx.yml

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

4 changes: 2 additions & 2 deletions .azure-pipelines/azure-pipelines-win.yml

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

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
channel_sources:
- conda-forge,defaults
- conda-forge/label/llvm_rc,conda-forge,defaults
channel_targets:
- conda-forge main
- conda-forge llvm_rc
cxx_compiler:
- gxx
cxx_compiler_version:
Expand All @@ -15,5 +15,3 @@ pin_run_as_build:
max_pin: x.x.x
target_platform:
- linux-64
vc:
- '14'
6 changes: 2 additions & 4 deletions .ci_support/linux_aarch64_target_platformlinux-aarch64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ cdt_arch:
cdt_name:
- cos7
channel_sources:
- conda-forge
- conda-forge/label/llvm_rc,conda-forge,defaults
channel_targets:
- conda-forge main
- conda-forge llvm_rc
cxx_compiler:
- gxx
cxx_compiler_version:
Expand All @@ -21,5 +21,3 @@ pin_run_as_build:
max_pin: x.x.x
target_platform:
- linux-aarch64
vc:
- '14'
6 changes: 2 additions & 4 deletions .ci_support/linux_ppc64le_target_platformlinux-ppc64le.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
channel_sources:
- conda-forge,defaults
- conda-forge/label/llvm_rc,conda-forge,defaults
channel_targets:
- conda-forge main
- conda-forge llvm_rc
cxx_compiler:
- gxx
cxx_compiler_version:
Expand All @@ -15,5 +15,3 @@ pin_run_as_build:
max_pin: x.x.x
target_platform:
- linux-ppc64le
vc:
- '14'
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
channel_sources:
- conda-forge,defaults
- conda-forge/label/llvm_rc,conda-forge,defaults
channel_targets:
- conda-forge main
- conda-forge llvm_rc
cxx_compiler:
- clang_bootstrap
cxx_compiler_version:
- '*'
- '10'
macos_machine:
- x86_64-apple-darwin13.4.0
macos_min_version:
Expand All @@ -19,5 +19,3 @@ pin_run_as_build:
max_pin: x.x.x
target_platform:
- osx-64
vc:
- '14'
21 changes: 21 additions & 0 deletions .ci_support/osx_arm64_target_platformosx-arm64.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
channel_sources:
- conda-forge/label/llvm_rc,conda-forge,https://conda-web.anaconda.org/conda-forge
channel_targets:
- conda-forge llvm_rc
cxx_compiler:
- clang_bootstrap
cxx_compiler_version:
- '11'
macos_machine:
- arm64-apple-darwin20.0.0
macos_min_version:
- '11.0'
perl:
- 5.26.2
pin_run_as_build:
perl:
max_pin: x.x.x
target_platform:
- osx-arm64
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
channel_sources:
- conda-forge,defaults
- conda-forge/label/llvm_rc,conda-forge,defaults
channel_targets:
- conda-forge main
- conda-forge llvm_rc
cxx_compiler:
- vs2017
perl:
- 5.26.2
pin_run_as_build:
Expand Down
6 changes: 5 additions & 1 deletion .scripts/build_steps.sh

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

7 changes: 6 additions & 1 deletion .scripts/run_osx_build.sh

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

5 changes: 1 addition & 4 deletions .travis.yml

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

2 changes: 1 addition & 1 deletion LICENSE.txt

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

19 changes: 13 additions & 6 deletions README.md

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

4 changes: 2 additions & 2 deletions azure-pipelines.yml

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

4 changes: 4 additions & 0 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ provider:
linux_ppc64le: default
linux_aarch64: default
conda_forge_output_validation: true
build_platform:
osx_arm64: osx_64
test_on_native_only: true
channel_priority: flexible
13 changes: 6 additions & 7 deletions recipe/build-llvm-openmp.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
mkdir build
cd build

if [[ "${target_platform}" == "osx-64" ]]; then
if [[ "${target_platform}" == osx-* ]]; then
# See https://github.com/AnacondaRecipes/aggregate/issues/107
export CPPFLAGS="-mmacosx-version-min=10.9 -I${PREFIX}/include -D_FORTIFY_SOURCE=2"
export CPPFLAGS="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET} -isystem ${PREFIX}/include -D_FORTIFY_SOURCE=2"
fi

if [[ "${target_platform}" == "linux"* ]]; then
export LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++"
fi

if [[ "${target_platform}" == "osx-64" ]]; then
export CFLAG="$CFLAGS -mlinker-version=305"
export CXXFLAGS="$CXXFLAGS -mlinker-version=305"
if [[ "${PKG_VERSION}" == *rc* ]]; then
export PKG_VERSION=${PKG_VERSION::${#PKG_VERSION}-4}
fi

cmake \
cmake ${CMAKE_ARGS} \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=$PREFIX \
..

make -j${CPU_COUNT}
make -j${CPU_COUNT} VERBOSE=1
make install

rm -f $PREFIX/lib/libgomp$SHLIB_EXT
Expand Down
16 changes: 2 additions & 14 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
cxx_compiler:
cxx_compiler: # [osx]
- clang_bootstrap # [osx]
- gxx # [linux]
- vs2017 # [win]
c_compiler:
c_compiler: # [osx]
- clang_bootstrap # [osx]
- gcc # [linux]
- vs2017 # [win]
vc:
- 14
python:
- 3.7
c_compiler_version: # [osx]
- "*" # [osx]
cxx_compiler_version: # [osx]
- "*" # [osx]
24 changes: 24 additions & 0 deletions recipe/darwin_arm64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
--- runtime/src/z_Linux_asm.S 2020-09-02 18:03:36.268029852 -0500
+++ runtime/src/z_Linux_asm.S 2020-09-02 18:04:57.512849121 -0500
@@ -1742,6 +1742,14 @@
#endif /* KMP_ARCH_ARM */

#if KMP_ARCH_PPC64 || KMP_ARCH_AARCH64 || KMP_ARCH_MIPS64 || KMP_ARCH_RISCV64
+# if KMP_OS_DARWIN
+ .data
+ .comm .gomp_critical_user_,32
+ .data
+ .globl ___kmp_unnamed_critical_addr
+___kmp_unnamed_critical_addr:
+ .quad .gomp_critical_user_
+#else
.data
.comm .gomp_critical_user_,32,8
.data
@@ -1750,6 +1758,7 @@
__kmp_unnamed_critical_addr:
.8byte .gomp_critical_user_
.size __kmp_unnamed_critical_addr,8
+#endif /* KMP_OS_DARWIN */
#endif /* KMP_ARCH_PPC64 || KMP_ARCH_AARCH64 || KMP_ARCH_MIPS64 ||
KMP_ARCH_RISCV64 */
14 changes: 7 additions & 7 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{% set name = "openmp" %}
{% set version = "10.0.1" %}
{% set sha256 = "d19f728c8e04fb1e94566c8d76aef50ec926cd2f95ef3bf1e0a5de4909b28b44" %}
{% set version = "11.0.0" %}
{% set sha256 = "2d704df8ca67b77d6d94ebf79621b0f773d5648963dd19e0f78efef4404b684c" %}
{% set openmp_ver = "4.5" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://github.com/llvm/llvm-project/releases/download/llvmorg-{{ version }}/openmp-{{ version }}.src.tar.xz
url: https://github.com/llvm/llvm-project/releases/download/llvmorg-{{ version.replace(".rc", "-rc") }}/openmp-{{ version.replace(".rc", "rc") }}.src.tar.xz
sha256: {{ sha256 }}
patches:
- darwin_arm64.patch

build:
number: 0
Expand All @@ -31,8 +33,7 @@ outputs:
- _openmp_mutex * *_llvm # [linux]
requirements:
build:
- {{ compiler('cxx') }} # [unix]
- vs2017_{{ target_platform }} # [win]
- {{ compiler('cxx') }}
- cmake
- make # [unix]
- perl
Expand All @@ -46,8 +47,7 @@ outputs:
test:
requires:
- clangxx
- {{ compiler('cxx') }} # [unix]
- vs2017_{{ target_platform }} # [win]
- {{ compiler('cxx') }}
commands:
- if not exist %LIBRARY_BIN%\\libomp.dll exit 1 # [win]
- test -f $PREFIX/lib/libomp.so # [linux]
Expand Down

0 comments on commit 2bd2e5a

Please sign in to comment.