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

openmp v19.1.0 #144

Merged
merged 36 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
c9b225b
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-curator[bot] Mar 15, 2024
d55eb24
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-curator[bot] May 12, 2024
b082a71
Merge remote-tracking branch 'upstream/main' into rc
h-vetinari Jul 25, 2024
0a56a9c
openmp v19.1.0.rc1
h-vetinari Jul 26, 2024
4b55815
rebase patches
h-vetinari Jul 26, 2024
56429a6
set -DLIBOMP_FORTRAN_MODULES=ON
h-vetinari Jun 28, 2024
807f5dc
use flang as fortran compiler on windows
h-vetinari Jun 28, 2024
777fe6a
set FC
h-vetinari Jun 29, 2024
f9ff398
avoid run-exports from fortran-compiler
h-vetinari Jul 12, 2024
0bfee06
Revert "remove rc-channels"
h-vetinari Jul 26, 2024
af6618a
MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.37.1, and co…
h-vetinari Jul 26, 2024
48229ba
drop obsolete host deps on linux
h-vetinari Jul 27, 2024
77ef88b
use default compilers on osx
h-vetinari Jul 27, 2024
4a8e07a
MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.37.1, and co…
h-vetinari Jul 27, 2024
a1285a5
alphabetize & unfold conda-forge.yml
h-vetinari Jul 27, 2024
8b23b90
disable fortran bits on windows to bootstrap
h-vetinari Jul 29, 2024
d0d3a39
Merge pull request #137 from h-vetinari/rc
h-vetinari Jul 29, 2024
f2596ea
Revert "disable fortran bits on windows to bootstrap"
h-vetinari Jul 29, 2024
5a10fd7
flexible channel priority
h-vetinari Jul 29, 2024
fc3b339
use newest flang
h-vetinari Jul 29, 2024
c2fd692
Merge pull request #138 from h-vetinari/rc
h-vetinari Jul 29, 2024
7e08b7f
openmp v19.1.0.rc2
h-vetinari Aug 5, 2024
b97d7b2
Merge pull request #140 from h-vetinari/bump
h-vetinari Aug 6, 2024
4917e58
Merge remote-tracking branch 'upstream/main' into rc
h-vetinari Aug 20, 2024
40e2438
openmp v19.1.0.rc3
h-vetinari Aug 21, 2024
55510c2
MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.38.0, and co…
h-vetinari Aug 21, 2024
ae7bb4b
openmp v19.1.0.rc3 (#142)
github-actions[bot] Aug 21, 2024
d47289c
openmp v19.1.0.rc4
h-vetinari Sep 3, 2024
32a5170
switch channel order to avoid old rc-compilers
h-vetinari Sep 5, 2024
b4bd3ca
openmp v19.1.0.rc4 (#143)
github-actions[bot] Sep 5, 2024
c7ad1b9
updated v19.1.0
regro-cf-autotick-bot Sep 17, 2024
885cced
remove rc-channels
h-vetinari Sep 17, 2024
f24dadb
MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.39.1, and co…
h-vetinari Sep 17, 2024
a9ba2fb
Revert "flexible channel priority"
h-vetinari Sep 21, 2024
41ccc83
remove redundant definition of FC
h-vetinari Sep 21, 2024
2b912c0
remove fortran bits
h-vetinari Oct 1, 2024
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-win.yml

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

16 changes: 9 additions & 7 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
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
fortran_compiler:
- gfortran
fortran_compiler_version:
- '13'
perl:
- 5.32.1
target_platform:
- linux-64
zip_keys:
- - c_stdlib_version
- cdt_name
zlib:
- '1'
zstd:
- '1.5'
- - cxx_compiler_version
- fortran_compiler_version
12 changes: 7 additions & 5 deletions .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
fortran_compiler:
- gfortran
fortran_compiler_version:
- '13'
perl:
- 5.32.1
target_platform:
- linux-aarch64
zip_keys:
- - c_stdlib_version
- cdt_name
zlib:
- '1'
zstd:
- '1.5'
- - cxx_compiler_version
- fortran_compiler_version
12 changes: 7 additions & 5 deletions .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
fortran_compiler:
- gfortran
fortran_compiler_version:
- '13'
perl:
- 5.32.1
target_platform:
- linux-ppc64le
zip_keys:
- - c_stdlib_version
- cdt_name
zlib:
- '1'
zstd:
- '1.5'
- - cxx_compiler_version
- fortran_compiler_version
11 changes: 9 additions & 2 deletions .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ channel_sources:
channel_targets:
- conda-forge main
cxx_compiler:
- clang_bootstrap
- clangxx
cxx_compiler_version:
- '16'
- '17'
fortran_compiler:
- gfortran
fortran_compiler_version:
- '13'
macos_machine:
- x86_64-apple-darwin13.4.0
perl:
- 5.32.1
target_platform:
- osx-64
zip_keys:
- - cxx_compiler_version
- fortran_compiler_version
11 changes: 9 additions & 2 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ channel_sources:
channel_targets:
- conda-forge main
cxx_compiler:
- clang_bootstrap
- clangxx
cxx_compiler_version:
- '16'
- '17'
fortran_compiler:
- gfortran
fortran_compiler_version:
- '13'
macos_machine:
- arm64-apple-darwin20.0.0
perl:
- 5.32.1
target_platform:
- osx-arm64
zip_keys:
- - cxx_compiler_version
- fortran_compiler_version
4 changes: 4 additions & 0 deletions .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ channel_targets:
- conda-forge main
cxx_compiler:
- vs2019
fortran_compiler:
- flang
fortran_compiler_version:
- '19'
perl:
- 5.32.1
target_platform:
Expand Down
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.

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.

15 changes: 10 additions & 5 deletions conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ bot:
abi_migration_branches:
- 17.x
- 16.x
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'
error_overlinking: true
conda_forge_output_validation: true
provider: {linux_aarch64: azure, linux_ppc64le: azure}
github:
branch_name: main
tooling_branch_name: main
conda_build:
pkg_format: '2'
error_overlinking: true
provider:
linux_aarch64: azure
linux_ppc64le: azure
test: native_and_emulated
3 changes: 0 additions & 3 deletions recipe/build-pkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ fi

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

if [[ "${target_platform}" == "linux"* ]]; then
# This should have been defined by HandleLLVMOptions.cmake
# Not sure why it is not.
export CXXFLAGS="$CXXFLAGS -D__STDC_FORMAT_MACROS"
Expand Down
4 changes: 0 additions & 4 deletions recipe/conda_build_config.yaml

This file was deleted.

18 changes: 7 additions & 11 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "18.1.8" %}
{% set version = "19.1.0" %}
# check https://clang.llvm.org/docs/OpenMPSupport.html
# occasionally to see last fully supported openmp ver.
{% set openmp_ver = "4.5" %}
Expand All @@ -9,44 +9,40 @@ package:

source:
url: https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-{{ version.replace(".rc", "-rc") }}.tar.gz
sha256: 09c08693a9afd6236f27a2ebae62cda656eba19021ef3f94d59e931d662d4856
sha256: 0a08341036ca99a106786f50f9c5cb3fbe458b3b74cab6089fd368d0edb2edfe
# name folder for easier deletion; we do the equivalent of downloading
# the subproject sources, so the work folder then has openmp in it;
# for details see build scripts
folder: llvm-project
patches:
# backport https://github.com/llvm/llvm-project/pull/80174
- patches/0001-openmp-On-Windows-fix-standalone-cmake-build.patch
# intermediate fix for https://github.com/llvm/llvm-project/issues/54596
- patches/0002-link-libomp-to-compiler-rt-on-osx-arm.patch
# fix for https://github.com/llvm/llvm-project/issues/54596
- patches/0001-link-libomp-to-compiler-rt-on-osx-arm.patch

build:
number: 1
number: 0

outputs:
- name: llvm-openmp
script: build-pkg.sh # [unix]
script: build-pkg.bat # [win]
build:
ignore_run_exports_from:
- {{ compiler('cxx') }}
- {{ compiler("cxx") }}
run_exports:
strong:
- {{ pin_subpackage("llvm-openmp", max_pin=None) }}
- _openmp_mutex >={{ openmp_ver }} # [linux]
- _openmp_mutex * *_llvm # [linux]
requirements:
build:
- {{ compiler('cxx') }}
- {{ stdlib("c") }}
- {{ compiler("cxx") }}
- clang # [win]
- cmake
- ninja
- perl
host:
- llvmdev {{ version }}|{{ version }}.*
- zlib # [linux]
- zstd # [linux]
# see https://github.com/llvm/llvm-project/issues/54596
- compiler-rt # [osx and arm64]
run_constrained:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
From 9fd9c8c26219bf8995321b7786e853d6c51e1dc8 Mon Sep 17 00:00:00 2001
From 15211abaf2331a43855f09978bda20b030fffd25 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <h.vetinari@gmx.com>
Date: Thu, 1 Feb 2024 12:29:07 +0100
Subject: [PATCH 2/2] link libomp to compiler-rt on osx-arm
Subject: [PATCH] link libomp to compiler-rt on osx-arm

---
openmp/runtime/src/CMakeLists.txt | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
index 619d4f7ba458..11d9c969e381 100644
index f106694841ce..6a016b76f4b6 100644
--- a/openmp/runtime/src/CMakeLists.txt
+++ b/openmp/runtime/src/CMakeLists.txt
@@ -161,6 +161,12 @@ if(OPENMP_STANDALONE_BUILD OR (NOT OPENMP_ENABLE_LIBOMP_PROFILING))
add_library(omp ${LIBOMP_LIBRARY_KIND} ${LIBOMP_SOURCE_FILES})
@@ -175,6 +175,12 @@ if(OPENMP_STANDALONE_BUILD OR (NOT OPENMP_ENABLE_LIBOMP_PROFILING))
set_property(TARGET omp PROPERTY FOLDER "OpenMP/Libraries")
# Linking command will include libraries in LIBOMP_CONFIGURED_LIBFLAGS
target_link_libraries(omp ${LIBOMP_CONFIGURED_LIBFLAGS} ${LIBOMP_DL_LIBS})
+ if(APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
Expand Down

This file was deleted.